Docs · Engines

D2

Compatible with D2 (Terrastruct)

Modern declarative architecture-diagram language. Concise syntax: `api -> db: queries` becomes an arrow with a label; `auth: { login -> session }` groups into a container. Renders through our Graphviz pipeline.

Templates
33
Source language
d2
Workstation
Studio
Engine id
d2

In the same space

Most users come to D2 from Lucidchart Cloud Insights or Structurizr. Glyph runs this engine in the browser — no install, shareable via URL, exportable to PNG / SVG / PDF / source.

Syntax at a glance

api -> db: queries
web -> api

Paste this in the Studio code pane to see D2 render live. The full grammar is at the upstream-docs link above.

Sample templates

All 33
Engine reference: d2 · ← Browse all engines · Quick-start guide