D2 is a diagram scripting language that turns text into diagrams and is now open source. The language is designed for software architecture diagrams and is compared to other tools like MermaidJS, Graphviz, and PlantUML on the website text-to-diagram.com. The company behind D2, Terrastruct, offers an alternative layout engine for sale, but the open-source version of D2 is usable without it. The language is written in Go and has a simple syntax for creating diagrams.