flowbraid

Flowbraid guide

Applications, message channels and data stores are recorded as nodes, and the message flows, writes and reads, requests and influences between them as edges.

A document is built around two arrays, nodes and edges. This page explains the core syntax of a document and how to read and use the canvas.

One flow, from order to notification
  1. ApplicationOrder Service
  2. publish
  3. Topicsnsorder-events
  4. route
  5. Queuesqsemail.send
  6. subscribe
  7. ApplicationNotification Service

Publish → route between channels → subscribe. The order service publishes to an SNS topic, the message is routed to an SQS queue, and the notification service consumes it. A route step is used only when it is needed.

Four kinds of components

A node is an independent component of the system. topic and queue together are called channels.

Applicationapp

A service or application. It publishes or subscribes to messages and writes or reads data, in any combination.

Pub/sub message channeltopic

A channel that many publishers and subscribers can share, such as a Kafka topic or an SNS topic.

Queue message channelqueue

A queue or competing-consumer channel, such as SQS or a RabbitMQ queue.

Data storestore

A place that keeps data, such as a database, a cache, a storage bucket or a search index: PostgreSQL, Redis, S3 or Elasticsearch.

Shape and platform are separate. type: "topic" is the shape of the channel and platform: "kafka" is its implementation; a data store names its product the same way, as in platform: "postgresql". A new platform never needs a new node type.

Components outside the document are marked external. Set external: true on a partner system or SaaS that is outside your ownership and control. It does not mean omitted or unverified.

Applications and data stores can be grouped into boundaries. List the units you want to tell apart, such as a payment system or a production environment, in the document's boundaries, and give an application or a data store the boundary's ID in boundary. Each belongs to one boundary at most, and topics and queues belong to none. An edge that crosses a boundary reads as flow into or out of that unit, such as another system reading a data store directly.

Channels can be grouped into clusters. List the units you want to tell channels apart by, such as the topics of one broker cluster or the queues of one account and region, in the document's clusters, and give a topic or queue the cluster's ID in cluster. A channel belongs to one cluster at most, and applications and data stores belong to none. Boundaries and clusters pick their color from the same palette.

Seven kinds of relationships

An edge points from from to to. For a message, a write or a read, the arrow is the way the data flows; for a request, it runs from the application that sends it to the one that answers it; for influence, from what affects to what is affected.

The expected endpoints of each relationship
RelationshipDirectionMeaningExample
publishapp → channelPublishes messagesOrder service → Kafka topic
subscribechannel → appSubscribes to and consumes messagesKafka topic → billing service
routebetween channels and data storesForwards messages or data to another channel or data storeSNS topic → SQS queue
writeapp → data storeWrites data to a data storeOrder service → orders DB
readdata store → appReads data from a data storeOrders DB → report service
requestapp → appSends a synchronous request to another applicationOrder service → payment service
influenceany node → any nodeState or changes affect the targetOrder service → billing service

Six rules for reading the syntax

So that even a small graph reads the same way, components and relationships have distinct roles.

Event types belong on the edge

Record them on the edge, as in events: ["OrderCreated"]. An event name is a string, not a reference id, and one edge can carry several types.

Omitting events means “not specified”

It does not mean all events or no events. When the list is present it needs at least one non-empty string, and only publish, subscribe and route edges carry it.

Publishers and subscribers are defined by their edges

One app can receive a message and publish another. Even when a Kafka consumer pulls, the subscription runs topic → app, as a read runs store → app.

route keeps a forwarding step short

Use it when the forwarding party, such as an SNS subscription, a Kafka Connect connector or a database's change data capture, is not modeled on its own. If that party matters, make it an app and connect it to both sides.

Layout never changes meaning

Position, color and shape are presentation. position and the color of a boundary or a cluster are optional, and a document without coordinates or colors is complete. The canvas and the code show the same graph.

Extra information supports the core relationships

Add evidence, code and operational details with notes, snippets and metadata. They never change the node type, the direction, the relationship type or the events. Values in metadata are text or lists of text.

Written as JSON

The order service publishes OrderCreated to a Kafka topic and the billing service subscribes to it. The example below is a complete Flowbraid document on its own.

