D2Modern diagram scripting language from text
InkscapeFree vector graphics editor for SVG illustration work
D2 vs Inkscape
How D2 and Inkscape compare on popularity, activity, license and platforms: two open-source Diagrams & Data Visualization projects, both alternatives to Google Drawings.
At a glance
- D2 has more GitHub stars (26k vs 4.2k, about 6× as many).
- Both are actively maintained (last commits today and today).
- D2 uses MPL-2.0 (weak copyleft); Inkscape uses GPL-2.0 (copyleft).
- Inkscape is the older project (repository started 2017; D2 in 2022).
Side by side
| D2 | Inkscape | |
|---|---|---|
| GitHub stars | ★ 26,029 +114 in 9 days | ★ 4,180 +0 in 10 days |
| Forks | 797 | 2,091 |
| Last commit | today | today |
| Latest version | v0.10.1 | INKSCAPE_1_4 |
| Repository started | September 2022 | June 2017 |
| License | MPL-2.0 · weak copyleft | GPL-2.0 · copyleft |
| Self-hosted | Desktop/CLI app | Desktop/CLI app |
| Platforms | Linux, macOS, Windows, CLI | – |
| Main language | Go | – |
| Alternative to | Google Drawings | Adobe Illustrator, Canva, CorelDRAW, Google Drawings |
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
Inkscape
Inkscape is a free vector graphics editor for artistic and technical illustrations such as logos, typography, clip art, diagrams, and flowcharts.
Key features
- SVG as primary document format
- Paths, shapes, text, and layers
- Gradients, transforms, and grouping
- Node editing and path operations
- Text-on-path and SVG XML editing
- Import EPS, PNG, JPEG, and more