LLM-FIRST ARCHITECTURE DIAGRAMSOPEN SOURCE / v0.1.0

A little opinionated.
A lot clearer.

Architecture diagrams as code for AI-first teams. Let an LLM write reviewable source, then refine the result on your own machine.

TERMINAL
npm install -g create-dumb-diagrams
Node.js 24+ No account neededQuick start ↗
my-system / zsh
CAPTURED FROM THE CLI · EXAMPLE PATH

Running the CLI… the next step unlocks when the project is ready.

Your cloud. Your call.

  • AWS
  • Azure
  • Google Cloud
  • Cloud agnostic
01 / FROM REQUEST TO DIAGRAM

Describe the system.
See how it becomes a diagram.

Write a normal technical request. The agent interprets the architecture, produces reviewable .dgm code, and Dumb Diagrams renders the result.

A visitor resolves the site through DNS and loads it from a CDN backed by the bucket that stores the website files.

HUMAN PROMPT ENGINE INTERPRETATION .DGM CODE RESULT
TRY THIS WITH YOUR AGENT
Create a simple AWS static website delivery diagram. Show a website visitor, DNS, a content delivery service, and the bucket that stores the website files.
RESULT
Full size ↗
A visitor resolves the site through DNS and loads it from a CDN backed by the bucket that stores the website files.
Turn a plain-English request into a clear, reviewable diagram. Follow the architecture brief, inspect the final .dgm source, then open it in Studio to refine and ship it.Create one with an agent ↗
02 / LESS GUESSWORK, MORE ENGINE

Describe the architecture.
Let the engine place it.

Give the model the architecture rather than a canvas full of coordinates. The engine handles placement and connector routes, producing a repeatable first render that you can adjust.

Inside the engine
01 / DETERMINISTIC ROUTING

The same source renders the same result.

The document, catalog, and saved view determine the output. Routes are scored for obstacles, crossings, bends, and distance, with A* search when simple paths are blocked. Dense cases raise warnings so you know where the result needs review.

02 / YOUR FINAL SAY

You can still adjust the result.

Move a service, choose a port, or draw a manual route in Studio. Your positions and visual overrides stay in the .dgm file, so the next render preserves your decisions.

03 / LLM-FIRST, TOKEN-CONSCIOUS

Use tokens for the architecture.

Ask an agent to write compact source instead of issuing repeated shape-by-shape MCP tool calls. Letting the engine handle layout can reduce token use and make lighter models practical. Savings depend on the model, context, and workflow.

03 / PRACTICAL QUESTIONS

What to expect.

A few things to know before you start.

What does LLM-first diagrams as code mean?

Your architecture lives in a readable .dgm file, not a collection of hand-placed shapes. A large language model (LLM) can draft or update that source through a coding agent. The deterministic engine handles layout and routing. Review the diff in Git and refine the result in Studio. No built-in model or AI subscription is required. Explore the LLM-first workflow.

Do I need a coding agent?

No, but one is useful for a first draft. Run dumbdiagrams init from the directory where you want the new project folder, then give the agent AGENTS.md and the shared .dumbdiagrams/ instructions. Codex, Claude Code, Cursor, Gemini CLI, or another coding agent can write a solid starting point. You can also write .dgm files yourself or edit them in Studio.

Where do my diagrams live?

On your machine, as portable .dgm files wherever you choose. Studio runs locally at 127.0.0.1 and saves the selected file directly; it is not tied to the repository where you started it. If you use the standalone browser editor instead, it keeps work in browser storage until you download a copy. More about the two modes.

Can I use it for clouds other than AWS?

Yes. AWS was the starting point, and the catalog now includes Azure, Google Cloud, and cloud-agnostic assets too. Support for those may be less polished than the AWS workflow. If something you need for your provider is missing, contributions are welcome: see CONTRIBUTING.md.

How is this different from a whiteboard?

You describe the services, boundaries, and connections, and Dumb Diagrams lays them out for you. You can then refine the result. The engine keeps placement, icon alignment, and arrow routing consistent, so an agent’s draft won’t leave you with drifting icons or arrows taking odd paths. An agent may give you a different draft each time, but the same .dgm source always renders the same way. The layout rules mostly follow AWS architecture guidance, with a few design choices of our own. It’s built for architecture diagrams, so it won’t cover general illustration, track your live infrastructure, or give you a hosted workspace for editing together.

Is it free and open source?

Yes. Dumb Diagrams is released under AGPL-3.0-only. The provider icons come with their own terms. You’ll find the details in the project license and icon notices.

START WITH ONE DIAGRAM

Put the architecture
on the page.

Create your first diagram