npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@effect-temporal/workflow

v0.1.9

Published

Temporal-backed workflow integration for Effect workflows

Readme

@effect-temporal/workflow

Run Effect workflows (effect/unstable/workflow) on Temporal: a WorkflowEngine implementation, the deterministic sandbox runtime, and the primitives for entity workflows, typed activities, versioning, and Nexus.

See the repository README for the full quick start. sample/order-saga is a complete, type-checked sample (definitions / bundle / worker / client) covering a saga, a long-lived entity, and a Nexus service; the e2e suite in test/ exercises every feature against a real Temporal test server and doubles as a second usage reference.

Modules

| Module | Side | What it does | | ------------------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------ | | TemporalWorkflowEngine | client | The Effect WorkflowEngine over Temporal: start (idempotent, REJECT_DUPLICATE), poll, interrupt, resume | | TemporalWorkflowRuntime | sandbox | makeWorkflow / makeActivities; the run loop, protocol handlers, and the TemporalSandboxRun service | | TemporalWorkflowWire | shared | Schema-derived JSON codecs for payloads, results, and deferred exits; the EffectWorkflowExit failure format | | TemporalWorkflowProtocol | shared | Reserved __effect_workflow_* query/signal names and payload shapes | | TemporalSandbox / ...Polyfills | sandbox | Microtask fiber scheduler and sandbox polyfills (SHA-256, getRandomValues, TextEncoder, pinned performance) | | TemporalTypedActivity | shared/worker | Activities with explicit payload/success/error schemas and per-activity options; call + handle/implement | | TemporalStateCell | shared | Queryable published workflow state (set in the body; read via TemporalWorkflowInteractions.readStateCell) | | TemporalDurableMailbox | shared | Typed inbound message channels: take/poll in the body, workflow-to-workflow offer | | TemporalDurableUpdate | shared | Typed request/response updates with a schema'd failure channel | | TemporalContinueAsNew | sandbox | Continue the workflow as a new run with a schema-encoded payload | | TemporalVersioning | sandbox | patched/deprecatePatch as Effects and the match version-chain combinator | | TemporalNexusOperation | shared | Schema-typed Nexus operation definitions and the workflow-side call | | TemporalNexusService | worker | workflowRunOperation: back a Nexus operation with an Effect workflow (nexusServices handler) | | TemporalWorkflowInteractions | client | Client-side entity interactions: readStateCell, offerMailbox, executeUpdate | | TemporalWorker | worker | Effect service/Layer for the Temporal worker lifecycle | | TemporalLint | tooling | ESLint plugin (flat config) enforcing workflow-sandbox safety, with a recommended preset | | TemporalClient / TemporalConnection | client | Re-exports from @effect-temporal/client for convenience |

Authoring model

Definitions (workflows, typed activities, mailboxes, updates, state cells, Nexus operations) are plain schema'd values in sandbox-safe modules, shared by the workflow bundle, the worker, and every client — the sides cannot drift. The bundle exports Temporal workflow functions via TemporalWorkflowRuntime.makeWorkflow; the worker registers activity implementations (TemporalTypedActivity.implement, or TemporalWorkflowRuntime.makeActivities for Activity.make definitions) and optional nexusServices; clients provide TemporalWorkflowEngine.layer and call workflow.execute / poll / interrupt like with any other Effect engine.

When the client engine uses workflowIdPrefix, pass the same prefix to TemporalWorkflowRuntime.makeWorkflow for workflow bodies that start children. New children use the same prefix/executionId (or workflowTag/executionId) address as client interactions. Histories predating the child-ID patch marker retain their original unprefixed child IDs during replay.

Everything crossing a Temporal boundary is schema-encoded JSON, and typed failures round-trip: a workflow or activity failing with its schema'd error lands in the reading side's Effect error channel as a real class instance, while the run shows as failed in the Temporal UI.

Determinism

Bodies run on a microtask-based fiber scheduler (fiber yields never create Temporal timers), sandbox polyfills are installed automatically, and per-run state (activity/child results, mailbox and update logs) is replayed deterministically across resumed passes. Application code must still follow Temporal's determinism rules — apply the TemporalLint recommended preset to workflow bundle files to enforce them, and never reuse the reserved __effect_workflow_* query/signal names.

Testing

Use @effect-temporal/testing: makeWorkflowTestHarness boots a test server, worker, and engine in one scoped call for integration tests, and makeStubTemporalClient records client interactions for serverless unit tests.