# Mermaid: 8.5 out of 10

A strong pick. 2nd of 9 in [Diagrams and node graphs](https://elestia.ai/opensource/diagrams/index.md).

Mermaid turns markdown-like text into flowcharts, sequence diagrams, Gantt charts and over a dozen other diagram types. It is the default choice for text-to-diagram rendering in docs, READMEs and AI chat output. It is not an interactive node editor: for drag-and-drop graphs, use React Flow or Excalidraw.

**Best for:** Teams that want diagrams written as text, kept in version control, and rendered in docs, markdown or LLM output.

## Scores

- **Overall: 8.5** (likely 7.4 to 9.2)
  - Claude Opus 5.5 (8.5): For diagrams written as text, Mermaid is the clear default. It has the widest platform support, the best LLM fluency, active funded maintenance, and the most dependents in the category. Weak layout on large graphs, frequent sanitization advisories and the v12 default changes keep it below 9. It does not compete with React Flow for interactive node editors.
  - GPT-6.2 Sol (8.4): Mermaid is the first choice in this category for diagrams authored as text and reviewed with code, backed by strong host support and frequent releases. React Flow fits draggable node editors better, Excalidraw fits freehand sketching, and Cytoscape.js fits graph analysis. The range reflects how much a project depends on precise layout, consistent output across upgrades, or rendering untrusted input.
- **Needed by many: 6.3** (likely 5.3 to 7.4)
  - Claude Opus 5.5 (6.0): Many developers write a diagram in docs or a README at some point. Fewer install a diagram library in an app. Mermaid's text-to-diagram approach serves the largest slice of this category, but not interactive node editors.
  - GPT-6.2 Sol (6.6): Flowcharts, sequence diagrams, and data models are useful across frontend, backend, and infrastructure work. Markdown support brings Mermaid to teams that may never install a diagram library. Freehand sketching and interactive editors serve other needs in this category, and the available architecture survey is too small and specialized to estimate demand across JavaScript and TypeScript developers.
- **Helps a lot: 7.9** (likely 6.8 to 8.9)
  - Claude Opus 5.5 (7.5): It is the broadest and best-supported text-to-diagram tool for JavaScript, it ships types, and LLMs write it very well. Its layouts are weak on large graphs and its default styling looks dated, which is why third-party renderers such as Pele and beautiful-mermaid exist. Version 12 brings a new look and pluggable layouts such as ELK, but D2 still produces better layouts.
  - GPT-6.2 Sol (8.2): Mermaid 12.3.0 offers a typed API, detailed examples, and automatic SVG layout across many diagram types. An outside comparison rendered all six examples correctly, though its first flowchart took about 450 milliseconds to load and draw, and parser diagnostics were verbose. Users report layout problems on complex graphs, including a label overlap whose fix landed after 12.3.0 shipped. A sequence diagram benchmark found that model accuracy varies, so agent-generated diagrams still benefit from a render and review.
- **Holds up over time: 8.3** (likely 7.2 to 9.4)
  - Claude Opus 5.5 (8.5): Activity is very high: 2,944 commits, 55 releases and 16 npm versions in the last year, from 866 contributors. A company, Mermaid Chart (now mermaid.ai), employs core maintainers. The large backlog of 1,379 open issues and 576 open PRs, and the visual breaking changes in v12, keep it below the top.
  - GPT-6.2 Sol (8.1): Mermaid published 16 npm versions in a year, and the repository shows more commit activity than any listed peer. Several contributors appear in recent release work, and a commercial product is built around the library. Some fixes land within weeks, but roughly 1,400 open issues and 576 open pull requests indicate a sizable queue. The v12 layout and runtime changes, the undecided v13 rendering roadmap, and limited public detail on release access and funding widen the range.
- **Used widely: 8.2** (likely 7.1 to 9.1)
  - Claude Opus 5.5 (9.0): Its 13,441 dependent repos are the most in the category, and downloads grew about 12.7x year over year, well above the 4.1 median. Many downloads come through doc tools and AI chat renderers that bundle it. Native rendering on GitHub and in other platforms also means far more people use it than npm shows.
  - GPT-6.2 Sol (7.4): Four-week npm downloads rose from 8.2 million to 104.5 million, a 12.7-fold increase against the catalog median of 4.1-fold. The 13,441 indexed dependent repositories give Mermaid the largest measured footprint among peers with data, and its 37 Bluesky posts lead the supplied peer counts. Automated installs and downstream packages inflate npm volume, while hosted Markdown and CDN use can bypass npm entirely. Those effects leave the number of projects choosing the library directly uncertain.
- **Vouched for: 8.9** (likely 7.8 to 9.6)
  - Claude Opus 5.5 (9.0): GitHub, GitLab, Azure DevOps, Notion, Obsidian and Docusaurus build Mermaid rendering into their products. Independent 2026 comparisons name it the most accessible diagrams-as-code tool. Many third-party editors and renderers build on its syntax.
  - GPT-6.2 Sol (8.7): GitHub and GitLab ship Mermaid rendering, VS Code recently upgraded its built-in renderer to v12, and Docusaurus maintains an integration. A recent outside comparison ran six diagram types on the current release and rendered them all successfully. Obsidian's move to Pele shows that confidence in Mermaid syntax can survive a switch away from its renderer, and the available evidence gives little insight into satisfaction across developers as a whole.
- **Safe: 6.2** (likely 5.1 to 7.4)
  - Claude Opus 5.5 (6.0): It has 11 advisories in 24 months, mostly CSS injection, prototype pollution and DoS. Fixes shipped quickly and were backported to 10.x, but the steady flow shows a real attack surface when it renders untrusted input. The OpenSSF Scorecard is 6.7, with weak Token-Permissions, Branch-Protection and Fuzzing checks. It pulls in 22 dependencies and is MIT-licensed.
  - GPT-6.2 Sol (6.4): Mermaid is MIT-licensed, and its GitHub Actions release workflow enables npm provenance. The five August advisories had fixes in 11.16.1, with selected v10 backports, and Snyk lists no known direct vulnerabilities for 12.3.0. The package still has 22 direct dependencies, and July's Scorecard flagged weak branch protection, broad workflow token permissions, and no detected fuzzing. Strict defaults and optional iframe sandboxing help, but risk varies with who supplies the diagram text and which dependencies the application resolves.

## Good

- GitHub, GitLab, Obsidian, VS Code, Docusaurus and many chat interfaces render it natively, so one source works almost everywhere.
- AI coding agents and LLMs write correct Mermaid more reliably than any other diagram language.
- It covers many diagram types: flowchart, sequence, class, state, ER, Gantt, mindmap, architecture, XY chart, radar, treemap and more.
- Development is very active and company-backed, with frequent releases and security fixes backported to the 10.x line.

## Bad

- Automatic layout gets cramped and tangled beyond about 15 nodes, and you have little fine control over placement.
- It renders untrusted text into the DOM, which has led to a steady stream of CSS-injection, prototype-pollution and DoS advisories.
- Version 12 changed the default layout, theme and look, and raised the runtime floor to Node 22.12 and Safari 17.4.
- The bundle is heavy with 22 dependencies, and it offers no interactive editing of nodes.

## The numbers

- Downloads, 4 weeks: 104M
- In a year: ×13
- GitHub stars: 91k
- Commits, 12 months: 2.9k
- Last npm release: Nov 2026
- Advisories, 24 months: 11
- Licence: MIT
- GitHub: https://github.com/mermaid-js/mermaid
- npm: https://www.npmjs.com/package/mermaid

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
