D2 examples

D2 nests with braces, and nesting draws a boundary. Once that clicks, architecture diagrams get quick.

These examples cover the shapes, the containers, and the two specialist diagram types D2 handles natively.


#Every example here is real

Each page holds a diagram that is stored, rendered and editable exactly like one you drew yourself. Open any of them, change something, and see what happens. Nothing here is a screenshot.

Confluence page titled Checkout system design with a D2 architecture diagram linking Customer, Storefront, Checkout API, Payment gateway, Ledger, Order events and Warehouse system
A D2 architecture diagram rendered on a page, the same way each example here is stored and drawn.

#In this set



Nesting is the whole idea.