qmetrics.net
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

Side by side

D2drawio-desktop
GitHub stars★ 26,029 +114 in 9 days★ 64,277 +121 in 9 days
Forks7975,819
Last committodayyesterday
Latest versionv0.10.1v32.8.0
Repository startedSeptember 2022May 2017
LicenseMPL-2.0 · weak copyleftGPL-3.0 · copyleft
Self-hostedDesktop/CLI appDesktop/CLI app
PlatformsLinux, macOS, Windows, CLILinux, macOS, Windows
Main languageGoJavaScript
Alternative toGoogle DrawingsGoogle 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

More comparisons

Report a mistake on this page