Description
D2 is a modern diagramming language. You write a short text description and D2 turns it into a diagram, which you can edit with your team. This site is the official documentation and blog for D2. It has a tour, examples, release notes and a hosted playground. The language includes production-ready themes by professional designers, a hand-drawn sketch mode, and animated diagrams. It supports LaTeX for academic work, labels in many languages, syntax-highlighted code inside shapes, Markdown and tables. A local CLI with a watch mode works offline on macOS, Linux and Windows, and D2 is available through package managers such as Homebrew and Winget. Editor support covers VSCode and Vim. Containers let you group shapes inside other shapes, there are three layout engines for different kinds of diagrams, and you can use your own .ttf font files. It is for developers, technical writers and teams that draw software and architecture diagrams.…
Highlights
- Text-to-diagram language
- Themes, sketch mode and animations
- Local CLI with watch mode
- VSCode and Vim editor support
- Three layout engines and an online playground
Ratings & Reviews
No ratings yet
Be the first to rate D2 Docs.
People also visit
D2 Docs FAQ
What is D2?
A declarative language that turns text into diagrams, with themes, sketch mode and animations.
How do I install it?
Install the local CLI, which runs on macOS, Linux and Windows. D2 is also included in package managers such as Homebrew and Winget.
Can I try it without installing?
Yes. The site has a hosted playground where you can create and share diagrams.
Is it open source?
Yes. The project is public on GitHub.
What are the best D2 Docs alternatives?
Popular alternatives to D2 Docs include Text To Diagram Site, Lini and Technical diagrams from text. See all D2 Docs alternatives







