# 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. --- ## In this set [Architecture diagram (D2)A system architecture diagram in D2 with nested containers and labelled connections.](https://help.gocapable.com/diagrams/architecture-diagram-d2.html)[Containers and icons (D2)D2 containers and icon shapes building an architecture diagram that reads at a glance.](https://help.gocapable.com/diagrams/containers-and-icons-d2.html)[Sequence diagram (D2)A D2 sequence diagram with spans, notes and self messages.](https://help.gocapable.com/diagrams/sequence-diagram-d2.html)[UML class diagram (D2)Classes and relationships modelled with the D2 class shape, including fields and visibility.](https://help.gocapable.com/diagrams/uml-class-diagram-d2.html)[SQL schema diagram (D2)A database schema drawn with D2 sql\_table shapes, showing columns, types and foreign keys.](https://help.gocapable.com/diagrams/sql-schema-diagram-d2.html)[Shape variations (D2)Every D2 shape side by side on one page, so you can pick the right one without leaving the docs.](https://help.gocapable.com/diagrams/shape-variations-d2.html) --- ## Related [ReferenceThe language reference behind these.](https://help.gocapable.com/diagrams/reference.html) [Diagram typesGrouped by what you want to draw.](https://help.gocapable.com/diagrams/diagram-types.html) [ExamplesEvery other set.](https://help.gocapable.com/diagrams/examples.html) --- _Nesting is the whole idea._