D2
lastmod 2025-07-02created 2022-12-094 edits
D2 is a modern diagram scripting language that turns text to diagrams.
Features
- D2 = Declarative Diagramming
- A language for drawing diagrams from text, similar to MermaidJS, Graphviz, PlantUML, etc.
- Provides VSCode/Vim extensions, and can also generate SVG from .d2 files via the CLI
- Open source in Go, usable as a library
- Open-core model (ships with built-in external layout engines dagre/ELK, and sells a separate license for the TALA engine, developed and optimized for drawing software architecture)
See also
Favorite site
- Github - D2
- [Recommended] Text to diagram (tool comparison: D2 vs MermaidJS vs Graphviz vs PlantUML)