OpenFlowKit
The open-source diagramming studio for builders.
Create flows from templates, code, structured imports, or AI. Refine them visually, keep them local-first, and export as Cinematic MP4 walkthroughs — or drive everything from Claude / Cursor / Windsurf via our first-party MCP server.
→ Launch the App | Documentation | Website | Issues | Contribute

| ✨ Mermaid → Icons Paste Mermaid · 1,600+ icons auto-assigned · beautiful |
🤖 AI Generation 10 providers inc. local Ollama Direct-to-canvas output |
`{}` Diagram as Code Bidirectional live sync Git-friendly DSL |
🧩 Asset Libraries Developer · AWS · Azure GCP · CNCF · Icons |
🎬 Cinematic MP4 WebCodecs H.264 Faster-than-realtime |
| 🧷 Anchored Layout Pin nodes — auto-layout rearranges around them |
🪄 MCP Server Drive from Claude Desktop, Cursor, Windsurf |
⚡ Worker Layout ELK runs off main thread UI stays responsive |
🦙 Local AI Ollama localhost preset fully offline diagramming |
♻️ Self-Correcting AI Bad DSL → AI sees its own output and repairs it |
See it in action
|
|
|
Why OpenFlowKit?
Every diagramming tool makes a compromise. OpenFlowKit doesn't.
| Tool | What's missing |
|---|---|
| Excalidraw / tldraw | Freeform whiteboards — no structured diagram types, no DSL, no code imports |
| Mermaid.js | Code-only — no visual canvas, no AI, no interactive editor |
| Draw.io | Decade-old UX — Limited AI integration, no developer import pipelines |
| Lucidchart / Miro | Cloud lock-in — expensive, account required, your data lives on their servers |
| PlantUML | Server-dependent rendering — no visual editor, no local-first model |
OpenFlowKit is the only MIT-licensed tool that combines a real workspace home, a professional visual canvas, bidirectional diagram-as-code, AI generation from 10 providers (including fully-local Ollama), automatic icon assignment from 1,600+ tech icons, anchored auto-layout, hardware-encoded cinematic MP4 export, and a Model Context Protocol server so Claude / Cursor / Windsurf can drive it directly — all with zero server-side storage.
Feature highlights
| OpenFlowKit | Excalidraw | Draw.io | Mermaid | Lucidchart | |
|---|---|---|---|---|---|
| Visual canvas editor | ✅ | ✅ | ✅ | ❌ | ✅ |
| Bidirectional diagram-as-code | ✅ | ❌ | ❌ | ✅ | ❌ |
| AI generation (10 providers + Ollama) | ✅ | ❌ | ❌ | ❌ | Limited |
| Mermaid import (8 types) | ✅ | ❌ | ⚠️ | ✅ | ❌ |
| Auto-icon assignment (1,600+) | ✅ | ❌ | ❌ | ❌ | ❌ |
| AWS / Azure / GCP / CNCF icons | ✅ | ❌ | ✅ | Partial | ✅ |
| Anchored auto-layout (pin nodes) | ✅ | ❌ | ❌ | ❌ | ❌ |
| Cinematic MP4 export (WebCodecs) | ✅ | ❌ | ❌ | ❌ | ❌ |
| Figma export (editable SVG) | ✅ | ❌ | ❌ | ❌ | ❌ |
| No account required | ✅ | ✅ | ✅ | ✅ | ❌ |
| Open source (MIT) | ✅ | ✅ | ✅ | ✅ | ❌ |
Paste Mermaid → Beautiful Diagrams
Paste any Mermaid flowchart, architecture, state diagram, class diagram, ER diagram, sequence diagram, mindmap, or journey — all 8 diagram families. OpenFlowKit renders it on a visual canvas and automatically assigns the correct branded icon to every technology node.
flowchart TD
API[Express API] --> DB[(PostgreSQL)]
DB --> Cache[Redis Cache]
Cache --> Queue[RabbitMQ]
Paste this → you get the Express wordmark, PostgreSQL elephant, Redis logo, and RabbitMQ icon — all auto-detected, all beautifully laid out. No other tool does this.
1,600+ icons from developer, AWS, Azure, CNCF, and GCP catalogs are matched automatically based on node labels. No manual drag-and-drop. No configuration.
How it works
- Paste Mermaid on the canvas or in the code panel
- Semantic classifier detects technology names (PostgreSQL, Redis, Express, Lambda, etc.)
- Icon matcher searches 1,600+ icons across all catalogs — exact match, then alias, then substring
- Enricher assigns colors, icons, and provider SVGs to every node
- ELK layout arranges everything cleanly
Mermaid quality gates
npm run test:mermaidruns the broad Mermaid parser/plugin/round-trip gatenpm run test:mermaid:layoutruns the layout, import-state, and recovery corpus gatenpm run test:mermaid:goldruns both together
AI generation (API key required)
Describe your system in plain English. AI generates a diagram on the canvas with correct icons applied automatically.
| Prompt | Output |
|---|---|
| "Node.js API with PostgreSQL and Redis" | 3 nodes with correct icons |
| "AWS Lambda → SQS → DynamoDB" | 3 nodes with AWS icons |
| "React frontend → Express → MongoDB → S3" | 4 nodes across developer + AWS catalogs |
10 providers supported: Google Gemini, OpenAI, Anthropic Claude, Groq, Mistral, NVIDIA NIM, Cerebras, OpenRouter, Ollama (fully local), or any custom OpenAI-compatible endpoint. Bad DSL from any provider is now auto-repaired — the model sees its own broken output and the parser error, then returns corrected DSL in a single follow-up turn.