neuron-explorer
Steering-first neuron explorer for Qwen3.5-4B: push every MLP neuron, keep every rollout, browse the results
In-browser AI (WebGPU), drag-and-drop visual editor, folders and version history. Free, open source, no account — everything stays on your device.
Developer toolsTypeScript · JavaScriptGitHub @CatFoxVoyagerOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Open-source Mermaid diagram editor with AI assistance
Taken from the repository README
Loading the full README. The saved excerpt is shown below.
🎯 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.Read the full 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