Diagrams as code
Write a few objects in Diagon's compact diagram language on the left; the diagram draws and lays itself out live on the right.
In your browser · Windows / Linux · macOS soon
Write a few objects on the left, watch the diagram lay itself out on the right — then drag any node and its position is written straight back into your code. Both directions. Always in sync.
Free to use, no account · a subscription for the extras: €4.99/month or €49.90/year · cancel anytime
01The loop
round-trip
Write
a few objects in Diagon's compact diagram language.
Watch
the layout engine draw and arrange the diagram live.
Drag
any node — its position lands back in your code.
Ask
your own AI assistant, once connected, to draw or change the diagram.
02What makes it Diagon
4 capabilities
Write a few objects in Diagon's compact diagram language on the left; the diagram draws and lays itself out live on the right.
Grab any node with the mouse and its position is written straight back into your code. The source stays the single source of truth — both ways.
A custom layered auto-layout engine built for this language — no external diagram libraries. The same engine draws in the desktop app and in your browser, on your own machine either way.
Diagon has no AI of its own. Connect an assistant that runs on the same computer — Claude Code or Claude Desktop, Cursor, Copilot in VS Code, Codex — and it can read the diagram you have open and draw or change it in your window. A chat in a web browser can't connect. Off until you switch it on; what the assistant reads goes to its own provider. Part of the subscription, in the desktop app.
03See it move
the loop, recorded
Demo video
Being recorded.
04How buying works
Free to use. Subscribe for the extras.
Diagon is free — no account, no card, no time limit — in your browser and on your desktop. A subscription adds a short list of extras — €4.99 a month, or €49.90 a year with two months free. Cancel anytime; when it ends, Diagon carries on as the free app. Nothing ever locks, and your diagrams — plain-text files — stay yours either way. Checkout, invoicing and VAT are handled by FastSpring, our merchant of record.
Without a subscription, a diagram that asks for one of the extras is still drawn — the plain way — and your text is never changed. How it works, exactly
05Questions
5 answers