{
  "format": "flowbraid",
  "version": 1,
  "name": "Order event flow",
  "nodes": [
    {
      "id": "order-service",
      "type": "app",
      "name": "Order Service"
    },
    {
      "id": "orders-created",
      "type": "topic",
      "name": "orders.created.v1",
      "platform": "kafka"
    },
    {
      "id": "billing-service",
      "type": "app",
      "name": "Billing Service"
    }
  ],
  "edges": [
    {
      "id": "publish-order-created",
      "from": "order-service",
      "to": "orders-created",
      "type": "publish",
      "events": [
        "OrderCreated"
      ]
    },
    {
      "id": "subscribe-billing",
      "from": "orders-created",
      "to": "billing-service",
      "type": "subscribe",
      "events": [
        "OrderCreated"
      ]
    }
  ]
}
format / version
The format name is flowbraid and the supported version is 1.
nodes
Every node needs an id, a type and a name.
edges
Every edge needs an id, a from, a to and a type.
id
Node ids are unique among nodes and edge ids among edges. from and to refer to node ids in the same document.
environment / asOf
Optional: the environment and the point in time the document describes, such as production and 2026-10-14 or v4.2. Besides its name and description, a document can carry notes, links and metadata too.
status
Optional: planned for a plan not applied to the system yet (see planned documents). Without it, or with applied, the document draws the system as it is.

Planned documents

A document draws one system at one point in time. Its status says whether that system is in place yet; a document without a status is applied.

planned
A plan not applied to the system yet. Its asOf is when the plan should land. The document list, the bar in a narrow window and the document panel mark it “Planned”.
applied
The system as it is, and the default. It carries no mark.
  1. Draw a copyOpen the document as it is now, press the clock button at the top of the document panel, then “Duplicate document”. Tick “Planned” in the dialog, create the copy, and draw the plan in it: add what will come and delete what will go.
  2. Compare the twoIn the snapshots view of either document, press “Compare” beside the other one. When only one of them is planned, that one is the later side, so what the plan adds shows as added and what it drops as removed, on the canvas and in the document panel. Between two applied or two planned documents, the one you pick is the earlier side. A copy keeps the layout of the document it came from, so the two line up on the canvas.
  3. Earlier states are snapshotsTo keep a document as it was before a change, take a snapshot, and later compare it with the current document. A snapshot can also become a new document.

A plan in several steps is several planned documents. Write why and how the change happens, and what is still open, in the notes of the document or of its elements.

Where validation ends and interpretation begins

Validation runs in three steps: structure, references, then semantics. Errors make the document invalid; semantic warnings do not change its validity.

  1. Structure · errorsRequired properties, value types, the supported version, and duplicate node, edge, boundary or cluster ids.
  2. References · errorsBoth ends of an edge must exist in the document, and so must the boundaries and clusters that nodes name. Only influence may point back to the same node.
  3. Semantics · warningsThe relationship type against its endpoint types, events on relationships other than publish, subscribe and route, topics or queues in a boundary, applications or data stores in a cluster, and colors outside the palette.

A document records the connection structure of a system and what it means.

A connected line does not prove that a particular message traveled that path, or that a given input produced a given output. The same event name does not guarantee the same message or schema.

A relationship missing from the document is not proof that it does not exist, and passing validation does not guarantee a match with the running system. Record the environment and the point in time the document describes in environment and asOf, and what it covers and on what basis in its notes.

Reading and using the canvas

The workspace and the samples page draw a document as a graph. Positions and zoom never change what the document means. Zoom and positions moved in reading mode are screen state; editing mode records node positions in the document. For multiple relationships between the same nodes, chips from top to bottom correspond to lines from top to bottom (left to right for vertical lines). This order is preserved when you move nodes. For self-loops, the upper chip corresponds to the upper curve.

