Write a few lines
Describe the boxes and the arrows in Python, JSON or Mermaid. open-diagram does the drawing.
Python
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")
JSON
{
"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"}]
}
Mermaid
flowchart LR
form[Sign-up form] --> check{Check details}
check -->|valid| create[Create account]
create -.-> trial[Start free trial]