D2Modern diagram scripting language from text
ExcalidrawOpen-source collaborative whiteboard for hand-drawn style diagrams
D2 vs Excalidraw
How D2 and Excalidraw compare on popularity, activity, license and platforms: two open-source Diagrams & Data Visualization projects, both alternatives to Google Drawings.
At a glance
- Excalidraw has more GitHub stars (136.9k vs 26k, about 5× as many).
- Both are actively maintained (last commits today and today).
- D2 uses MPL-2.0 (weak copyleft); Excalidraw uses MIT (permissive).
- Excalidraw is the older project (repository started 2020; D2 in 2022).
Side by side
| D2 | Excalidraw | |
|---|---|---|
| GitHub stars | ★ 26,029 +114 in 9 days | ★ 136,887 +647 in 10 days |
| Forks | 797 | 16,479 |
| Last commit | today | today |
| Latest version | v0.10.1 | v0.18.1 |
| Repository started | September 2022 | January 2020 |
| License | MPL-2.0 · weak copyleft | MIT · permissive |
| Self-hosted | Desktop/CLI app | Unknown |
| Platforms | Linux, macOS, Windows, CLI | Web |
| Main language | Go | TypeScript |
| Alternative to | Google Drawings | Google Drawings, Miro, Visio |
Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 4 December 2026.
D2
D2 turns text descriptions into diagrams through a declarative language. The usual workflow runs a CLI that reads .d2 files and exports vector or raster output.
Key features
- Text-to-diagram declarative syntax
- CLI with watch and live reload
- Multiple layout engines
- SVG, PNG, PDF, and PPTX export
- Official themes and sketch mode
- VSCode and Vim extensions
Excalidraw
Excalidraw is a virtual whiteboard for sketching diagrams and wireframes in a hand-drawn style. It offers an infinite canvas, real-time collaboration with end-to-end encryption, and is also published as an npm package for embedding.
Key features
- Infinite canvas whiteboard
- Hand-drawn style shapes
- Real-time collaboration
- End-to-end encryption
- Export to PNG, SVG, clipboard
- Open .excalidraw JSON format