Navigate:
All Reposmermaid
~$MERMAI0.1%

Mermaid: Markdown-like text to diagram generation

JavaScript library rendering text-based diagrams as SVG.

LIVE RANKINGS • 06:51 AM • STEADY
TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100
OVERALL
#64
44
DEVELOPER TOOLS
#12
3
30 DAY RANKING TREND
ovr#64
·Devel#12
STARS
85.2K
FORKS
8.5K
DOWNLOADS
2.3M
7D STARS
+91
7D FORKS
+8
See Repo:
Share:

Learn more about mermaid

Mermaid is a JavaScript library that parses markdown-inspired text syntax and renders it as SVG diagrams in the browser. It uses a text-based domain-specific language to define diagram structure, which is then processed by a renderer to produce visual output. The tool supports multiple diagram types including flowcharts, sequence diagrams, class diagrams, state diagrams, and mind maps. It integrates with documentation platforms, GitHub, and can be embedded in web applications or used via a live editor.


1

Text-Based Diagram Definition

Diagrams are defined using markdown-inspired syntax instead of graphical editors, enabling version control through Git and direct embedding in documentation. Changes are tracked as code diffs, making collaboration and review workflows identical to source code.

2

Multi-Diagram Single Library

Supports flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, Gantt charts, and mind maps without switching tools. Single dependency handles all diagram types with consistent syntax patterns.

3

Native Platform Integration

Renders directly in GitHub markdown, GitLab, and major documentation platforms without preprocessing. Available via CDN, npm package, or standalone live editor for immediate use in any web environment.


import mermaid from 'mermaid';

mermaid.initialize({ startOnLoad: true });

const diagram = `flowchart TD
  A[Start] --> B{Is Valid?}
  B -->|Yes| C[Process]
  B -->|No| D[Error]`;

await mermaid.render('diagramId', diagram);

vv10.9.5

Security patch backporting dagre-d3-es 7.0.13 (CVE-2025-57347) and DOMPurify updates (CVE-2025-26791) to the v10.x branch.

  • Update dagre-d3-es to 7.0.13 to mitigate CVE-2025-57347.
  • Update DOMPurify to avoid CVE-2025-26791; no breaking changes specified.
v11.12.1

Patches security vulnerability GHSA-cc8p-78qf-8p7q by upgrading dagre-d3-es to 7.0.13.

  • Upgrade to resolve a security issue in the dagre-d3-es dependency (CVE details not specified in notes).
  • No breaking changes or migration steps are documented for this patch release.
v11.12.1

Patches a security vulnerability by upgrading the dagre-d3-es dependency to 7.0.13.

  • Upgrade dagre-d3-es to 7.0.13 to resolve GHSA-cc8p-78qf-8p7q security advisory.
  • Release notes do not specify the nature or severity of the patched vulnerability.

See how people are using mermaid

Loading tweets...


[ EXPLORE MORE ]

Related Repositories

Discover similar tools and frameworks used by developers