Analysis updated 2026-06-21
Write a text file describing your software architecture and generate a polished diagram without dragging any shapes.
Keep system documentation in sync with code by storing diagrams as text files in your git repository.
Export architecture or database schema diagrams as SVG or PNG for inclusion in wikis, slide decks, or docs.
| terrastruct/d2 | quii/learn-go-with-tests | charmbracelet/gum | |
|---|---|---|---|
| Stars | 23,630 | 23,627 | 23,562 |
| Language | Go | Go | Go |
| Setup difficulty | easy | easy | easy |
| Complexity | 2/5 | 2/5 | 2/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
D2 is a diagramming tool that lets you create technical diagrams by writing text rather than dragging and dropping shapes. You write a simple description of what connects to what, for example, "user -> database", and D2 converts that text into a polished visual diagram automatically. This approach means your diagrams live as readable text files that can be version-controlled alongside your code, making it easy to track changes over time. The language is designed for software architecture, network topology, and system documentation diagrams. You can describe boxes, arrows, labels, nested groups, and custom shapes, and choose from several automatic layout engines that arrange everything visually without manual positioning. D2 supports themes, custom fonts, and can export diagrams as SVG, PNG, or PDF. You would use D2 when you need to document how parts of a software system connect, architecture overviews, database schemas, API flow charts, and similar technical diagrams. It is especially useful in developer workflows where keeping documentation in sync with code matters. It runs as a command-line tool with live preview (a browser window that updates as you edit), can be embedded as a Go library, and has editor plugins for syntax highlighting. It is written in Go.
A text-to-diagram tool that converts simple text descriptions of connections into polished technical diagrams automatically, version-controllable, no manual layout needed, exports to SVG, PNG, or PDF.
Mainly Go. The stack also includes Go.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.