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/examples@2.1.0 |
| Last push | 2026-11-22 | 2026-11-23 |
| Release cadence | about 98 days between releases | about 5 days between releases |
| Active contributors | 7 commit authors on the default branch in the last 90 days | 16+ 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/examples@2.1.02026-11-13
- @mermaid-js/tiny@12.3.02026-11-03Edge IDs may no longer contain [ ] ( ) { } |.
- @mermaid-js/layout-elk@1.0.22026-11-03Updated dependencies \[2ff8286, 592d0e4, 5c8aa5d, b200b27, 686f350, 7eec083, 42d3760, 692d22a, 56aa105, 800f7ef, 50d629…
- mermaid@12.3.02026-11-03Edge IDs may no longer contain [ ] ( ) { } |.
- @mermaid-js/tiny@12.2.02026-10-13
D2
✓ signed The latest release, v0.9.0, carries a signature GitHub verified.
Loading the security report
Mermaid
unsigned The latest release, @mermaid-js/examples@2.1.0, carries no signature GitHub could verify.
Loading the security report