Effect workflow UI
A read-only viewer for Effect cluster and Effect workflow runs. Point it at the SQL storage your cluster already writes, and it shows what needs attention, every run, and each run's steps: retries with their errors, durable sleeps, signals and compensations. It comes two ways: a Docker image you run beside your app, and the libraries it is built from, to embed in your own admin screens.
Early. Read-only: it never writes to your cluster. Postgres and SQLite.
Live demo
This is the real viewer, built as static files, replaying a recording of the sample shop app in this repo. The replay is set 20 minutes after the recording stopped, so it shows what you would see after a process died: two failed runs, a durable sleep that never fired because nothing was left to fire it, and a refund stuck waiting on an approval that never came.
Open the demo on its own page, which also works on a phone.
A second recording is a real cluster of three runners on Postgres, recorded a minute after one of them was killed with SIGKILL: open it on the cluster page. Storage still marked the dead runner healthy; the viewer calls it silent because its heartbeat stopped, and shows its four shards now split between the other two.
What it shows
Needs attention comes first: failed runs with their error, runs that are overdue (a durable sleep or a message that should have been handled and was not), runs that look stuck (suspended with nothing scheduled for longer than 15 minutes, or an activity running that long), and runs that are simply waiting, each with the reason in one line.
Runs lists every run, newest first, with search over ids, inputs and errors, and filters by status and workflow.

A run shows its input and result, its error with the cause, a timeline of every step, and the numbered history. Activities show each attempt; durable sleeps show when they wake; signals show when they arrived; a step that ran after a failure is marked as compensation. When you give the viewer your workflow definitions, inputs, results and errors are decoded with their own Schemas, and a stored payload that no longer decodes is flagged.


Cluster shows each entity type's mailbox: how many messages, how many are unprocessed, how many are past due and unread, and what is due next. A past-due message nobody reads is how a stalled storage loop shows itself, so it is flagged at the top. For clusters with several runners it lists each runner as live, silent (no heartbeat for 45 seconds, which is about four missed beats) or marked unhealthy, the shards it holds, and any shard with messages that no runner holds. Shard ownership comes from the shard locks table, which Effect only writes when Postgres advisory locks are off; with them on (the default) the page says ownership is not in storage.



