Mermaid turns plain-text diagram definitions into flowcharts, sequence charts, Gantt charts, and many other diagram types. It renders in browsers, documentation tools, and GitHub Markdown.
Overview
Mermaid is a JavaScript diagramming tool that reads Markdown-inspired text and renders it into visual diagrams. The goal is to keep documentation diagrams easy to edit alongside code so they are less likely to drift out of date. Diagrams remain text, which makes version control diffs and reviews practical compared with binary drawing files.
The project supports more than twenty diagram types, including flowcharts, sequence diagrams, class and state diagrams, entity-relationship diagrams, Gantt and pie charts, git graphs, mind maps, timelines, Sankey diagrams, user journeys, and C4 diagrams. Themes, colors, fonts, and layout direction can be customized. A Live Editor on the web lets authors preview and tweak definitions without a separate design application.
Mermaid is distributed as a library developers import into applications, and it integrates with many documentation and collaboration products. GitHub renders fenced Mermaid blocks in Markdown natively. Built-in sanitization and an optional sandboxed iframe rendering mode address risks when untrusted users supply diagram source on public sites.
Because it is a library rather than a hosted application, teams embed the renderer in their own sites, docs pipelines, or scripts. Non-programmers can still author diagrams through the Live Editor or integrated editors listed in the project’s integration documentation.
Key features
- Twenty-plus diagram types
- Markdown-inspired text syntax
- Themes and layout customization
- GitHub Markdown code block rendering
- Mermaid Live Editor for previews
- Built-in input sanitization
- Sandboxed iframe rendering mode
- Wide third-party integrations
Use cases
- Architecture flowcharts in docs
- Sequence diagrams for API design
- Gantt charts for project plans
- ER diagrams in technical wikis
- Mind maps and timelines in documentation files
Does the same job as
Mermaid doesn't name these products itself, but its own description shows it does the same job.