mermaid-js/mermaid

Diagrams from markdown-like text

TypeScriptโ˜… 91.2k๐Ÿ“ Diagrams & Visuals

What

Renders flowcharts, sequence, class, state, ER, Gantt and more from text. Built into GitHub, GitLab, Notion and many doc tools.

How to use

bash
npm install mermaid
txt
flowchart LR
  A[Client] --> B[API]
  B --> C[(DB)]

In GitHub markdown, put that text in a fenced block tagged mermaid. Live editor: mermaid.live.

Reach for it when

you want diagrams versioned as text next to code.