Controls

  • Drag a node to move it: reading mode moves it on screen only, editing mode records the move in the document. Hover over a line to highlight its relationship. Rest the pointer on a node, a relationship chip or a boundary's name tab to peek at it. Click a node, line, chip or name tab to select it, and double-click to open its details; in editing mode, double-clicking opens its edit dialog instead. In editing mode, press a node tool in the dock, then click where the node goes. Press a relationship tool, then the start and the end, to connect two nodes; a flow relationship publishes, subscribes, routes, writes or reads as the two nodes decide. Scroll or pinch to zoom, and drag an empty area to move around.
  • Keyboard: Tab to a node, a connection or a boundary's name tab and press Enter to select it; press Enter again to open its details, or its edit dialog in editing mode. Move a node with the arrow keys; Escape clears the selection. In editing mode, Enter on a node tool adds the node in the middle, Delete removes the selection and Ctrl+Z undoes; with a relationship tool on, Tab goes only to the picked start and the nodes it can take, and Enter picks the start, then the end.
  • Your documents are saved in this browser only. To start, press “New document” in the empty workspace, or the + beside the list's title, and give the document a name and a description if you like: an empty document opens in editing mode. You can also pick a sample on the samples page and press “Copy to my workspace” to add a copy and open it. Samples are read-only, and copying the same sample again adds another copy. “Copy to my workspace” on a share page adds a shared document the same way (see sharing and embedding below). Your documents do not appear in other browsers or on other devices, and clearing the browser's site data removes them. To keep a document outside the browser or move it to another one, press the download button at the top of the document panel to save it as a JSON file; in the other browser, press the import button beside the list's title (“Import a file” in the empty workspace) and pick the file. Only valid Flowbraid documents are imported, each as a new document, and a dialog says why when a file cannot be. To keep the document as it is now in this browser, press the clock button at the top of the document panel, then “Take snapshot”; a name is optional, and without one the time it was taken shows instead. A snapshot's “Compare with current” shows what has been added, removed or changed since then, on the canvas and in the document panel (see comparing below). The pencil renames a snapshot and the trash deletes it. “Duplicate document” in the same view copies the document as it is now into a new one, and the sheets beside a snapshot make a new document from it; the new document opens with no snapshots of its own. Below the snapshots, “Compare” beside another document compares the two (see planned documents). Snapshots stay in this browser: exporting and importing leave them out. Opening the workspace again shows the document you viewed last. In a narrow window, a bar above the canvas shows the open document; press it to slide the list down over the canvas, where you can pick another one or make a new one. To delete a document, press the trash button on the selected document in the list, or on the bar in a narrow window, and confirm; its snapshots go with it, and a deleted document cannot be restored.
  • The dock at the bottom of the canvas switches between reading and editing. Reading never changes the document: nodes you drag or move with the arrow keys go back to their places when you press “Restore layout”, switch modes or open the document again. “Lock dragging” keeps the nodes in place while reading, and the browser remembers it. In editing mode the canvas gets a border, and the dock holds the select tool, the node tools, the relationship tools, Undo and Redo. A reload starts in reading mode. On the samples page the dock holds only “Lock dragging” and “Restore layout”.
  • In editing mode, the node tools in the dock add an application, a topic or a queue, or a data store. Topics and queues share a slot that shows the one chosen last; its ▾ lists both. Press a tool and a dashed outline of the node follows the pointer, then click where the node goes. Escape or pressing the tool again puts the select tool back. Pressed with the keyboard, a tool places the node in the middle of the canvas. A dialog asks for the name first, and the ID follows the name. To change a node, double-click it, press Enter on the selected node, or press the pencil above it: the dialog edits its name, platform, external flag, boundary (applications and data stores) or cluster (topics and queues), ID, description and tags, and topics and queues can switch kinds. Below the tags, notes, code snippets, links and metadata are folded into rows that sum up what each holds; open a row to edit it. Code keeps its spaces, and metadata is written as a JSON object whose values are text or lists of text. Nothing changes until you save, and a save is one undo step; changing the ID also updates the connections that point at the node. If you press Escape or Cancel after changing something, the dialog asks before discarding the changes. With nothing selected, the pencil at the top of the document panel changes the document's name, description, environment, point in time (“As of”) and whether it is planned, with its notes, links and metadata folded as a node's are. To edit the whole document as JSON, press “Edit document code” at the top of that dialog, or open “View code” with nothing selected and press the pencil at the top of the panel. Saving checks the text first: errors, such as text that is not valid JSON or a connection to a node that does not exist, keep it from saving and are listed under the text with their line numbers, and pressing one selects that place; for text that is not JSON, the list also says what was needed there. Warnings are listed too. With warnings only, the button becomes “Save with warnings”, and pressing it saves. A save is one undo step. Nodes the text gives no position keep their place on the canvas, and new ones are placed where they do not overlap the others. If the first new node is behind the panel or off the canvas, the canvas moves to show it. Moving a node records its position in the document in whole pixels. One drag, or a run of arrow-key moves on the same node, is one undo step. The first edit also records the positions of the nodes laid out automatically, so the layout stays as it was. The trash button above a selected node, or Delete or Backspace, deletes the selected node together with its connections, or the selected connection, and a notice offers to undo it. Ctrl+Z (Cmd+Z on a Mac) undoes and Ctrl+Shift+Z redoes. Edits are saved right away. Their undo history stays while you switch documents, but a reload clears it.
  • To relate two nodes, press a relationship tool in the dock, then the node where the relationship starts and the node where it ends. The flow tool takes its kind from the ends: from an application to a topic or queue it publishes and to a data store it writes, from a topic or queue to an application it subscribes, from a data store to an application it reads, and between topics, queues and data stores it routes. Request and influence share a slot that shows the one chosen last; its ▾ lists both. A request runs from one application to another. Only the nodes the normal patterns allow get a dashed outline, and the rest fades; a hint above the dock says what to choose next. Route and request never connect a node to itself, while influence can relate a node to itself. Escape or a click on an empty spot drops the start, and Escape again, or pressing the tool again, puts the select tool back. With the keyboard, press Shift+Tab from the dock to reach the nodes the tool can take, and press Enter on the start and on the end. The new connection is one undo step, and it is selected: press Enter, double-click it or its chip, or press the pencil beside its chip to edit its label, kind, ID, description, events and tags, and its notes, code snippets, links and metadata. The kinds offered are those its ends allow, and saving a message relationship as another kind removes its events.
  • Applications and data stores in a boundary are drawn inside a translucent region with the boundary's name on a tab in its top-left corner, and each member's card has a band of the boundary's color along its left edge. The tab is where you point at, select and open a boundary; dragging an empty spot inside a region still moves around. In editing mode, choose the boundary of an application or a data store under “Boundary” in its dialog, or choose “New boundary…” and type a name: saving creates the boundary in a color no other boundary or cluster uses, where possible. Double-click a tab, press Enter on the selected tab, or press the pencil beside it to edit the boundary's name, color, ID, description, tags and metadata; changing the ID updates its members. The trash button beside a selected tab, or Delete, deletes the boundary and keeps its members, and a notice offers to undo it. A boundary without members is not drawn: pick it from the boundaries in the document panel's summary, and use the pencil and the trash at the top of the panel.
  • A topic or queue in a cluster names it under its own name, after a square of the cluster's color; this line looks different from a boundary member's band even in the same color. Nothing else on the canvas is the cluster: select it from the clusters in the document panel's summary, or from the “Cluster” line in a channel's details, and everything but its channels and their neighbors fades. In editing mode, choose a channel's cluster under “Cluster” in its dialog, or choose “New cluster…” and type a name: saving creates the cluster in a color no boundary or other cluster uses, where possible. The pencil and the trash at the top of the panel, or Delete while the cluster is selected, change its name, color, ID, description, tags and metadata, or delete it and keep its channels; a notice offers to undo the deletion.
  • The handle on the right edge of the canvas slides the document panel over the graph; the graph keeps its size and position. The panel starts closed and shows the document, or the selected node, connection, boundary or cluster. While the panel is closed, a new selection makes the handle flash briefly to show that the panel has changed. Press the handle again, or Escape inside the panel, to close it. When keyboard focus reaches something the open panel covers, the panel closes by itself.
  • Comparing with a snapshot or another document switches to reading mode. The canvas draws the later side, which is the document as it is now when comparing with a snapshot, together with what only the earlier side has, at the place it had there. A plus on a card's corner, with a dashed blue outline, marks what was added; a minus, with an amber outline and the name struck through, what was removed; a tilde, what changed. Lines and the chips of relationships are marked the same way, and a boundary's tab ends with the mark. Moving a node or changing only a color is not a change. A bar above the dock names the two sides and counts what was added, removed and changed; the document's own fields count as one change. The document panel lists the changes whatever you select: pressing a name there selects it on the canvas and brings it out from under the panel, and selecting on the canvas marks its entry in the list. Since the panel shows this list either way, the handle does not flash when you select while the panel is closed. Editing mode, another document, “End comparison” on the bar or the panel's way back ends the comparison.
  • The canvas needs a graph area at least 640px wide and a window at least 480px tall. Below that, the workspace and the samples page show only a notice, and editing switches back to reading. The share page shows the canvas down to a graph area 360px wide and 240px tall, so that a phone can read it. The dock shows wherever the canvas does; in a narrow window it can lie over the open document panel. A dialog that is open when the window narrows stays open, and saving it still works.

