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

@voyantjs/workflows-node-step-container

v0.62.3

Published

Reference Node container image for executing `runtime: "node"` steps. Deployed alongside the orchestrator as a Cloudflare Container.

Downloads

5,407

Readme

@voyantjs/workflows-node-step-container

Reference Cloudflare Container server that executes workflow steps declared with runtime: "node". The orchestrator (running as a Worker

  • Durable Object) dispatches individual step invocations to a container running this package via createCfContainerStepRunner from @voyantjs/workflows-orchestrator-cloudflare.

Voyant Cloud consumes this package from its shared voyant-step-runner fleet and from platform-operated per-org dedicated runner fleets. Enterprise dedicated runners use the same package and protocol; only the injected Durable Object binding target changes.

Protocol

The orchestrator's runner sends POST /step with:

{
  "runId": "run_...",
  "workflowId": "process-upload",
  "workflowVersion": "v1",
  "stepId": "hash-source",
  "attempt": 1,
  "input": { ... },
  "options": { "machine": "standard-2", "timeout": "30s" }
}

Optional header x-voyant-step-auth: <hmac> is verified against VOYANT_STEP_SECRET when set.

Response is a StepJournalEntry:

{
  "attempt": 1,
  "status": "ok",
  "output": { "hash": "sha256:..." },
  "startedAt": 1776451106797,
  "finishedAt": 1776451106897,
  "runtime": "node"
}

Package use

pnpm add @voyantjs/workflows-node-step-container

The package entry point starts the HTTP server:

voyant-workflows-node-step-container

Container images can also run the built module directly:

node node_modules/@voyantjs/workflows-node-step-container/dist/server.js

Wiring

Orchestrator side (Worker + DO)

import { createCfContainerStepRunner } from "@voyantjs/workflows-orchestrator-cloudflare";
import { createStepHandler } from "@voyantjs/workflows/handler";

export default {
  fetch(req, env) {
    const nodeStepRunner = createCfContainerStepRunner({
      namespace: env.NODE_STEP_POOL,
    });
    const stepHandler = createStepHandler({ nodeStepRunner });
    // ... wire stepHandler into handleWorkerRequest / DO
  },
};

Wrangler binding (orchestrator's wrangler.jsonc)

{
  "durable_objects": {
    "bindings": [
      { "name": "WORKFLOW_RUN_DO", "class_name": "WorkflowRunDO" },
      { "name": "NODE_STEP_POOL", "class_name": "NodeStepContainer" }
    ]
  },
  "containers": [
    {
      "class_name": "NodeStepContainer",
      "image": "./apps/workflows-node-step-container/Dockerfile",
      "instance_type": "standard-2",
      // "lite" | "basic" | "standard-1" | "standard-2" | "standard-3" | "standard-4"
      "max_instances": 50
    }
  ]
}

Container class (orchestrator Worker)

import { Container } from "@cloudflare/containers";

export class NodeStepContainer extends Container {
  defaultPort = 8080;
  sleepAfter = "10m";
}

Build

# 1. Build your workflow bundle separately for single-tenant images
voyant workflows build --file ./src/workflows.ts --out ./dist
cp ./dist/bundle.mjs ./apps/workflows-node-step-container/bundle.mjs

# 2. Deploy via wrangler (builds + pushes the image)
wrangler deploy

Bundle modes

  • Single tenant — set WORKFLOW_BUNDLE to a local container.mjs.
  • Multi tenant — send bundle: { url, hash } in each dispatch payload. The server fetches the signed URL, verifies the SHA-256 hash, imports the bundle, and caches it by hash.

The dispatch payload includes the current journal slice, and the server stops after the target step has executed so sibling node steps do not rerun during body replay.