Generate an architecture diagram for a design doc
When to use: Your design doc needs a system diagram and you don't want to spend an hour in Excalidraw.
Prerequisites
- Excalidraw (web or desktop) — excalidraw.com — paste the .json output
Flow
-
DescribeGenerate an Excalidraw diagram: API gateway → auth service → user service & orders service → Postgres. Add a Redis cache between API and user service.✓ Copied→ Excalidraw .json returned
-
RefineAdd a sidecar logging agent on each service. Group services in a 'core' cluster.✓ Copied→ Updated diagram with cluster + sidecars
-
ExportRender to PNG at 3x and save to /docs/arch.png.✓ Copied→ PNG written
Outcome: Doc-ready diagram in 2 minutes instead of 30.
Pitfalls
- Too many nodes — diagram becomes unreadable — Ask for clusters and a higher abstraction level first