Legend

  • Application: card with a strong outline, a large name and a box glyph
  • Topic: smaller rounded card with thick top and bottom borders, broadcast glyph and platform
  • Queue: smaller card with thick side borders, slotted-bar glyph and platform
  • Data store: smaller cylinder-shaped card with a shaded lid, cylinder glyph and platform
  • External: outside this document's control, named on a spine along the right edge
  • Boundary: a translucent region named on a tab, and a band of its color on its members' left edge
  • Cluster: its name after a square of its color, under a channel's name
  • Added, when comparing: a plus on the corner and a dashed blue outline
  • Removed, when comparing: a minus on the corner, an amber outline and the name struck through
  • Changed, when comparing: a tilde on the corner
  • Validation warning: triangle glyph over a card's top-left corner or at the front of a chip; the peek and the details panel explain it
  • Flow and request: solid line with an arrowhead
  • Influence: dotted line

Where information appears

The canvas shows only what it takes to recognize an element. Resting the pointer on it shows more in the peek, and selecting it shows everything the document records in the details panel. Each level includes everything the one before it shows. The numbers on the drawings match the numbers in the lists.

Nodes

Example: Payment Gateway, an external payment processor

Canvas

Always visible on the graph.

  1. Warning A triangle on the card's top-left corner means validation warned about the node.
  2. Kind and platform The glyph at the start of the first line is the kind. With a platform, the platform takes the place of the kind's name.
  3. Name Bold, up to two lines.
  4. External With external, the word External runs down a spine along the right edge.

