# D2 **D2** is a modern diagram scripting language that makes it easy to create different types of diagrams using simple text input. It’s an open-source, declarative language that emphasizes ease of use, human-readability, and quick generation of diagrams, making it suitable for software architecture, ER diagrams, flowcharts, and more. ## [#](#examples)Examples ### [#](#sql-schema)SQL Schema ![SQL Schema Diagram](https://help.gocapable.com/images/att1072431850.svg) ### [#](#aws-diagram)AWS Diagram ![Containers & Icons](https://help.gocapable.com/images/att1073054395.svg) ### [#](#architecture-diagram)Architecture diagram ![Architecture Diagram](https://help.gocapable.com/images/att1073054403.svg) ### [#](#shape-variations)Shape variations ![Shape Variations](https://help.gocapable.com/images/att1072431856.svg) ## [#](#editor)Editor ![D2 Diagrams in Confluence](https://help.gocapable.com/images/8ee66078-f342-4be4-98c8-81c5e6aa0373.webp) D2 Editor ![D2 Diagrams in Confluence](https://help.gocapable.com/images/00f8b8f2-cf0b-4cdb-bbf9-b7d246d7eab6.webp) D2 Templates