Repository navigation
Releases
0.6.0
- Templates come with the package, as JSON:
aws_etl,aws_architecture,azure_web_appandgcp_event_pipeline. The two AWS templates were Python scripts; the JSON versions draw the same pictures, byte for byte. The Azure and Google Cloud icons are the providers' own files, unchanged, with their source and license intemplates/assets/README.md. open-diagram newlists the templates.open-diagram new azure_web_appwritesazure_web_app.jsoninto the current folder, andopen-diagram draw azure_web_app.jsondraws it. It never overwrites a file unless you add--force.- MCP
templatetool: an agent asks for a template by name, edits the JSON, then callscheckanddraw. - Cloud resources in JSON:
resourcesplaces each service at anxandy,enclosuresdraws boxes around them (listed from the inside out), andicontakes a name such asaws/s3. Icons are read only from the built-in folder, the JSON file's own folder and any--iconsfolder. Full paths and..are refused, so a diagram can never read other files on the computer. - A template standard, in templates/README.md: one screen in size, no layout problems, works offline, the service name under each icon. The tests check each rule they can, so a pull request that breaks one fails.
Existing pictures are unchanged, byte for byte.
pip install -U open-diagram
0.5.0
- Cloud resources (PR #2):
Resourcedraws one service with a large icon, andd.enclosure()draws accounts, networks and other boundaries, nested, with solid, dashed or dotted borders. Links takedashin Python, JSON and MCP. Two AWS templates intemplates/. - Drawing skill:
skills/open-diagram/SKILL.mdstarts from the route (MCP, JSON or Python) and covers cloud resources with the cloud-icons skill. - Comparison: docs/comparison.md compares open-diagram with Mermaid, D2, draw.io, Excalidraw and archify. Also at open-diagram.dev/compare.html.
Existing pictures are unchanged, byte for byte.
pip install -U open-diagram
0.4.0
New in 0.4.0:
- More than columns. In JSON, and so through the MCP server,
"ring"places panels around a circle with optional panels in the middle, and"panels"places each panel at anxandyyou choose. In Python, used.ring(blocks, center=[...]). - Lines leave from the right side.
start="auto"andend="auto"pick the sides that face each other. This is the default in ring and panels layouts. - New check. A line that leaves or enters a box facing away from the other box is reported. This catches lines that hook back.
- Yellow keeps one meaning. Step numbers turn charcoal when a panel uses the yellow accent header.
- Public helpers.
panel_from_specandtheme_from_specare now public; the older names still work.
Existing diagrams draw exactly as before. Upgrade with: pip install --upgrade open-diagram
0.3.0
New in 0.3.0: open-diagram as an MCP server.
AI apps such as Claude Desktop, Claude Code and Cursor can now draw diagrams as one of their own actions. It runs on your computer and nothing is hosted.
- Tools:
format_guide,check,drawanddescribe.drawreturns the layout problems, the file paths, a plain-words description and the picture itself, so the AI can look at what it made. - Input: JSON and Mermaid only, never Python. Files are written only inside one output folder.
- Install for Claude Code:
claude mcp add open-diagram -- uvx --python 3.12 --from "open-diagram[mcp]" open-diagram-mcp. The README has the Claude Desktop and Cursor settings. - Optional: the MCP toolkit needs Python 3.10 or later. Plain
pip install open-diagramis unchanged and still works on Python 3.9.
0.2.2
Fix found by using 0.2.1 on a new diagram:
- The
open-diagramcommand now reads.pyscripts fresh every time. Before, Python's saved bytecode could be reused when a script was edited within the same second and kept the same size, so a quick edit-and-check loop could see the old version.
Upgrade with: pip install --upgrade open-diagram
0.2.1
Fixes found by using 0.2.0 on brand-new diagrams:
- Mermaid: nodes named like Mermaid words (
click,style,class) are no longer skipped. - Mermaid top-down layouts leave room for group titles.
- Group titles are drawn above lines, so a line passes behind a title instead of through it.
- New check: a line label sitting on a group title is reported.
- Line labels slide along their line to a spot clear of boxes, titles, other lines and other labels.
Diagrams without groups draw exactly as in 0.2.0. Upgrade with: pip install --upgrade open-diagram
0.2.0
New in 0.2.0:
- The picture explains itself.
describe()andopen-diagram describereturn what a diagram says in plain words. The same text goes into the SVG for screen readers. - Any agent can use it. Describe a diagram as JSON, with no Python. Every mistake names its exact place.
- Bring your Mermaid.
open-diagram draw flow.mmdlays out a Mermaid flowchart with the same measuring and checks. - The open-diagram command.
draw,checkanddescribe.drawandcheckexit with 1 when the layout has problems. - Diagrams that can't go stale. A GitHub Action (
uses: lukendeasy/open-diagram@v0.2.0) checks or redraws diagrams on every push. Keep states in a small file and the pictures follow. - Two new examples: email delivery (JSON) and a sign-up flow (Mermaid).
Install: pip install --upgrade open-diagram
0.1.0
First release.
- Building blocks: panels, tiles, groups, cards, small node-link maps, notes
- Every label measured from the bundled Inter font before anything is placed
- Layout checks that name each problem: overlaps, tight gaps, lines through boxes, labels on boxes, small text
- SVG output with text drawn as shapes; PNG through Chrome, Chromium or Edge
- Gray and yellow default look with a light 3D style; every color, size and the 3D look can be changed
- Ten examples, from a video platform to a release pipeline to how git stores a project
- An Agent Skill for Claude and an AGENTS.md for coding agents
Install: pip install open-diagram