D2Modern diagram scripting language from text
drawio-desktopOffline Electron diagram editor from draw.io
D2 vs drawio-desktop
How D2 and drawio-desktop compare on popularity, activity, license and platforms: two open-source Diagrams & Data Visualization projects, both alternatives to Google Drawings.
At a glance
- drawio-desktop has more GitHub stars (64.3k vs 26k, about 2× as many).
- Both are actively maintained (last commits today and yesterday).
- D2 uses MPL-2.0 (weak copyleft); drawio-desktop uses GPL-3.0 (copyleft).
- drawio-desktop is the older project (repository started 2017; D2 in 2022).
Side by side
| D2 | drawio-desktop | |
|---|---|---|
| GitHub stars | ★ 26,029 +114 in 9 days | ★ 64,277 +121 in 9 days |
| Forks | 797 | 5,819 |
| Last commit | today | yesterday |
| Latest version | v0.10.1 | v32.8.0 |
| Repository started | September 2022 | May 2017 |
| License | MPL-2.0 · weak copyleft | GPL-3.0 · copyleft |
| Self-hosted | Desktop/CLI app | Desktop/CLI app |
| Platforms | Linux, macOS, Windows, CLI | Linux, macOS, Windows |
| Main language | Go | JavaScript |
| Alternative to | Google Drawings | Google Drawings, 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
drawio-desktop
draw.io Desktop wraps the draw.io editor in a local Electron application. Diagrams stay on your machine with network isolation outside updates.
Key features
- Local Electron wrapper around draw.io
- Windows, macOS, and Linux installers
- Portable and store distribution flavors
- Offline-first content security policy
- Configurable automatic update checks
- ARM64 native Windows builds