A time axis of agent spans for spotting run waits
Press the track to replay from there · Tab walks the spans
pnpm dlx shadcn@latest add @notchset-pro/span-timelineA run's agents on a time axis, drawn in full, the wait on you its figure.
Every shadcn style · one file
Import it and pass your content. The props that matter most are listed next.
"use client";
import { SpanTimeline, type SpanTimelineHandoff, type SpanTimelineLane, type SpanTimelineSpan } from "@/components/ui/notchset/span-timeline";
/*
* One run, four lanes: the Assistant plans, the Researcher searches and reads, the Writer drafts, the run waits 0:42 on
* Ana for the tone, then the Writer polishes and the Assistant posts. On view the play-head sweeps the run once in 3 s,
* each span growing in behind it, the working orb pulsing, the wait counting up in amber; then it rests drawn. Hover or
* focus a span for its note (a press pins it); press the track to replay from there; Enter on the axis replays it all.
*/
const LANES: SpanTimelineLane[] = [
{ id: "assistant", actor: { kind: "agent", name: "Assistant" } },
{ id: "researcher", actor: { kind: "subagent", name: "Researcher", for: "Assistant" } },
{ id: "writer", actor: { kind: "subagent", name: "Writer", for: "Assistant" } },
{ id: "you", actor: { kind: "person", name: "Ana Ruiz", src: "https://notchset.dev/media/people/person-01.webp" } },
];
const WORDS = { title: "Write the launch post", plan: "Planned it", search: "Searched 8 sources", read: "Read 3 pages", draft: "Drafted the post", wait: "Your OK on the tone", polish: "Polished it", post: "Posted to #launch" };
const HANDOFFS: SpanTimelineHandoff[] = [
{ from: "plan", to: "search" },
{ from: "read", to: "draft" },
{ from: "draft", to: "wait" },
{ from: "wait", to: "polish" },
{ from: "polish", to: "post" },
];
export default function SpanTimelineDemo() {
const w = WORDS;
const spans: SpanTimelineSpan[] = [
{ id: "plan", lane: "assistant", kind: "thinking", start: 0, end: 10, label: w.plan, detail: "4 steps" },
{ id: "search", lane: "researcher", kind: "tool", start: 10, end: 34, label: w.search, detail: "web search" },
{ id: "read", lane: "researcher", kind: "thinking", start: 34, end: 48, label: w.read },
{ id: "draft", lane: "writer", kind: "tool", start: 48, end: 62, label: w.draft, detail: "3 paragraphs" },
{ id: "wait", lane: "you", kind: "waiting", start: 62, end: 104, label: w.wait },
{ id: "polish", lane: "writer", kind: "thinking", start: 104, end: 118, label: w.polish },
{ id: "post", lane: "assistant", kind: "tool", start: 118, end: 130, label: w.post, detail: "Slack" },
];
return (
<div className="w-[var(--ns-width-xl)] max-w-full">
<SpanTimeline title={w.title} lanes={LANES} spans={spans} handoffs={HANDOFFS} length={130} replay sweep={3000} />
</div>
);
}"use client";
import { SpanTimeline, type SpanTimelineHandoff, type SpanTimelineLane, type SpanTimelineSpan } from "@/components/ui/notchset/span-timeline";
/*
* One run, four lanes: the Assistant plans, the Researcher searches and reads, the Writer drafts, the run waits 0:42 on
* Ana for the tone, then the Writer polishes and the Assistant posts. On view the play-head sweeps the run once in 3 s,
* each span growing in behind it, the working orb pulsing, the wait counting up in amber; then it rests drawn. Hover or
* focus a span for its note (a press pins it); press the track to replay from there; Enter on the axis replays it all.
*/
const LANES: SpanTimelineLane[] = [
{ id: "assistant", actor: { kind: "agent", name: "Assistant" } },
{ id: "researcher", actor: { kind: "subagent", name: "Researcher", for: "Assistant" } },
{ id: "writer", actor: { kind: "subagent", name: "Writer", for: "Assistant" } },
{ id: "you", actor: { kind: "person", name: "Ana Ruiz", src: "https://notchset.dev/media/people/person-01.webp" } },
];
const WORDS = { title: "Write the launch post", plan: "Planned it", search: "Searched 8 sources", read: "Read 3 pages", draft: "Drafted the post", wait: "Your OK on the tone", polish: "Polished it", post: "Posted to #launch" };
const HANDOFFS: SpanTimelineHandoff[] = [
{ from: "plan", to: "search" },
{ from: "read", to: "draft" },
{ from: "draft", to: "wait" },
{ from: "wait", to: "polish" },
{ from: "polish", to: "post" },
];
export default function SpanTimelineDemo() {
const w = WORDS;
const spans: SpanTimelineSpan[] = [
{ id: "plan", lane: "assistant", kind: "thinking", start: 0, end: 10, label: w.plan, detail: "4 steps" },
{ id: "search", lane: "researcher", kind: "tool", start: 10, end: 34, label: w.search, detail: "web search" },
{ id: "read", lane: "researcher", kind: "thinking", start: 34, end: 48, label: w.read },
{ id: "draft", lane: "writer", kind: "tool", start: 48, end: 62, label: w.draft, detail: "3 paragraphs" },
{ id: "wait", lane: "you", kind: "waiting", start: 62, end: 104, label: w.wait },
{ id: "polish", lane: "writer", kind: "thinking", start: 104, end: 118, label: w.polish },
{ id: "post", lane: "assistant", kind: "tool", start: 118, end: 130, label: w.post, detail: "Slack" },
];
return (
<div className="w-[var(--ns-width-xl)] max-w-full">
<SpanTimeline title={w.title} lanes={LANES} spans={spans} handoffs={HANDOFFS} length={130} replay sweep={3000} />
</div>
);
}components/ui/notchset/span-timeline.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
LevelOrganism: made of molecules or blocks.
Made ofActor tag,Rolling clock
Needs your registry key. Every components.json style gets the same files.
Works with React 18.3 or 19 on Tailwind CSS v4, in any shadcn project. What's tested
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
The sound you hear is this page's: the piece you install plays none, and calls onFeedback on each move so you can add your own.
onFeedback–
(e: FeedbackEvent) => voidcalled once per move, for your sound or haptics
title–
stringthe run's name: "Research: churn in the first week"
lanes–
readonly SpanTimelineLane[]Required.
spans–
readonly SpanTimelineSpan[]Required.
handoffs[]
readonly SpanTimelineHandoff[]length–
numberthe axis, in seconds: the run's length, or how far a live run is planned to go; a live run past it extends it
now–
numbera live run: seconds since it started, as the host last knew it; between updates the edge follows the wall clock
ask–
React.ReactNodewhat the open wait asks of you and its answer ("The Writer waits on your OK", Approve); shown once the wait is drawn
replayfalse
booleanplay once from zero the first time it is seen; without it the run rests drawn at its edge
sweep–
numbera replay of the whole run takes this many ms (a replay from a press, its share); without it a replay runs on the wall clock
labels–
Partial<SpanTimelineLabels>its words, over the English defaults
Three usesa run's replay in a background-agents page · an agent console's trace · a build or pipeline's stages
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)One payment, lifetime.
v2.0.0 · 2026-10-13
Released with the Notchset system.