PRO

Rivet Durable Workflow Actor

A Rivet actor whose run handler is a durable, replayable workflow, written against the rivetkit 2.3.x split context. Covers the 2.3.1 breaking change that moved actor state, vars, db, client and broadcast off the workflow context onto the step context, plus the 2.3.3 getVersion primitive for shipping new workflow code without corrupting in-flight replay histories. Shows persisted steps, tryStep with retry and rollback config, a durable queue-driven loop with Loop.break and Loop.continue, a durable sleep that survives process death, and typed event and queue tokens that need no runtime schema library.

Install
npx shadcn@latest add https://ui.aryank.space/r/rivet-durable-workflow-actor.json

Installs from ui.aryank.space. To add it by hand, copy the files in Files below, or register the @compronents namespace via the docs.

Visualization
run handler
WorkflowContext
FINALIZERS
const version = await ctx.getVersion("carrier-handoff", 2)

A Rivet actor's run handler is a durable, replayable workflow; getVersion gates new code so an in-flight run replays against the version it started on instead of corrupting its journal.

Files

Dependencies