compare
D2 vs Mermaid
The same facts for both, read from GitHub every night, and the relation a person reviewed.
| Fact | D2 | Mermaid |
|---|---|---|
| Language | Go | TypeScript |
| Licence | MPL-2.0 | MIT |
| Stars | 26k | 91k |
| Latest | v0.9.0 | @mermaid-js/tiny@12.1.0 |
| Last push | 2026-10-02 | 2026-10-06 |
| Release cadence | about 98 days between releases | about 1 day between releases |
| Active contributors | 3 commit authors on the default branch in the last 90 days | 20+ commit authors on the default branch in the last 90 days |
| Flags | none | none |
How they relate
Both replace Lucidchart. Alternatives to Lucidchart →
PartialD2Architecture and flow diagrams from a declarative text language, with several layout engines and themes.
PartialMermaidFlowcharts, sequence, Gantt and other diagrams from Markdown-like text, rendered by GitHub and many docs tools.
D2
- v0.9.02026-09-07TALA is now open source and bundled with D2, including the JavaScript/WASM package. Select it with d2 --layout=tala, D2…
- v0.8.22026-08-28exports: gif exports work with animate: true keyword #2663
- v0.7.12025-08-19ASCII renders. Output txt for d2 to render diagrams as ASCII art #2572
- v0.7.02025-05-02Icons:
- v0.6.92025-02-05Animations: style.animated: true is supported on shapes #2250
Mermaid
- @mermaid-js/tiny@12.1.02026-10-02behaviour, and descending mirrors every row so it reads from that row's highest bit down to its
- @mermaid-js/parser@2.0.12026-10-02
- @mermaid-js/layout-elk@1.0.12026-10-02Updated dependencies \[50c9e55, 4c90f5c, c7fa1a5, d67331d, 99a050b, 9140716, 3101c7d, aa29345, 967bbde, 147f343, 40ef7b…
- mermaid@12.1.02026-10-02behaviour, and descending mirrors every row so it reads from that row's highest bit down to its
- @mermaid-js/layout-tidy-tree@1.0.12026-09-18
D2
✓ signed The latest release, v0.9.0, carries a signature GitHub verified.
Loading the security report
Mermaid
unsigned The latest release, @mermaid-js/tiny@12.1.0, carries no signature GitHub could verify.
Loading the security report