D2Modern diagram scripting language from text
Next AI Draw.ioAI-assisted draw.io diagram editor and MCP server
D2 vs Next AI Draw.io
How D2 and Next AI Draw.io compare on popularity, activity, license and platforms: two open-source Diagrams & Data Visualization projects, both alternatives to Google Drawings.
At a glance
- Next AI Draw.io has more GitHub stars (37.4k vs 26k).
- Both are actively maintained (last commits today and 6 days ago).
- D2 uses MPL-2.0 (weak copyleft); Next AI Draw.io uses Apache-2.0 (permissive).
- D2 is the older project (repository started 2022; Next AI Draw.io in 2025).
Side by side
| D2 | Next AI Draw.io | |
|---|---|---|
| GitHub stars | ★ 26,029 +114 in 9 days | ★ 37,359 +177 in 9 days |
| Forks | 797 | 3,850 |
| Last commit | today | 6 days ago |
| Latest version | v0.10.1 | v0.5.2 |
| Repository started | September 2022 | March 2025 |
| License | MPL-2.0 · weak copyleft | Apache-2.0 · permissive |
| Self-hosted | Desktop/CLI app | Unknown |
| Platforms | Linux, macOS, Windows, CLI | Web, Linux, macOS, Windows |
| Main language | Go | TypeScript |
| 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
Next AI Draw.io
Next AI Draw.io turns text prompts, uploads, and selections into editable draw.io diagrams. It ships as a web demo, desktop builds, and an MCP server for coding agents.
Key features
- Chat-driven draw.io diagram generation
- Version cards with compare and restore
- AWS, Azure, GCP, Kubernetes icon sets
- Upload images, PDF, Markdown, or code
- Edit selected shapes via chat
- MCP server for IDE agents