
Description
Ask an AI to draw an architecture diagram and it looks fine until you zoom in: labels spill out of their boxes, two modules overlap, and a line cuts straight through a panel it has nothing to do with. Fix one thing and something else breaks. open-diagram takes a different route: every diagram checks its own layout before you ever look at it, and names each problem it finds.
You describe panels, tiles, lines and groups in a short Python script. It measures every label from the actual font, places the blocks, then reports things like which two panels are too close and by how many pixels, or which line crosses which module. It was built to be written by Claude, Codex or Cursor, so the agent reads the errors, fixes them, and the next build usually comes out clean.
Layout checks: Spacing, text overflow and lines crossing blocks are checked on every build, each error naming the blocks involved, with a full list at the end.
Font-accurate sizing: Label widths come from the font's own metrics and kerning, so every box fits its words.
Text as shapes: The SVG draws text as paths, so it renders the same in a browser, PowerPoint, Keynote or Figma without the font installed. A PNG is written too.
Many diagram types: Software systems, release pipelines, layered stacks, data models and business processes all use the same building blocks.
Several inputs: Write Python or JSON, or import a Mermaid flowchart and let it lay things out.
AI agent support: An MCP server adds it to Claude Code in one command; Claude Desktop and Cursor work too.
Words apart from layout: Labels live in lists at the top of the script, so changing a word never means moving a box by hand.
You describe panels, tiles, lines and groups in a short Python script. It measures every label from the actual font, places the blocks, then reports things like which two panels are too close and by how many pixels, or which line crosses which module. It was built to be written by Claude, Codex or Cursor, so the agent reads the errors, fixes them, and the next build usually comes out clean.
Features
Layout checks: Spacing, text overflow and lines crossing blocks are checked on every build, each error naming the blocks involved, with a full list at the end.
Font-accurate sizing: Label widths come from the font's own metrics and kerning, so every box fits its words.
Text as shapes: The SVG draws text as paths, so it renders the same in a browser, PowerPoint, Keynote or Figma without the font installed. A PNG is written too.
Many diagram types: Software systems, release pipelines, layered stacks, data models and business processes all use the same building blocks.
Several inputs: Write Python or JSON, or import a Mermaid flowchart and let it lay things out.
AI agent support: An MCP server adds it to Claude Code in one command; Claude Desktop and Cursor work too.
Words apart from layout: Labels live in lists at the top of the script, so changing a word never means moving a box by hand.
Screenshots
Tags:Architecture Diagram