Who it is for
Teams running Effect cluster and Effect workflow in production. Effect has no listing API for workflow runs: WorkflowEngine can poll one execution you already know the id of, and that is all. When a run stops moving today, people find out by querying cluster_messages by hand and reading processed and last_read. This puts the same facts on a page, for the person on call and for anyone who supports the people whose work runs through those workflows.
Run it with Docker
The image is a single compiled server plus the viewer's files. Give it a connection string to your cluster's database and open port 4317. It runs for linux/amd64 and linux/arm64.
docker run --rm -p 4317:4317 \
-e CLUSTER_DATABASE_URL=postgres://viewer:password@db.internal:5432/app \
ghcr.io/seethruhead/effect-workflow-ui:latest
# then open http://localhost:4317On Postgres every read runs inside a READ ONLY transaction. You can also give it a role that can only select the two tables it reads:
CREATE ROLE viewer LOGIN PASSWORD 'password';
GRANT SELECT ON cluster_messages, cluster_replies, cluster_runners, cluster_locks TO viewer;For SQLite, mount the directory that holds the database. It is opened read-only, but SQLite in WAL mode needs to see the database's -wal and -shm files beside it, so mount the directory rather than the single file, and not as a read-only mount.
docker run --rm -p 4317:4317 -v "$PWD/data:/data" \
-e CLUSTER_DATABASE_URL=sqlite:/data/cluster.db \
ghcr.io/seethruhead/effect-workflow-ui:latestCLUSTER_RECENT_HOURS (default 168, a week) keeps reads small on a big cluster: the viewer reads the runs that started in that window and every run that has not finished, however old; 0 reads everything. CLUSTER_TABLE_PREFIX sets the table prefix if your cluster uses one other than cluster; PORT and HOST set where it listens.
Effect stores the trace and span id of every message. Set VIEWER_TRACE_URL to your tracing tool's URL with {traceId} (and, if it takes one, {spanId}) where the ids go, and each run page links to its trace, and to the selected step's span.
Alerts
The same rules that fill the needs-attention page can alert you, still without writing anything. The server serves Prometheus metrics at /metrics: runs by status, runs needing attention by concern, unprocessed and past-due messages per entity type, how long the oldest past-due message has waited, runners by state and shards nobody holds. Point an alert rule at effect_workflow_attention{concern="stuck"} or effect_workflow_oldest_overdue_seconds.
Or set ALERT_WEBHOOK_URL and it checks every ALERT_EVERY (a minute by default) and POSTs one JSON body per run that has newly failed, gone overdue or got stuck: { concern, workflow, runId, why, since }. A run is sent once while its problem lasts, and again only if the problem clears and comes back. What has been sent is kept in memory, so a restart sends the current problems once more.
Use it as a library
@effect-workflow/reader reads the storage and folds it into runs. executions and attention are pure functions over the rows, so you can call them anywhere: an admin page, a CLI, an alert. Pass your workflow definitions to decode payloads with their Schemas.
import { attention, executions } from "@effect-workflow/reader"
import { ClusterRepo } from "@effect-workflow/reader/repo"
import { Clock, Config, Effect, Layer } from "effect"
import { PlaceOrder, ApproveRefund } from "./workflows.ts"
const needsAttention = Effect.gen(function* () {
const repo = yield* ClusterRepo
const storage = yield* repo.storage
const now = yield* Clock.currentTimeMillis
const runs = executions(storage, { workflows: [PlaceOrder, ApproveRefund] })
return attention(runs, storage, now)
})
const cluster = Layer.unwrap(
Effect.map(Config.Redacted("DATABASE_URL"), (url) => ClusterRepo.fromUrl(url))
)
export const program = needsAttention.pipe(Effect.provide(cluster))@effect-workflow/ui is the component kit the viewer is made of: run list, run header, timeline, attempts, failure panels and history. It is built with Foldkit and styled with StyleX, and ships its TypeScript source for your bundler to compile.
import { History, RunHeader, Timeline } from "@effect-workflow/ui"
import type { Execution } from "@effect-workflow/ui"
import type { HtmlBuilder } from "foldkit/html"
export const RunPage = <M>(h: HtmlBuilder<M>, run: Execution, now: number, on: Handlers<M>) =>
h.div([], [
RunHeader(h, { run, now, actions: [] }),
Timeline(h, { groups: run.groups, range: { start: run.startedAt, end: run.endedAt ?? now },
now, selected: on.selected, newestFirst: false, onSelect: on.select, onToggleOrder: on.order }),
History(h, { run, now, view: "events", newestFirst: false, open: null,
onView: on.view, onToggleOrder: on.order, onOpen: on.open })
])The packages are not on npm yet; the release is waiting on the maintainer. Until then, clone the repo and use them from its workspace.
How it reads your cluster
Effect cluster keeps everything a workflow does as messages. A workflow is an entity named Workflow/<name> whose id is the execution id; its run message holds the input; each activity attempt is an activity message; durable sleeps are messages to Workflow/-/DurableClock with a delivery time; signals are deferred messages; and results and errors are replies. Message and reply ids are snowflakes, so each carries the time it was written. The viewer runs two selects over cluster_messages and cluster_replies and works the rest out in the browser.
What storage cannot tell it, it does not pretend to know:
- Which signal a run is waiting on. Storage names a signal only once it arrives.
- Which step undoes which. A step that started after another step failed is shown as a compensation, but not what it compensates.
- The input of an activity. Storage keeps its name and attempt number, and its result.
Status
Early, and changing. It has the needs-attention page, the run list, the run page with links to traces and spans, the cluster page with mailboxes, runners and shards, Prometheus metrics and webhook alerts, and it reads only recent runs plus every run still going. It stays read-only: actions such as interrupting or resuming a run belong in your app, not in a viewer.