Skip to content

Releases

0.6.0

Choose a tag to compare

@lukendeasy lukendeasy released this 24 Nov 00:09
  • Templates come with the package, as JSON: aws_etl, aws_architecture, azure_web_app and gcp_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 in templates/assets/README.md.
  • open-diagram new lists the templates. open-diagram new azure_web_app writes azure_web_app.json into the current folder, and open-diagram draw azure_web_app.json draws it. It never overwrites a file unless you add --force.
  • MCP template tool: an agent asks for a template by name, edits the JSON, then calls check and draw.
  • Cloud resources in JSON: resources places each service at an x and y, enclosures draws boxes around them (listed from the inside out), and icon takes a name such as aws/s3. Icons are read only from the built-in folder, the JSON file's own folder and any --icons folder. 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

Choose a tag to compare

@lukendeasy lukendeasy released this 23 Nov 15:35
  • Cloud resources (PR #2): Resource draws one service with a large icon, and d.enclosure() draws accounts, networks and other boundaries, nested, with solid, dashed or dotted borders. Links take dash in Python, JSON and MCP. Two AWS templates in templates/.
  • Drawing skill: skills/open-diagram/SKILL.md starts 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

Choose a tag to compare

@lukendeasy lukendeasy released this 19 Nov 01:21

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 an x and y you choose. In Python, use d.ring(blocks, center=[...]).
  • Lines leave from the right side. start="auto" and end="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_spec and theme_from_spec are now public; the older names still work.

Existing diagrams draw exactly as before. Upgrade with: pip install --upgrade open-diagram

0.3.0

Choose a tag to compare

@lukendeasy lukendeasy released this 19 Nov 00:13

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, draw and describe. draw returns 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-diagram is unchanged and still works on Python 3.9.

0.2.2

Choose a tag to compare

@lukendeasy lukendeasy released this 18 Nov 23:38

Fix found by using 0.2.1 on a new diagram:

  • The open-diagram command now reads .py scripts 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

Choose a tag to compare

@lukendeasy lukendeasy released this 18 Nov 23:32

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

Choose a tag to compare

@lukendeasy lukendeasy released this 18 Nov 23:08

New in 0.2.0:

  • The picture explains itself. describe() and open-diagram describe return 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.mmd lays out a Mermaid flowchart with the same measuring and checks.
  • The open-diagram command. draw, check and describe. draw and check exit 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

Choose a tag to compare

@lukendeasy lukendeasy released this 18 Nov 22:43

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