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

Side by side

D2Excalidraw
GitHub stars★ 26,029 +114 in 9 days★ 136,887 +647 in 10 days
Forks79716,479
Last committodaytoday
Latest versionv0.10.1v0.18.1
Repository startedSeptember 2022January 2020
LicenseMPL-2.0 · weak copyleftMIT · permissive
Self-hostedDesktop/CLI appUnknown
PlatformsLinux, macOS, Windows, CLIWeb
Main languageGoTypeScript
Alternative toGoogle DrawingsGoogle 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

More comparisons

Report a mistake on this page