AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Open-source Mermaid diagram editor with AI assistance
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
🎯 Open-Source Alternative to Mermaid Live Editor
MermaidStudio is an open-source, self-hosted Mermaid diagram editor that runs entirely locally. Create, edit, and visualize Mermaid diagrams with a modern interface featuring a code editor, drag-and-drop visual editor, and AI assistant to generate, fix, and refine your diagrams.
Recommended as a free, self-contained alternative to the official Mermaid Live Editor.檢視完整 README ↗🚀 Try the demo: https://www.mermaidstudio.net/
Created by Jérémie Dufault
MermaidStudio is an open-source, self-hosted Mermaid diagram editor that runs entirely locally. Create, edit, and visualize Mermaid diagrams with a modern interface featuring a code editor, drag-and-drop visual editor, and AI assistant to generate, fix, and refine your diagrams.
Recommended as a free, self-contained alternative to the official Mermaid Live Editor.
⚠️ Experimental - AI features are under development. May not work as expected.
Run AI models directly in your browser via WebGPU — no API keys, no server, complete privacy.
Models are downloaded once and cached. Works offline after initial load.
✨ Diagram Generation - Create diagrams from natural language prompts
🔧 AI Fix Diagram - Automatically detect and repair syntax errors, semantic issues, and style problems with a single click
💡 Diagram Enhancement - Refine your diagrams with suggestions and improvements
🧠 Reasoning Model Support - Compatible with thinking/reasoning models (filters <thinking> blocks automatically)
📊 Download Progress - Real-time model download percentage for WebGPU models
📱 Mobile-First Shell - Dedicated smartphone layout: Files/Code/Visual tabs, touch-optimized toolbars, device-language detection
# Clone the repository
git clone https://github.com/CatFoxVoyager/MermaidStudio.git
cd MermaidStudio
# Install dependencies
npm install
# Start development server (port 5173)
npm run dev
Application will be available at http://localhost:5173
# Build and start container (port 3000)
docker build -t mermaid-studio .
docker run -p 3000:3000 mermaid-studio
Application will be available at http://localhost:3000
# Start with Docker Compose
docker-compose up -d
Application will be available at http://localhost:3000
# Clone the repository
git clone https://github.com/CatFoxVoyager/MermaidStudio.git
cd MermaidStudio
# Install dependencies
npm install
# (Optional) Copy environment file
cp .env.example .env.local
# Start development server
npm run dev
# Clone the repository
git clone https://github.com/CatFoxVoyager/MermaidStudio.git
cd MermaidStudio
# Build image
docker build -t mermaid-studio .
# Run container
docker run -d -p 3000:3000 --name mermaid-studio mermaid-studio
# npm
npm run build
npm run preview
# Docker
docker build -t mermaid-studio:prod .
MermaidStudio targets evergreen browsers that ship ES2024 — the practical floor for the Mermaid 12 bundle:
| Browser | Minimum version |
|---|---|
| Chrome / Edge | 115+ |
| Firefox | 118+ |
| Safari (macOS) | 17.4+ |
| iOS Safari | 17.4+ |
Below the floor: the application bundle — and Mermaid 12 itself — uses ES2024+ syntax with no transpilation or polyfill fallback. On older browsers (including iOS ≤ 17.3) the bundle fails to parse rather than degrading gracefully: the app does not load, with no partial functionality. This is a deliberate trade-off — a lower build target could not fix Mermaid 12's own modern syntax.
Developers: see docs/developer-guide/browser-support.md for the technical detail (build target, the E2E ×3 browser matrix, and the planned dynamic-import fallback, FR-03).
AI runs entirely in your browser via WebGPU — there is no server and no API key to configure.
qwen3.5-0.8b-mermaid (~400MB download)qwen3.5-2b-mermaid (~700MB download)Requirements: a WebGPU-capable browser (Chrome/Edge 113+ recommended). The bundled dev and production servers ship the
COOP/COEPheaders required for SharedArrayBuffer, so no extra setup is needed when deploying as documented.
flowchart TD
A[Start] --> B{Is user logged in?}
B -->|Yes| C[Show Dashboard]
B -->|No| D[Show Login Screen]
C --> E[End]
D --> E
Click the AI (⚡) button in the toolbar and type:
Create a flowchart for a user registration process with email verification
The AI will automatically generate the corresponding Mermaid diagram.
5173 (Vite dev server)3000 (nginx container)The project uses an optimized multi-stage build:
# Build image
docker build -t mermaid-studio .
# Run container
docker run -d -p 3000:3000 --name mermaid-studio mermaid-studio
# View logs
docker logs -f mermaid-studio
# Stop and remove
docker stop mermaid-studio
docker rm mermaid-studio
src/
├── components/ # React components
│ ├── ai/ # AI-related components
│ ├── editor/ # Code editor
│ ├── modals/ # Modals (export, templates)
│ ├── preview/ # Preview panel
│ ├── shared/ # Shared UI components
│ └── sidebar/ # Sidebar
├── lib/ # Utilities
│ └── mermaid/ # Mermaid integration
├── services/ # Business services
│ ├── ai/ # AI provider (in-browser WebGPU/MLC)
│ └── storage/ # IndexedDB persistence
├── hooks/ # Custom React hooks
├── types/ # TypeScript types
└── utils/ # Utility functions
# Development (port 5173)
npm run dev
# Production build
npm run build
# Preview
npm run preview
# Quality
npm run lint # ESLint
npm run lint:fix # Auto-fix
npm run type-check # TypeScript check
npm run format # Prettier formatting
# Tests
npm test # Unit tests
npm run test:coverage # Code coverage
npm run test:e2e # Playwright E2E tests
| Dependency | Version | Description |
|---|---|---|
| React | 19.3.0 | UI framework with concurrent features |
| TypeScript | 6.0.3 | Static typing |
| Vite | 8.3.0 | Ultra-fast build and dev server |
| Tailwind CSS | 4.3.3 | Utility-first CSS framework |
| Mermaid | 12.0.0 | Diagram rendering |
| @mlc-ai/web-llm | 0.2.83 (vendored) | In-browser WebGPU inference |
| @huggingface/transformers | 4.2.0 | ONNX/Transformer models in browser |
| Node.js | ≥24.0.0 | Required runtime |
# Application
VITE_DEFAULT_THEME=dark
VITE_DEFAULT_LANGUAGE=en
# Development
VITE_DEV_SERVER_PORT=5173
No AI keys are needed — the only AI provider is in-browser WebGPU/MLC.
| Context | Port | Description |
|---|---|---|
| npm Development | 5173 | Vite dev server |
| Docker Production | 3000 | nginx container |
🙌 We warmly welcome your contributions!
MermaidStudio is an active open-source project. Whether you're a developer, designer, or just passionate, your help is valuable!
Fork the project
git clone https://github.com/CatFoxVoyager/mermaidstudio.git
Create a branch
git checkout -b feature/your-feature
Make your changes
# Commit with a clear message
git commit -m 'feat: add amazing feature'
Push and create a Pull Request
git push origin feature/your-feature
# Open a PR on GitHub
See CONTRIBUTING.md for more details.
# Unit tests (Vitest)
npm test
# E2E tests (Playwright)
npm run test:e2e
# Coverage
npm run test:coverage
main push# npm (port 5173)
npm run dev
# If 5173 is busy, Vite will automatically use an available port
# Docker (port 3000)
# Check what's using the port
netstat -ano | findstr :3000 # Windows
lsof -i :3000 # macOS/Linux
chrome://gpu in Chrome/Edge)rm -rf node_modules && npm installnpm run type-checkThis project is licensed under MIT - see the LICENSE file for details.
Created with ❤️ by Jérémie Dufault
📧 Email 🌐 Website ☕ Support on Ko-Fi 💜 Donate on Liberapay