Data-flow diagrams
What it is
Where data comes from, which steps transform it, where it is stored, and who finally gets it.
When to use it
A data pipeline, the handling of one request.
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:andflows:— note it isflows:here, not the flowchart'sedges: - The six shapes are shared with flowcharts:
boxfor external actors,roundfor processes,cylinderfor stores - Edge labels are the data flowing (
plan.md,AST), not the action - Without
{dir=...}the default isLR, unlike the flowchart'sTD