GitHub radar
A clean architecture diagram of your project, drawn by an AI agent
open-diagram is a free Python library for dense architecture diagrams that check their own layout. You get a clean map of your system on the first try, without fixing the layout by hand.
It is a set of Python building blocks: you describe panels, tiles, lines and groups in a short script, and the library places them and checks the result. If two panels collide or a line runs through a panel, the build names each problem.
When it helps
Useful when your docs need an exact map of services, a release pipeline, product layers or even a business process such as order delivery. You do not need it for a quick hand sketch, where writing a script takes longer.
Pros
- Each layout problem is named, so an agent can fix it alone
- Labels are measured from the font, so text always fits its box
- SVG (a picture made of shapes) looks the same in browser, PowerPoint, Figma
- You can also write diagrams in JSON or import Mermaid flowcharts
Cons
- PNG output needs Chrome, Chromium or Edge installed
- The comparison with Mermaid and draw.io sits in a separate document
- For a quick sketch, a script is more work than it is worth
How to set it up — step by step
- 1Open Claude Code or Codex in your project folder.
- 2Send the agent the text from the block below.
- 3Tell the agent which services and connections should appear on the diagram.
- 4Check that the agent installed the library with pip install open-diagram and built SVG and PNG files.
- 5If no PNG appeared, install Chrome, Chromium or Edge and ask the agent to build the diagram again.
- 6Open the SVG in a browser and check that every block and line is in place.
Text for your agent
Copy this and send it to your agent — Claude Code, Codex, any of them:
Draw an architecture diagram of my project with https://github.com/lukendeasy/open-diagram: install the library following the README, describe the panels and lines in a script and build an SVG and a PNG. If the build names overlaps, fix them and show me the result. Ask me which services and connections belong on the diagram.
Runs on a regular laptop: you only need Python 3.9 or newer. For a PNG image you also need Chrome, Chromium or Edge.
Open on GitHub▌ More finds