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")
How a search request is answeredHow 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 APIHow a search request is answeredLiveData flows todayWeb appSearch boxFiltersSearch APIChecks access

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"}]
}
How an email is deliveredHow 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 serverHow an email is deliveredLiveData flows todayMail appWriteSendSending serverQueue

Mermaid

flowchart LR
  form[Sign-up form] --> check{Check details}
  check -->|valid| create[Create account]
  create -.-> trial[Start free trial]
FlowchartFlowchart 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)FlowchartLiveData flows todayConnection to buildSign-up formCheck detailsCreate accountStart free trialvalid