D2
by Terrastruct
Modern diagram scripting language that turns text into diagrams
Visit d2lang.com FreeOpen source
D2 is a declarative diagram scripting language and CLI that compiles text into SVG and PNG diagrams. It supports multiple layout engines, themes, sketch mode, and features such as containers, classes, and animations.
Key features
- Declarative, readable diagram syntax
- Multiple layout engines
- Themes and sketch mode
- Watch mode with live reload
Try it on DevTools Daily
Similar tools
Diagrams
Draw cloud architecture diagrams as Python code

Graphviz
Open-source graph visualization software using the DOT language
draw.io
Free diagramming app for flowcharts, network, and architecture diagrams

Mermaid
Generate diagrams and charts from Markdown-like text
PlantUML
Create UML and architecture diagrams from a plain-text language

Excalidraw
Virtual whiteboard for sketching hand-drawn-like diagrams