Trace Waterfall
Spans nested under the span that started them, each a bar on a shared clock, so parallel calls sit side by side and the slow one stands out. The chain that finished last is marked as the slowest path, running spans grow to now, failures carry a cross and a word, and Zoom to span fits the axis to one part of the run.
Ready for AI tools one file typed props installs by name prompt included
The decision inside it
Only the slowest path makes a run slow
Shortening a call off the slowest path does not make the run finish sooner, so that chain is drawn darkest and labelled. Everything else is grey.
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 Trace Waterfall for this.
Install it: npx shadcn@latest add @layro/trace-waterfall
Import it from @/components/ui/trace-waterfall.
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 |
|---|---|---|
spansrequired | TraceSpan[] | — |
selectedSpanId | string | null | — |
defaultSelectedSpanId | string | null | — |
onSpanSelect | (span: TraceSpan | null) => void | — |
timeOrigin | number | Where the axis starts. Default: the earliest start. |
now | number | "Now", for spans still running, on the same clock. Default: the latest end. |
showMetadata | boolean | Show metadata in the details. Default true. |
onOpenSpanDetails | (span: TraceSpan) => void | Adds "Open span" to the details. |
maxHeight | number | Height of the list before it scrolls. Default 360. |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLayro foundations, installed alongside it
layro-themebadgebuttonstateLifetime 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 AI Agent
All AI Agent componentsRun Replay
PaidStep through a recorded run: input, output and state at every event.
Included with lifetime access
Agent Permissions
PaidWhat an agent asked for, what it is allowed, and the change before you save.
Included with lifetime access
Dry-Run Preview
PaidEverything an agent would change, field by field, before any of it happens.
Included with lifetime access
Agent Workspace
BlockPaidA whole agent screen: task in, plan, tool calls, approval and a summary out.
Included with lifetime access
Agent Run Status
PaidThe top of a run: state, current step, a live clock, and Pause and Stop.
Included with lifetime access
Task Plan
PaidThe agent's plan as steps that tick off live, with the risky one flagged ahead.
Included with lifetime access