The id, description, tags and notes are not on the card.

Peek

Rest the pointer on the node or focus it with the keyboard, and it appears above the node, or below when there is no room above.

  1. Head What the card's first line shows, the full name and the id. The kind's name appears even with a platform, and external is a tag.
  2. Description, warnings Up to two lines of description, and the first warning with a count of the rest.
  3. Tags Up to three at the bottom, and a count of the rest.
  4. More in the panel Glyphs on the bottom-right corner tell when the panel holds notes, code snippets or links.

The peek is read-only and keeps its size whatever the zoom. Nothing is available only there.

Details panel

Click, or press Enter, to select the node: unrelated elements fade and the document panel on the right of the canvas switches to the node's details. Double-click, or press Enter again on the selected node, to open the panel.

  1. Head Titled with the name, then what the peek's first line shows, the id and the full description.
  2. Validation warnings Every warning.
  3. Relationships Outgoing and incoming. Press one to select that relationship.
  4. Notes, code snippets, links Their headings lead with the same glyphs as the peek. Links open in a new tab.
  5. Tags and metadata Everything recorded.
  6. View code At the end. It switches the panel to the node's JSON, read-only, with a button in its corner that copies it; “Back to info” at the top returns.

Empty sections are left out. The panel's “Back to the document” button, Escape on the canvas, or a click on empty canvas clears the selection.

Relationships

Example: Order Service publishing to orders.created.v1

Canvas

