Diagrams as code. Write text, get architecture diagrams.
AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.
Why it matters
Engineers can now keep architecture diagrams as version-controlled text files, eliminating stale hand-drawn images and letting every commit auto-update documentation.
D2 is a free, open-source tool that turns plain written text into architecture diagrams. Instead of dragging shapes around a canvas, you type lines like 'cloud_front -> api_gateway' and the software draws a polished picture in PNG, SVG or PDF form. Because the diagram is just a text file, teams can track changes to it like ordinary code. It suits software developers documenting systems, not people needing collaborative whiteboards like Lucidchart.
D2, an open-source diagramming language and CLI, threatens manual diagramming workflows for engineering teams by making diagrams versionable and auto-generatable in CI/CD pipelines. It is a single dependency-free binary, so adoption cost is near zero. It will not replace Lucidchart or Excalidraw for collaborative whiteboarding, but teams whose architecture docs drift out of date gain the most. No pricing concerns since the tool is free.
D2 is a declarative DSL where connections like 'cloud_front -> api_gateway -> lambda_functions -> dynamodb' render to PNG, SVG or PDF via a CLI. Layout is handled automatically by the TALA engine, avoiding overlapping edges, with manual overrides possible. It supports reusable shapes, containers, notes, tooltips and sequence diagrams, and ships as a single static binary with no Node.js, Python or Docker dependencies. No benchmark figures or version numbers are given.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.