# Mermaid

Open\-source text\-to\-diagram renderer for documentation workflows, with host\-version, layout and security configuration boundaries\.

ID: Q1661 · Revision: 1774

Type: software · License: MIT[^mlicense] · Status: active

Website: https://mermaid.js.org/



Mermaid renders diagrams from text definitions instead of relying on manual placement on a drawing canvas\. It can be embedded into documentation systems or used through editors and command\-line tools\. Renderer versions, deployment configuration and the distinction between source text and exported graphics are important substitution boundaries\.[^mermaid][^musage][^mgithub]

## Capabilities and substitutions

### Text\-defined diagrams — supported

Renders supported diagram syntax into graphics\.[^mermaid]

Use case: Maintain diagrams alongside technical documentation · Platforms: Web, JavaScript runtime, Command line · Region: Renderer version/build, runtime and host configuration requirements apply\.

### Host compatibility — limited

Available syntax depends on the host's renderer version and build\.[^musage][^mgithub]

Use case: Reuse definitions across documentation platforms · Platforms: Web, JavaScript runtime, Command line · Region: Renderer version/build, runtime and host configuration requirements apply\.

### Batch graphic export — supported

CLI converts definitions to SVG, PNG or PDF\.[^mcli]

Use case: Generate document assets reproducibly · Platforms: Web, JavaScript runtime, Command line · Region: Renderer version/build, runtime and host configuration requirements apply\.

### Untrusted input controls — limited

Security modes trade HTML and click behavior against isolation\.[^musage]

Use case: Render externally supplied definitions · Platforms: Web, JavaScript runtime, Command line · Region: Renderer version/build, runtime and host configuration requirements apply\.

### Substitute for draw\-io (catalog entry pending) — limited

Source\-driven layout and host version support differ from manual canvas editing\.[^mermaid][^musage][^mgithub][^draw]

Use case: Maintain flowcharts and technical diagrams in text\-based documentation · Platforms: Web, JavaScript runtime, Command line · Region: Renderer version/build, runtime and host configuration requirements apply\.

## References

[^mlicense]: [Mermaid license](<https://github.com/mermaid-js/mermaid/blob/develop/LICENSE>) — MIT license (vendor; retrieved 2026-10-06T17:39:39Z)

[^mermaid]: [About Mermaid](<https://mermaid.js.org/intro/>) — Text\-defined JavaScript diagram renderer and diagram types (vendor; retrieved 2026-10-06T17:38:33Z)

[^musage]: [Mermaid usage](<https://mermaid.js.org/config/usage.html>) — Runtime, Tiny build and security\-mode boundaries (vendor; retrieved 2026-10-06T17:38:54Z)

[^mgithub]: [GitHub diagram rendering](<https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams>) — Mermaid fenced blocks and renderer version compatibility (vendor; retrieved 2026-10-06T17:38:54Z)

[^mcli]: [Mermaid CLI](<https://github.com/mermaid-js/mermaid-cli>) — Diagram source to SVG, PNG and PDF; Markdown rendering (vendor; retrieved 2026-10-06T17:38:54Z)

[^maccess]: [Mermaid accessibility](<https://mermaid.js.org/config/accessibility.html>) — Accessible titles and descriptions in rendered diagrams (vendor; retrieved 2026-10-06T17:39:53Z)

[^draw]: [draw\.io](<https://www.drawio.com/>) — Apache 2\.0 source; free editor and storage choice (vendor; retrieved 2026-10-06T17:38:04Z)

[^dimage]: [draw\.io PNG export](<https://www.drawio.com/docs/manual/export/export-to-png/>) — Optional embedded diagram data; current page versus whole multipage file (vendor; retrieved 2026-10-06T17:38:43Z)

Source revision: https://substitutefor.net/entities/Q1661?revision=1774
