Skip to content
SPECIFICTION
Get listed

D2

d2lang.com

WebWindowsmacOSLinuxAPISelf-hosted
Visit d2lang.com
Spec score 7.9 #31 of 44 in Diagramming Software

Spec sheet

What it does
D2 is a declarative diagramming language that turns text into diagrams.Read 4 Oct 2026 · d2lang.com
Purpose
D2 is a declarative diagramming language that turns text into diagrams.Read 5 Oct 2026 · d2lang.com
Platforms
The CLI supports macOS, Linux, and Windows, and D2 can also run in a browser through WebAssembly.Read 5 Oct 2026 · d2lang.com
Free plan
YesRead 20 Sep 2026 · d2lang.com
Integrations
Official integrations include extensions for VSCode, Vim, and Obsidian; the extensions page also lists community plugins and tools.Read 5 Oct 2026 · d2lang.com
Privacy
The repository FAQ says D2 does not use an internet connection after installation except to check periodically for version updates from GitHub.Read 4 Oct 2026 · github.com
Support
The project directs users to Discord for help and GitHub Issues and Discussions for bugs, proposals, and feature requests.Read 5 Oct 2026 · d2lang.com
License
The repository says D2 is open sourced under the Mozilla Public License 2.0.Read 4 Oct 2026 · github.com
Diagram features
D2 supports themes, sketch mode, animations, LaTeX, Markdown, code snippets, tables, containers, imports, variables, and interactive links and tooltips.Read 5 Oct 2026 · d2lang.com
Diagram types
software architecture diagrams; UML class diagrams; sequence diagramsRead 20 Sep 2026 · d2lang.com
Editor integrations
The homepage lists official VSCode and Vim editor support, and the repository lists official VSCode, Vim, and Obsidian plugins.Read 4 Oct 2026 · github.com
Export formats
The CLI exports diagrams to SVG, PNG, PDF, PPTX, GIF, and ASCII.Read 5 Oct 2026 · d2lang.com
Exports
D2 supports exports to SVG, PNG, PDF, PPTX, GIF, and ASCII.Read 4 Oct 2026 · d2lang.com
Funding
Donations support the project's public tools and infrastructure, and the project says donations do not affect its roadmap, governance, or license.Read 5 Oct 2026 · d2lang.com
Help and support
The repository recommends Discord for help, GitHub Issues for feature requests, proposals, or bug reports, and email for private inquiries.Read 4 Oct 2026 · github.com
Import/export formats
D2 (.d2); SVG; PNG; PDF; PPTX; GIF; ASCIIRead 20 Sep 2026 · d2lang.com
Layout engines
The Playground offers Dagre, ELK, and TALA layout engines.Read 5 Oct 2026 · play.d2lang.com
Layouts
D2 offers three layout engines and also handles specialized layouts such as sequence diagrams and grids.Read 4 Oct 2026 · github.com
Offline and telemetry
The CLI does not use an internet connection after installation except to periodically check GitHub for version updates.Read 5 Oct 2026 · d2lang.com
Offline editing
YesRead 20 Sep 2026 · d2lang.com
Offline use
The homepage describes the local CLI as an offline workflow; the FAQ says D2 does not use an internet connection after installation except to check for version updates from GitHub periodically.Read 4 Oct 2026 · github.com
Online playground
The hosted Playground is an online runner for playing, learning, and creating with D2.Read 4 Oct 2026 · play.d2lang.com
Open source
D2 is free and open source, and remains under the Mozilla Public License 2.0.Read 5 Oct 2026 · d2lang.com
Other integrations
The repository lists community plugins and integrations including Emacs, Telegram, Postgres import, Confluence, and MkDocs.Read 4 Oct 2026 · github.com
Programming API
D2 can be used as a library to produce diagrams from Go programs.Read 4 Oct 2026 · github.com
Project sponsorship
D2 is an independent open-source project fiscally sponsored by Hack Club.Read 4 Oct 2026 · d2lang.com
Project status
D2 is an independent nonprofit project fiscally sponsored by Hack Club, and its maintainer says development time is limited.Read 5 Oct 2026 · d2lang.com
Scale limit
D2 is not designed for big data, and its maintainers do not test it on diagrams with thousands of nodes.Read 5 Oct 2026 · d2lang.com
VSCode extension
The creator-maintained VSCode extension is free and supports automatic indentation and syntax highlighting.Read 5 Oct 2026 · d2lang.com

Where Specifiction places it

Alternatives to D2All alternatives →