Data flow diagram
An animated diagram of data moving between services.
SourcesIngestProcessStoreUse
- Web app to Event queue, active
- Mobile apps to Event queue, active
- Devices to Event queue, active
- Event queue to Clean and enrich, active
- Event queue to Aggregate, active
- Clean and enrich to Data lake, active
- Clean and enrich to Warehouse, active
- Aggregate to Warehouse, active
- Warehouse to Dashboards, active
Choose a node to read its numbers.
When to use
- Explaining an architecture to customers or teammates.
- Showing which hop is slow.
When not to use
- The diagram must be edited by the user.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/data-flow-diagram
Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
DataFlowDiagram
5 props
PropTypeDefaultDescription
label *string—
stages *readonly DataStage[]—
links *readonly (readonly [string, string, (1 | 2 | 3 | undefined)?])[]—Pairs of node ids, with how busy the link is.
describe((id: string) => ReactNode)—Text for the selected node.
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes status semantics. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/data-flow-diagram.mdThe index of every part is at /llms.txt.