Diagrams that compile.
architecture-beta group api(cloud)[API Layer] group services(server)[Services] group data(database)[Data Layer]
service gateway(internet)[API Gateway] in api service auth(lock)[Auth] in services service users(person)[Users] in services service orders(cart)[Orders] in services service postgres(database)[PostgreSQL] in data service redis(disk)[Redis] in data
gateway:B --> T:auth gateway:B --> T:users gateway:B --> T:orders auth:B --> T:redis users:B --> T:postgres orders:B --> T:postgresWrite diagrams like you write code.
Section titled “Write diagrams like you write code.”Not a preview tool. A full language implementation.
Code Completion
Press Ctrl+Space and get context-aware suggestions. Keywords, node references, style properties — the IDE knows what you need.
→ Diagram type keywords (
flowchart,sequenceDiagram, …)→ Node shapes and arrow types
→ Previously defined node IDs
→ Style and class properties
Error: Undefined node ‘C’. Did you mean to define it?
Real-time Validation
Errors highlighted before you try to render. Hover for details, click for quick fixes. No more guessing what went wrong.
→ Syntax errors caught as you type
→ Undefined node references
→ Invalid style properties
→ Diagram-specific rule violations
Refactoring
Shift+F6 to rename. All references update automatically. This isn’t find-replace — it’s real refactoring.
→ Rename nodes across the entire diagram
→ Find usages to see where a node is referenced
→ Go to definition with Ctrl+B
→ Safe delete with usage checking
Where it fits.
Section titled “Where it fits.”README Diagrams
Diagrams that live in your repo, render on GitHub, and get full IDE support. No more broken image links or outdated PNGs.
mermaid</div> <div className="text-gray-400">flowchart LR</div> <div className="text-gray-400"> Install --> Configure --> Use</div> <div className="text-gray-500">Full syntax highlighting and validation inside Markdown code blocks.
API Documentation
Sequence diagrams that show exactly how your endpoints work. Update the diagram when the code changes — they’re in the same PR.
Architecture Decision Records
Document your architecture decisions with diagrams that evolve with your codebase. C4, flowcharts, ER diagrams — all version controlled.
mermaid</div> <div className="text-gray-400">flowchart TD</div> <div className="text-gray-400"> Service --> EventBus --> Consumer</div> <div className="text-gray-500">Database Schemas
ER diagrams next to your migration files. When the schema changes, update the diagram in the same commit.
The difference.
Section titled “The difference.”Plain text editor
✕ Memorize syntax or keep docs open
✕ Copy to browser to see if it renders
✕ Cryptic errors after the fact
✕ Find-replace to rename nodes
✕ No navigation between references
Mermaid Studio
✓ Code completion for everything
✓ Live preview as you type
✓ Errors highlighted before render
✓ Rename refactoring with Shift+F6
✓ Go to definition, find usages
Every diagram type.
Section titled “Every diagram type.”Works where you work.
Section titled “Works where you work.”Product icons are trademarks of JetBrains s.r.o.