Flow node types
Every type a flow node can take, with its shape, default tone and icon, the technology marks a node can carry, and the mark of a planned change.
TL;DR
| Question | Answer |
|---|---|
| How is a node written? | node <id> <type> "Label", with optional sub=, tone=, icon=, stack=, change=, part=, and note= options. |
| How many types are there? | 16: person, agent, client, service, gateway, function, database, cache, queue, storage, identity, secret, external, step, decision, terminal. |
| Which types can be a sequence actor? | person, agent, client, service, gateway, function, database, cache, queue, storage, identity, secret, external, step. |
| How do I show a technology? | stack= carries up to 3 marks, such as stack=simple:angular,simple:typescript. |
| How do I show what a change does? | change= takes create, update, replace, destroy: a badge on the card and an outline in the change's tone. |
| How do I say what a box is for? | note="Owned by the payments team" draws a short note beside the diagram, with a brace that spans the box. |
| How do I link a box to its detail? | part=2 says the box is drawn in full in part 2 of the same series, so the portal can open that part beside it. |
Node types
A flow node is written node <id> <type> "Label", with optional sub=, tone=, icon=, stack=, change=, part=, and note= options. A type sets the default tone, icon, and look. A step has no icon, so it has no chip for its tone to colour, and a tone written on it tints the card the way a decision is tinted. A sequence actor may use any type marked yes in the last column.
| Type | Shape | Default tone | Default icon | Outline | Fill | Actor |
|---|---|---|---|---|---|---|
person | card | neutral | lucide:user | solid | plain | yes |
agent | card | violet | lucide:bot | solid | plain | yes |
client | card | neutral | lucide:monitor-smartphone | solid | plain | yes |
service | card | blue | lucide:server | solid | plain | yes |
gateway | card | blue | lucide:network | solid | plain | yes |
function | card | blue | lucide:zap | solid | plain | yes |
database | card | aqua | lucide:database | solid | plain | yes |
cache | card | orange | lucide:database-zap | solid | plain | yes |
queue | card | orange | lucide:layers | solid | plain | yes |
storage | card | aqua | lucide:hard-drive | solid | plain | yes |
identity | card | violet | lucide:id-card | solid | plain | yes |
secret | card | red | lucide:lock-keyhole | solid | plain | yes |
external | card | neutral | lucide:cloud | dashed | plain | yes |
step | card | neutral | none | solid | plain | yes |
decision | card | amber | lucide:split | solid | tinted | no |
terminal | pill | neutral | none | solid | plain | no |
Technology marks
stack= puts small technology marks on a card, under its text: node app storage "Web app" stack=simple:angular,simple:typescript. Each mark is an icon reference, usually from the simple set, checked like icon=. A card carries the number of marks in the limits table, each listed once and drawn in the order written. A mark is never drawn over the text or the icon, because the card grows to hold the row, and the text description lists the marks. A terminal pill has no room for marks and reports an error.
Planned changes
A review of infrastructure needs to see at a glance what a change makes, alters, and removes. change= marks a node with a round badge on its top edge and outlines the card in the change's tone: node db database "orders-db" icon=aws:rds change=update. The mark works on every card, an icon from a vendor set too, and on a pill. The badge sits in the card's top padding, so it never covers the text or the icon, and the text description names the change. The terraform-plan import sets it on every resource the plan changes.
| Value | Sign | Tone | Means the thing is |
|---|---|---|---|
create | + | green | made by the change |
update | ~ | amber | changed in place |
replace | ± | orange | destroyed and made again |
destroy | − | red | destroyed by the change |
Notes beside the diagram
A box or a group can carry a short note, a line of context a reader takes in at a glance: group harp "Abstraction layer" note="Owned by foundational product teams" {. By default the note sits against its box or group, with a curly brace that spans it from top to bottom, on whichever side has clear room: no other box, line, arrow, label or frame edge in the way. A note with no such room, and every note when the header says notes=column, goes in a column down the outer edge of the diagram instead, lined up with the other notes on that side, with a dotted leader to its box only where the way there crosses nothing. Notes are kept apart, a long one wraps to four lines, and the picture grows to hold them while every box and line keeps its place. The text description lists each note. Use it for what a box is for or who owns it, and keep sub= for a detail that belongs inside the box.
Drill-down to a part
A system too big for one picture is published as a series: an overview, then a part for each piece. part= on an overview box names the part that draws that box in full: node web service "Web tier" sub="12 resources, part 2" part=2. It takes the part's place in the series, a whole number from 1 (the overview is 1, the combined whole is 0). It changes nothing in the picture. The portal reads it to open that part beside the box, with a line from the box to it, and the text description says where the detail is. A split import writes it on every overview box, so write it yourself when you split a diagram by hand.
See also
| Doc | Why |
|---|---|
| Language reference | Every page of the reference and what each covers |
| Groups and overlays | Frames around nodes |
| Icon sets | Where an icon= value comes from |
| Icon reference | Every bundled icon and how to find one |