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

    FreeOpen sourceCLI, macOS, Windows +1
  • Graphviz

    Open-source graph visualization software using the DOT language

    FreeOpen sourceCLI, macOS, Windows +1
  • draw.io

    Free diagramming app for flowcharts, network, and architecture diagrams

    by JGraphFreeOpen sourceWeb, macOS, Windows +2
  • Mermaid

    Generate diagrams and charts from Markdown-like text

    FreeOpen sourceWeb, CLI
  • PlantUML

    Create UML and architecture diagrams from a plain-text language

    FreeOpen sourceCLI, Web, VS Code +1
  • Excalidraw

    Virtual whiteboard for sketching hand-drawn-like diagrams

    FreemiumOpen sourceWeb

Built a tool like D2? Submit it for review