Launch priceOne payment

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.

PropTypeNotes
spansrequiredTraceSpan[]—
selectedSpanIdstring | null—
defaultSelectedSpanIdstring | null—
onSpanSelect(span: TraceSpan | null) => void—
timeOriginnumberWhere the axis starts. Default: the earliest start.
nownumber"Now", for spans still running, on the same clock. Default: the latest end.
showMetadatabooleanShow metadata in the details. Default true.
onOpenSpanDetails(span: TraceSpan) => voidAdds "Open span" to the details.
maxHeightnumberHeight of the list before it scrolls. Default 360.

Dependencies

npm packages

clsxframer-motionlucide-reacttailwind-merge

Layro foundations, installed alongside it

layro-themebadgebuttonstate

Lifetime 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 components