Sequence diagramPro
One agent run as a sequence diagram – a column for you, each agent and each tool, every message an arrow between lifelines, calls solid and replies dashed, bars while a participant works, and parallel or retried messages in labelled frames.
oxyn add sequence-diagramThe preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- One agent run as a sequence diagram: a column for you, each agent and each tool, every message an arrow from one lifeline to the next.
- Shows who called whom, in what order, what ran in parallel and what had to be retried.
When not to use
- An agent asks before it acts: use Approval Card instead.
- Several open requests in one card: use Approval pager instead.
- An agent's question in its own card above the composer: use Decision Card instead.
Installation
Sequence diagram is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add sequence-diagramUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Live
The run plays out message by message – each arrow draws across with its tag, bars grow on the lifelines while participants work, the parallel and retried messages gather in labelled frames, then it loops.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Settled
The finished run: fifteen messages, one failure, every bar closed.
- ✕
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Message card
A message's card: sender to receiver, the label, Call or Reply, its frame, what went along and how long the answer took.
- ✕Vercel→CoderBuild failed
Type error in signup/form.tsx:42Sent 0:47
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Participant card
A participant's card: kind, Working or Idle, the model, what it does, and messages sent and received, tasks and busy time.
Finds where and why sign-ups fail
- Sent
- 2
- Received
- 2
- Tasks
- 1
- Busy
- 8s
- ✕
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Narrow
Under 560 px the chips drop to their marks and the time gutter narrows.
- ✕
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Classic
Classic style: a white card, pill chips and tags, tinted frames.
- ✕
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
SequenceDiagram
| Prop | Type | Default | Description |
|---|---|---|---|
participants | Option<Vec<SeqParticipant>> | Default::default() | Your own participants (the demo's when `None`). |
messages | Option<Vec<SeqMessage>> | Default::default() | Your own messages, in order. |
title | String | "Fix the failing sign-up" | The header's name. |
at | Option<u64> | Default::default() | Freeze the demo at this many ms into a pass. |
running | bool | true | Still running: open bars shimmer and working marks twinkle. |
open | String | Default::default() | A message open at the start (id). |
open_participant | String | Default::default() | A participant open at the start (id). |
nowrequired | ClockMs | — | The clock. |
style | String | Default::default() | `clean`, `classic`, or empty to follow `data-cstyle`. |
on_select | EventHandler<Option<String>> | — | A message selected (its id), or `None` when its card closes. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | To the participant chips, then into the message list |
| EnterorSpace | Opens the focused participant's or message's card |
| Escape | Closes the open card |
Accessibility
- Messages are an ordered list; each is named "Sender to Receiver: text, status, m:ss" and says it opens a dialog.
- Participants are buttons; cards are dialogs with a close button you can reach by Tab.
- Colour never carries meaning alone: replies are dashed, failures say so and carry a cross, frames are labelled.
Responsive behaviour
- 800 px up to its container; the columns share the width.
- Under 560 px the chips show only their marks and the time gutter and times shrink.
Edge cases (spec)
Under 560 px the chips show only their marks, the gutter narrows to 36 px and times shrink to 10 px; tags may take 40 % of the width before they ellipsize.
Notes for AI
- Import
SequenceDiagramfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
SequenceDiagramElinoxyn_gpui. - Props to set first:
now. - It reads a clock (
now) for live timers; pass one clock for the whole page rather than one per component. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.