Data Lineage
Sources, documents, chunks, steps and outputs laid out left to right as data moved through them. Stale, missing and failed nodes carry their own mark, and everything built on them is counted. Trace everything upstream of an answer or downstream of a source, read each relation in words, or switch to a list.
Ready for AI tools one file typed props installs by name prompt included
The decision inside it
Staleness travels
A stale page makes every chunk and answer built on it suspect, so the reach of each stale or missing source is worked out and shown, not just the source itself.
Installation
How you get it
Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.
Use Layro's Data Lineage for this.
Install it: npx shadcn@latest add @layro/data-lineage
Import it from @/components/ui/data-lineage.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Pro components install through the @layro registry with your CLI token: see the Namespaced tab.
API
“Copy prompt” above puts a full brief on your clipboard — install command, dependencies, props, and the mistakes an assistant usually makes with this component.
Props
Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.
| Prop | Type | Notes |
|---|---|---|
nodesrequired | LineageNode[] | — |
edgesrequired | LineageEdge[] | — |
selectedNodeId | string | null | — |
defaultSelectedNodeId | string | null | — |
onNodeSelect | (node: LineageNode | null) => void | — |
onOpenResource | (node: LineageNode) => void | Adds "Open" to the details. |
onTraceUpstream | (node: LineageNode) => void | — |
onTraceDownstream | (node: LineageNode) => void | — |
layout | "graph" | "list" | `graph` or `list`. |
height | number | Height of the canvas. Default 360. |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLayro foundations, installed alongside it
layro-themebadgebuttonsegmented-controlstateLifetime access
Every component, and everything we ship next.
- All 112 components, source included
- The template, and everything released after you buy
- shadcn CLI or download — React 18/19, Tailwind v4
- One payment. No subscription.
More in RAG & Evals
All RAG & Evals componentsRetrieval Inspector
PaidWhat the retriever found for a question, and which chunks reached the model.
Included with lifetime access
Citation Verification
PaidEach claim in an answer beside the evidence, with a verdict a person can set.
Included with lifetime access
Ingestion Pipeline
PaidFiles going into a knowledge base, each with its own chain of steps.
Included with lifetime access
Prompt Test Matrix
PaidA prompt against its test cases: expected, actual, and what regressed.
Included with lifetime access
Model Comparison
PaidOne prompt, several models, answers side by side with time, tokens and cost.
Included with lifetime access
Context Window
FreeWhat filled a model's context, part by part, and what was cut.