Flowcharts
What it is
One thing running start to finish, with branches along the way. The most used kind.
When to use it
Business processes, decision branches, the few hops of a request path.
How to write it
Pamphlet's own syntax — declarations first, relationships second; all seventeen kinds share this skeleton:
This syntax does not render on GitHub. If you need it to, write the same diagram as a Mermaid fence instead.
What comes out
Drawn to SVG at compile time and inlined into the output, so the reader downloads no drawing library and makes no network request. Colours follow the theme; scroll to zoom, drag to pan, double-click to reset.
Traps
- The block names are fixed:
nodes:andedges:. Missing one reportsDIAG-305 - There are six shapes:
box/round/stadium/diamond/cylinder/circle. Anything else reportsDIAG-307and lists the ones that work - A name in
edges:thatnodes:never declared reportsDIAG-306— a typo in a name is the most common mistake {dir=...}acceptsLR/RL/TD/TB/BTonly; the default isTD