Generate diagrams and charts from Markdown-like text
open sourceMITfree
Mermaid is a JavaScript library that renders diagrams and charts from Markdown-inspired text definitions, so diagrams live as text beside the code and docs, diff cleanly in version control and stay easy to update. It has more than 20 diagram types, among them flowcharts, sequence, class, state and entity relationship diagrams, Gantt charts, pie charts, Git graphs, mindmaps, timelines, Sankey, C4, Kanban and architecture diagrams. GitHub renders Mermaid code blocks in Markdown natively, many other tools integrate it, and the Mermaid Live Editor lets anyone write and preview diagrams in the browser.
Problems it solves
- draw flowcharts and sequence diagrams as text in my Markdown docs
- keep architecture diagrams in the repo so they're reviewed in pull requests
- render diagrams in a GitHub README without exporting images
- generate diagrams from code in a JavaScript app
- let an agent draw a diagram I can paste into documentation
Features
- 20+ diagram types: flowchart, sequence, class, state, ER, Gantt, pie, Git graph, mindmap, timeline, Sankey and more
- Markdown-inspired text syntax
- renders natively in GitHub Markdown
- Mermaid Live Editor in the browser
- embeddable JavaScript API
Alternatives
The same job
These do what Mermaid does.
- Next AI Draw.io Draw and edit draw.io diagrams by chatting with an AI.
- Graphviz Open source graph visualization software
- draw.io Security-first diagramming for teams
- MCP Mermaid Generate Mermaid diagrams and charts with AI through MCP
- Excalidraw Virtual whiteboard for sketching hand-drawn like diagrams
- drawDB Free, simple, and intuitive database schema editor and SQL generator
