open-diagram
open-diagram is a Python library for drawing dense architecture and process diagrams from short scripts; it measures every label from the font, lays out panels and lines, and fails the build with a named error when blocks collide or lines cross.
Why it matters
Diagrams written by AI coding agents (or people) often come out with overlapping boxes and cramped labels. This gives agents like Claude, Codex or Cursor a diagram format that checks its own layout, so the first render is usable.
Highlights
- Building blocks such as Panel, Tile, Tiles, Card, Graph, Row, Note and group, placed with helpers like right_of, below, columns, stack and ring.
- `save()` writes SVG and PNG and raises a LayoutError naming each problem, for example two panels too close or a line crossing a block.
- Text is drawn as shapes, so the SVG looks the same in browsers, PowerPoint, Keynote or Figma; Inter is bundled.
- Diagrams can also be written as JSON or imported from a Mermaid flowchart, with example scripts for systems maps, release pipelines, payment flows and business processes.
Taken from the project's own README, docs or launch page. Claims about speed or accuracy are the maker's unless stated otherwise.
Quick facts
| Pricing | Free |
|---|---|
| Free or paid | Free (open source) |
| License | MIT |
| Language | Python (3.9+, fontTools; PNG output needs Chrome, Chromium or Edge) |
| Platform | Any OS with Python (install with pip install open-diagram) |
| GitHub stars | ★ 247 (as of 2026-11-23) |
| Maker | Luke Deasy (lukendeasy on GitHub) |
Links
- Repository: https://github.com/lukendeasy/open-diagram
- Release notes: https://github.com/lukendeasy/open-diagram/releases
- Docs: https://pypi.org/project/open-diagram/
Related ranking
See how established tools compare in Best AI Coding Tools for Developers. New releases aren't scored until we review them against the rubric.
Checked 2026-11-23 from the tool's own pages. Prices and star counts change, so confirm on the official site. Listing here is not a ranking or an endorsement.
One email a week on AI that saves business owners time
Every Friday: one tool pick with the business use case, what changed in tools you already use, and the week's AI news in plain English. No spam.
Free. Unsubscribe any time. See our privacy policy.