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

@platformatic/workflow

v0.6.2

Published

Workflow orchestration service for Vercel Workflow DevKit on Kubernetes

Readme

@platformatic/workflow

Workflow orchestration service for Vercel Workflow DevKit on self-hosted Kubernetes. Manages all workflow state (runs, steps, events, hooks, streams) and routes queue messages to the correct deployment version.

Quick Start

# Start PostgreSQL
docker run -d --name workflow-pg \
  -e POSTGRES_USER=wf -e POSTGRES_PASSWORD=wf -e POSTGRES_DB=workflow \
  -p 5434:5432 postgres:17-alpine

# Start the workflow service
npx @platformatic/workflow postgresql://wf:wf@localhost:5434/workflow

The service starts on http://localhost:3042. Migrations run automatically on first start.

CLI Options

npx @platformatic/workflow <database-url> [options]

Options:
  --host, -H    Listen host (default: 0.0.0.0)
  --port, -p    Listen port (default: 3042)
  --help        Show help

Operating Modes

Single-tenant (local dev) — No K8s service account token detected. No authentication, one implicit application auto-provisioned.

Multi-tenant (Kubernetes) — K8s service account token present. All requests authenticated via K8s TokenReview API. Per-application isolation enforced at the SQL level.

API

All app-scoped endpoints are prefixed with /api/v1/apps/:appId.

Core

| Method | Path | Description | |---|---|---| | POST | /runs/:runId/events | Create an event (main write path) | | GET | /runs/:runId/events | List events for a run | | GET | /runs/:runId | Get run by ID | | GET | /runs | List runs (filters: status, workflowName, deploymentId) | | GET | /runs/:runId/steps | List steps for a run | | GET | /hooks | List hooks (filter: runId) | | GET | /hooks/by-token/:token | Get hook by token |

Actions

| Method | Path | Description | |---|---|---| | POST | /runs/:runId/replay | Replay a completed run | | POST | /runs/:runId/cancel | Cancel a running run | | POST | /runs/:runId/wake-up | Cancel active sleeps | | GET | /workflows/:workflowName/template | Step template from last completed run |

Queue & Streams

| Method | Path | Description | |---|---|---| | POST | /queue | Enqueue a message | | POST | /handlers | Register queue handler endpoints | | PUT | /runs/:runId/streams/:name | Write stream chunks | | GET | /runs/:runId/streams | List stream names |

Admin (requires admin service account)

| Method | Path | Description | |---|---|---| | POST | /api/v1/apps | Provision application | | POST | /api/v1/apps/:appId/k8s-binding | Create K8s ServiceAccount binding | | GET | /api/v1/apps/:appId/quotas | Get quotas | | PUT | /api/v1/apps/:appId/quotas | Set quotas (maxRuns, maxEventsPerRun, maxQueuePerMinute) | | POST | /api/v1/apps/:appId/versions/:deploymentId/expire | Force-expire a version |

Health

| Endpoint | Description | |---|---| | GET /ready | Readiness probe | | GET /status | Liveness probe | | GET /metrics | Prometheus metrics |

Environment Variables

| Variable | Default | Description | |---|---|---| | DATABASE_URL | | PostgreSQL connection string (or pass as CLI argument) | | PORT | 3042 | HTTP listen port | | HOST | 0.0.0.0 | HTTP listen host | | K8S_API_SERVER | https://kubernetes.default.svc | K8s API server (multi-tenant only) | | K8S_ADMIN_SERVICE_ACCOUNT | | Admin service account (namespace:name) | | WF_ENABLE_POLLER | true | Enable queue poller/dispatcher |

Kubernetes Deployment

In production, the service runs as part of the Platformatic Helm chart with ICC handling service discovery and handler registration. See the Operator Guide for details.

License

Apache-2.0