The line and its chip are always visible. The chip sits in the middle of the line.

  1. Relationship Starts the chip's first line. A triangle before it means validation warned about the relationship.
  2. Event count Event names first appear in the peek. Only publish, subscribe and route relationships show a count.
  3. Label On the second line, cut with an ellipsis when it does not fit.
  4. Line and arrow The arrow points the way things flow. Message, write, read and request relationships are solid; influence is dotted.

Peek

Rest the pointer on the chip or focus the connection with the keyboard, and it appears next to the chip. Resting on the line only highlights it.

  1. Head The relationship, both end names, each led by its kind glyph, the full label and the id.
  2. Description, warnings As for nodes.
  3. Events Every event, or “Events not specified” when there are none. Only publish, subscribe and route relationships have this group.
  4. Tags As for nodes.
  5. More in the panel The same glyphs as for nodes.

When there is no room around the chip, the peek stays hidden; read the details panel instead.

Details panel

Click the chip or the line, or press Enter on the focused connection, to select the relationship; the document panel switches to its details. The panel opens the same way as for nodes.

  1. Head Titled with both end names, then the label, the relationship, the id and the full description.
  2. Both ends The source and target nodes. Press one to select that node. Validation warnings, if any, come first above them.
  3. Events The full list. Only publish, subscribe and route relationships have one.
  4. Notes, code snippets, links As for nodes.
  5. Tags and metadata Everything recorded.
  6. View code As for nodes, with the relationship's JSON.

Boundaries

Example: Ordering, the boundary Order Service belongs to

Canvas

Always visible on the graph while it has at least one member.

  1. Region A translucent region around the members, under the lines and nodes. It follows the members as they move, and dragging an empty spot inside it moves around the canvas.
  2. Name tab The boundary's name in white on its color, in the region's top-left corner. Rest the pointer on the tab, click it or double-click it as you would a node.
  3. Member band A band of the boundary's color along the left edge of each member's card. A node the region covers without a band is not a member.

The color is one of six in the palette; the name on the tab says which boundary it is.

Peek

Rest the pointer on the tab or focus it with the keyboard, and it appears next to the tab. The members and their relationships are highlighted at once.

  1. Head The boundary's color, the word Boundary and how many members it has, then the name and the id.
  2. Description, warnings As for nodes.
  3. Tags As for nodes.

Details panel

Click the tab, or press Enter on it, to select the boundary: everything but its members and their neighbors fades, and the document panel switches to the boundary's details. A boundary without members is selected from the boundaries in the document's summary.

  1. Head Titled with the name, then the color with its palette name, how many members it has, the id and the full description.
  2. Members The applications and data stores in it. Press one to select that node. Validation warnings, if any, come first above them.
  3. Tags and metadata Everything recorded.
  4. View code As for nodes, with the boundary's JSON.

A member's peek and details name its boundary too, and in the panel that name selects the boundary.

Clusters

Example: kafka-orders, the cluster orders.created.v1 belongs to

Canvas

On the card of each channel in the cluster.

  1. Cluster line Under the channel's name, a square of the cluster's color and the cluster's name, cut at the card's edge when it is long.

A cluster draws no region: channels sit between applications, so a region would cut across the boundaries. The square and the name under a channel's name look different from a boundary member's band even in the same color.

Peek

Rest the pointer on a channel in the cluster or focus it with the keyboard.

  1. Cluster The channel's peek ends its head with the cluster's color and its whole name.

Nothing on the canvas is the cluster itself, so a cluster has no peek of its own.

Details panel

Select the cluster from the clusters in the document's summary, or from the “Cluster” line in a channel's details: everything but its channels and their neighbors fades, and the document panel switches to the cluster's details.

  1. Head Titled with the name, then the color with its palette name, how many channels belong to it, the id and the full description.
  2. Channels The members. Press one to select that channel. Validation warnings, if any, come first above them.
  3. Tags and metadata Everything recorded.
  4. View code As for nodes, with the cluster's JSON.

In editing mode, the pencil and the trash at the top of the panel change the cluster and delete it.

Sharing and embedding

