Opening the shared document…
Write your own diagram
live editorC4 or sequence — .alab, arch-lab JSON, or Mermaid, auto-detected and rendered live. Nothing leaves your browser. Syntax reference
How .alab, JSON and Mermaid relate
.alab is the format to write: it is what the syntax reference documents, what share links carry, and what reads cleanly in a code review. .archlab.json is the same C4 model on disk — the interchange form any other tool can read without implementing a grammar; the two are lossless twins in both directions (proved on every build), so you never have to write the JSON by hand. Mermaid is read and written too, lossily — the format toggle above the pane converts in place and states what each direction drops. Nothing you type is uploaded or stored.
Tab indents · Esc then Tab leaves the editor · syntax reference
Export
A still of the diagram exactly as it is on screen, folds included.
Click a message, participant, or fragment chip to focus it · a • after a label means that message carries details · ← → move between messages · Ctrl + scroll or pinch to zoom · Esc clears focus · − on a card folds away the services only it uses
- Customer to Storefront (sync): Clicks Place order
- Storefront to Order API (sync): Place the order [HTTPS]
- Order API to Order API (sync, self-message): Validates the cart
- Order API to Payments (sync): Create charge [REST]
- Payments to Order API (reply): charge.succeeded
- Order API to Orders DB (sync): INSERT order [SQL]
- Order API to Customer (async): Emails the receipt
- Order API to Orders DB (async): Writes audit row
- Order API to Storefront (reply): 201 Created
- Order API to Storefront (reply): 402 Payment Required
- Storefront to Customer (sync): Shows onboarding tips