Skip to content
Sign in
ObservabilityCheckpoint travelMenu

Checkpoint travelPro

Time travel over saved graph checkpoints, fork from any checkpoint.

ProA run and a fork that tried a goodwill refund.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/checkpoint-travel

Usage

tsx
import { CheckpointTravel } from "@/components/ui/chatcn/pro/checkpoint-travel"

<CheckpointTravel checkpoints={checkpoints} onFork={fork} onReplay={replay} />

One lane per branch, forks drawn from the checkpoint they came from. Each checkpoint shows what its node changed against the one before, then the full state.

Examples

States

ProA fork that fails, and no checkpoints yet.

Props

PropTypeNotes
checkpoints{ id, node, at, state, parentId?, branch? }[]Oldest first
value, defaultValue, onValueChangestringSelected checkpoint
onFork(id) => Promise<void>Reject with a message to show it
onReplay(id) => voidRun again

Accessibility

  • Arrow keys move along a lane and between lanes; Home and End jump to its ends.
  • Changes carry Added, Removed or Changed as text.