Every team I have worked with had the diagram. A beautiful picture in Miro, draw.io or a slide deck, created during a kickoff, presented once to stakeholders — and quietly wrong three sprints later.
Nobody lied. The system just moved on. A service was split, a queue replaced a REST call, a database got a read replica. The diagram didn't, because updating it means opening a canvas, nudging boxes and re-routing arrows by hand. So we stop doing it, and the most important document of a system turns into decoration.
I built ArchScript because I wanted the opposite: an architecture that is as easy to change as the code it describes.
Describe the system, don't draw it
ArchScript is a small, readable language for software architecture. You write what exists and how it is connected:
project MicroservicesPlatform domain Identity { element service "Auth Service" as auth { tech "Rust" owner "Identity Team" } element database "Auth Database" as auth_db } boundary Messaging { element event_bus "Event Bus" as event_bus { tech "Kafka" } } relation auth -> auth_db : PostgreSQL relation auth -> event_bus : publishes UserCreated That is the whole model. There are no coordinates, no colours to pick, no arrows to route. The diagram is generated — laid out automatically every time the code changes:
Domains and boundaries become frames, element types get their own shapes and colours, relations are routed orthogonally with their labels.
What changes when the diagram is generated
Changes are cheap. Rename a service and every relation follows. Move an element into another domain and the layout reorganises itself. The cost of keeping the picture true drops to almost zero — which is the only way it ever stays true.
The model lives next to the code. An .archs file is plain text. It goes into Git, shows up in pull requests and has a history. "When did we introduce the event bus?" becomes git log.
The model can be checked. Because the architecture is structured data, a tool can reason about it. ArchScript runs more than a dozen architecture rules while you type: dependency cycles, clients talking straight to databases, critical services without an owner, production services without monitoring, unencrypted public traffic. A picture can't warn you. A model can.
One source, many outputs. The same file produces the interactive diagram, Markdown documentation, a PDF report, Mermaid and PlantUML — and even a Terraform skeleton for AWS, Azure or Google Cloud.
"But I like dragging boxes"
So do I — for sketching. That's why the newest version turns the diagram into an editor without giving up the code as the source of truth.
Right-click the diagram and insert an element: it appears in the right container and the right layer, because the layout is still automatic. Drag a handle from one element to another and a relation line appears in the code. Drag an element into a container and its code block moves there, indentation included. Every action is a small, undoable text edit.
In the Apple apps an inspector edits names, types, properties, tags and colours — each change written back as code.
You get the immediacy of a canvas and the precision of code, without the drift.
Where to start
The fastest way is the browser: the ArchScript Playground compiles everything locally with WebAssembly — no account, no upload, your model stays on your device. Pick a template (microservices, DDD, event-driven, Docker deployment) and start changing things.
On Apple devices, ArchScript for Mac, iPad and iPhone (App Store) adds a native editor, the inspector, custom rules synced via iCloud and Terraform export. On the Mac there is also — more on that in a later post — a way for AI assistants like Claude to plan architecture with you.
The diagram on your wall is probably already out of date. The next one doesn't have to be.
ArchScript is built by Florian Fenzl. Try it at archscript.dev. In the next article: modelling Docker deployments — clusters, servers and containers — as code.