A share link carries a whole document in its address. Whoever opens it reads the document on a view-only page and can copy it into their own workspace. The page can also sit in another site's page, such as a wiki's.

  1. Copy a share linkIn the workspace, with nothing selected, press the link button at the top of the document panel. The address of the share page goes to the clipboard with the document as it is now: edits are in, while moves made in reading mode and snapshots are not. When a link is so long that messengers may cut it off, the panel says so and suggests sending the exported file too. A document too large for a link is not copied.
  2. Read itThe share page draws the document on a read-only canvas, with the document panel and the reading dock. Moves and selections last as long as the page, and the document is not saved. The language links keep the document. When a link cannot be read, the page says why, as importing a file does. On a phone, drag an empty spot to move around, pinch to zoom and double-tap a node to open its details; the peek does not open by touch.
  3. Copy it to your workspacePress “Copy to my workspace” at the top of the share page. The document is added to your workspace in this browser as a new document and opens there; pressing it again adds another copy. In a frame the button opens a new tab, because a page inside another site's frame keeps its storage apart from the workspace you open yourself. Outside a frame, a window smaller than the workspace needs, such as a phone's, has no button, since the workspace would show only its notice there. When the copy cannot be made, the page says why.
  4. Embed itPut the share link in an iframe's src. In a frame, the wordmark and “Copy to my workspace” open in a new tab. With a sandbox attribute, the page needs allow-scripts allow-same-origin to run and allow-popups allow-popups-to-escape-sandbox to open those tabs. The canvas shows when the area under the page's bar is at least 360px wide and 240px tall.
  5. Write a link yourselfThe share page also reads the document's JSON, percent-encoded, after #json=: encodeURIComponent(JSON.stringify(doc)) makes it. JSON typed into the address bar works too, but a % that belongs to the document must be written %25. A script makes the shorter #deflate= link as the app does, by compressing the JSON with zlib and writing it in base64url; in Node, use zlib.deflateSync and toString("base64url"). Put the output of the Python example below after the share page's address. The = it may end with can stay.
<iframe
  src="https://…/share#deflate=eJy9WltvG0eW…"
  title="Payment Settlement Flow"
  width="100%"
  height="600"
  style="border: 0"
></iframe>
import base64, json, zlib

with open("document.json", encoding="utf-8") as file:
    text = json.dumps(json.load(file), ensure_ascii=False)
packed = zlib.compress(text.encode("utf-8"))
print("#deflate=" + base64.urlsafe_b64encode(packed).decode())

Anyone who has the link can read the document: it travels whole in the address, not through a server. The link does not change when you edit the document later; copy a new one to share the changes.

Writing documents with an AI

An AI model can write a document for you once it has the rules of the format. The site gives them as a specification written for models, in English, which asks the model to write names, descriptions and notes in your language.

flowbraid-format.md
The format specification for models, in Markdown: every property, the direction of each relationship, validation, changing a document, handing it over, and a complete example.
llms.txt
Where a model that reads the web starts. Every page of the site points to it.
  1. Give it the rulesA model that reads the web needs only the address of the site or of the specification. For a chat that does not, open the code modal (“Edit document code”, see editing above), press “Copy rules for AI” at its top and paste the copy with your request. The copy starts with the site's address and its share page, so that the model can make a link.
  2. Paste the JSON it returnsTo change the open document, paste the JSON over the text in its code modal and save. For a new document, or a plan to keep beside the current one, make that document first, with “New document” or with “Duplicate document” and “Planned” ticked, and paste into it. Saved as a .json file, it can be imported instead, which always adds a new document. One code fence around all of it, as an answer copied whole has, is read past. Saving checks it as it checks your own edits, with errors and warnings by line.
  3. Or open the link it givesFor a new document, a model that can run code can also give a share link, made as in “Write a link yourself” above and checked by unpacking it again. Open it to read the document on the share page, then copy it to your workspace. A model without a code tool, or one that changed a document you gave it, gives the JSON alone.

Validation checks the format, not what you asked for: a request relationship drawn the wrong way round, or a node left outside its boundary, still passes. Check the directions and the memberships before you keep the document.