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

@voyant-travel/workflows-orchestrator

v0.118.0

Published

Postgres self-host orchestrator runtime for Voyant Workflows — drives runs through the tenant step handler over the v1 wire protocol.

Downloads

10,046

Readme

@voyant-travel/workflows-orchestrator

Postgres self-host orchestrator runtime for Voyant Workflows. Drives runs through the tenant step handler over the v1 wire protocol. The package includes the core state machine, in-memory test store, Postgres-backed production stores, scheduler/wakeup support, and the self-host server helpers.

See docs/runtime-protocol.md §2 + §5 for the contract this implements.

import {
  trigger,
  resume,
  cancel,
  createInMemoryRunStore,
  type StepHandler,
} from "@voyant-travel/workflows-orchestrator";
import { handleStepRequest } from "@voyant-travel/workflows/handler";

// A StepHandler calls into the tenant's workflow code. In-process
// here via `handleStepRequest`; production self-host deployments normally
// use the Postgres-backed driver below.
const handler: StepHandler = async (req) => handleStepRequest(req);

const store = createInMemoryRunStore();

const record = await trigger(
  {
    workflowId: "send-reminder",
    workflowVersion: "1a2b3c4d",
    input: { bookingId: "bkg_42" },
    tenantMeta: {
      tenantId: "tnt_x",
      projectId: "prj_x",
      organizationId: "org_x",
    },
  },
  { store, handler },
);
// record.status is "completed" | "failed" | "waiting" | "cancelled" | …

Surface

  • trigger(args, deps) — create a RunRecord, drive it to terminal or parked, persist.
  • resume(args, deps) — inject a waitpoint resolution (event / signal / manual token) on a parked run, drive forward, persist.
  • cancel(args, deps) — flip a running / waiting run to cancelled.
  • driveUntilPaused(record, { handler }) — the core loop, exposed for advanced composition (e.g. custom scheduling, alarm handlers).
  • createInMemoryRunStore() — test-friendly RunRecordStore.
  • createStandaloneDriver({ db }) — production Postgres workflow driver for createApp().
  • startSelfHostServer(options) — reference self-host server.
  • runPostgresMigrations(options) — apply committed runtime migrations.

Status model

OrchestratorRunStatus: running | waiting | completed | failed | cancelled | compensated | compensation_failed.

Terminal: everything except running / waiting. driveUntilPaused returns as soon as the run reaches a terminal state or parks on a waitpoint the tenant registered.

Why this package is separate from @voyant-travel/workflows

The authoring SDK (@voyant-travel/workflows) describes workflows and provides the in-process executor. The orchestrator consumes that SDK's wire protocol — it doesn't care how the tenant runs the body, only about the request/response shape. Keeping orchestration outside the authoring SDK prevents SDK consumers from taking on Postgres, scheduler, and self-host server dependencies unless they are running workflows.