Data flow Pro
Get Pro at $9
One payment, every Pro piece. $10 tomorrow.
Install
npx shadcn@latest add @mu-pro/data-flowPro. Installs with your licence key through the @mu-pro registry; the key comes with Pro. Lands in components/mu/data-flow/ with the shared foundation.
Usage
import { Background, ReactFlow } from "@xyflow/react";
import { DataFlow, DataNode, DataWire, RunKey, useDataRun } from "@/components/mu/data-flow/DataFlow";
const nodeTypes = { step: DataNode };
const edgeTypes = { data: DataWire };
const run = useDataRun(nodes, edges, runStep);
<DataFlow run={run.status}>
<RunKey status={run.status} onRun={run.run} />
<ReactFlow nodes={run.nodes} edges={run.edges} nodeTypes={nodeTypes} edgeTypes={edgeTypes} fitView>
<Background color="var(--data-flow-dot)" gap={22} size={1.6} />
</ReactFlow>
</DataFlow>Source
How it works
Building with an agent? Hand it a ready prompt for this piece.
Input and reduced motion
- Pointer / touch: press "Run"; pick a parameter in its row (a native menu); press "Re-run from here" on a failed or changed step. Drag nodes and pan the board with the canvas's own gestures. Sockets take a 44px touch target on touch screens.
- Keyboard: "Run", each parameter row (a native select: arrows or type-ahead) and each re-run key are stops with a ring. Moving nodes by keyboard is the canvas's own (
nodesFocusable). - Reduced motion: no comet travels and nothing waits for one: wires light, a stall shows red and statuses land at once. The lamp does not breathe (its colour and "Running" say it) and the bars stand at their values without rising.
Props
| Prop | Default | What it does |
|---|---|---|
theme | "dark" | "dark" "card" | the skin: dark panels lit from above, or black cards with typed sockets and coloured wires |
accent | off | boolean | tints the done light toward your --mu-signal |
run | — | idle running done failed | the run as a whole, written to data-run for your CSS |
className | — | — | added to the root |
Sound
None. It loads in silence.
None: a run is not the person's gesture, and a pipeline editor is a working tool.
Licence
Included with Pro: use it in unlimited end products for you and your clients; no reselling as a kit. See the licence.
A dark pipeline editor: when a step finishes, a comet carries its row count along the wire to the next, and a failed step stalls it red.
For data pipelines and ETL editorsMore in AI & agents