D2

D2

Modern diagram scripting language to turn text to diagrams

7 followers

D2 is a modern diagram scripting language that turns text to diagrams.
D2 gallery image
D2 gallery image
D2 gallery image
D2 gallery image
Free
Launch Team
Auth0
Auth0
Start building with Auth0 for AI Agents, now generally available.
Promoted

What do you think? …

Alexander Wang
Hi ProductHunt, I'm excited to announce the launch of D2 here. It stands for Declarative Diagramming, and its use case is to turn diagramming from a design tool to a developer tool. Every software engineer and team makes documentation, and diagrams are everyone's favorite visual doc. But all the popular diagramming tools today are design tools (LucidChart, Draw.io, etc). It takes design skills to make a good diagram, and a lot of effort and time to maintain. D2 is a dev tool. You declare your diagram with simple syntax, and it generates the diagram for you. They're just text files, so you can grep, use your IDE, version control, etc. What's the difference between this and predecessors like MermaidJS, PlantUML, and Graphviz? We've made a site that compares: https://text-to-diagram.com. It's a community effort for you to evaluate yourself on the syntax, renders, layouts, and features (the maintainers of MermaidJS themselves have contributed to it). D2 is open source, easily installable on all major OS's (no telemetry), and has an online playground to easily get started and share diagrams (https://play.d2lang.com).
Rhymer Espinosa
@alixanderwang Congratulations on the launch. Super excited on your success.