Make
Write a few lines. Python, JSON or Mermaid.
Write it
Name the boxes and the lines between them. open-diagram places and draws them.
from open_diagram import Diagram, Panel
d = Diagram("How a search request is answered")
app = d.add(Panel("Web app", ["Search box", "Filters"]))
api = d.right_of(app, Panel("Search API", ["Checks access"]))
d.link(app, api)
d.save("search")Plain-words description
How a search request is answered
States shown: Live. Solid lines: data flows today.
Blocks, left to right:
- Web app: Search box; Filters
- Search API: Checks access
Lines:
- Web app -> Search API{
"title": "How an email is delivered",
"columns": [
[{"id": "app", "title": "Mail app", "tiles": ["Write", "Send"]}],
[{"id": "out", "title": "Sending server", "tiles": ["Queue"]}]
],
"links": [{"from": "app", "to": "out"}]
}Plain-words description
How an email is delivered
States shown: Live. Solid lines: data flows today.
Blocks, left to right:
- Mail app: Write; Send
- Sending server: Queue
Lines:
- Mail app -> Sending serverflowchart LR
form[Sign-up form] --> check{Check details}
check -->|valid| create[Create account]
create -.-> trial[Start free trial]Already have a Mermaid file?
Plain-words description
Flowchart
States shown: Live. Solid lines: data flows today. Dotted lines: connection to build.
Blocks, left to right:
- Sign-up form
- Check details
- Create account
- Start free trial
Lines:
- Sign-up form -> Check details
- Check details -> Create account, labeled "valid"
- Create account -> Start free trial (connection to build)Your agent
Give your coding agent the tools to draw a diagram and check it.
MCP server
For Claude Code, Cursor and other apps that use MCP.
Skill
For Claude Code and Codex.
GitHub Action
Checks every diagram in a pull request.
- uses: lukendeasy/open-diagram@v0.6.0
with:
files: docs/diagrams/*.json
mode: checkTry it
Click a box to rename it, drag it to move it, or edit the text. It all runs in your browser.