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/world

v0.7.0

Published

Platformatic World adapter for Vercel Workflow DevKit — drop-in World implementation for self-hosted Kubernetes

Readme

@platformatic/world

Drop-in World implementation for Vercel Workflow DevKit on self-hosted Kubernetes. Routes workflow state through a central Workflow Service that pins each run to the deployment version that started it.

Installation

npm install @platformatic/world

Usage

With the Vercel Workflow SDK

Set two environment variables and the SDK discovers the world automatically:

WORKFLOW_TARGET_WORLD=@platformatic/world
PLT_WORLD_SERVICE_URL=http://localhost:3042

Your app needs to call world.start() once on server startup to register a queue handler. In Next.js, use instrumentation.ts:

// instrumentation.ts
export async function register() {
  if (process.env.PLT_WORLD_SERVICE_URL) {
    const { createWorld } = await import('@platformatic/world')
    const world = createWorld()
    await world.start?.()
  }
}

For other frameworks, call world.start() during your server's startup.

In Kubernetes with ICC, handler registration is automatic — world.start() is a no-op.

Direct usage

import { createWorld } from '@platformatic/world'

const world = createWorld({
  serviceUrl: 'http://localhost:3042',
  appId: 'my-app',
  deploymentVersion: 'v1',
})

// world implements the full World interface:
// storage (runs, events, steps, hooks), queue, streams, encryption

Configuration

createWorld(options?)

High-level factory with automatic config resolution from environment variables.

| Option | Env var | Default | Description | |---|---|---|---| | serviceUrl | PLT_WORLD_SERVICE_URL | required | Workflow Service URL | | appId | PLT_WORLD_APP_ID | package.json name | Application identifier | | deploymentVersion | PLT_WORLD_DEPLOYMENT_VERSION | K8s label or 'local' | Deployment version |

In Kubernetes, the deployment version is auto-detected from the pod's plt.dev/version label via the K8s API.

createPlatformaticWorld(config)

Low-level factory — all fields required, no env var resolution.

import { createPlatformaticWorld } from '@platformatic/world'

const world = createPlatformaticWorld({
  serviceUrl: 'http://localhost:3042',
  appId: 'my-app',
  deploymentVersion: 'v1',
})

Spec version support

@platformatic/world declares specVersion: SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT (3). In practice:

  • Runs created by start() are tagged with spec v3.
  • Queue messages between client and server use CBOR framing. CBOR preserves Uint8Array natively (JSON does not), so binary workflow input survives the queue round-trip without base64 wrapping.
  • createQueueHandler accepts both CBOR and JSON inbound via a dual transport. A v3 client can be deployed against a v2-only server during rollout; a v2 client can be deployed against a v3 server.

Peer dependency: @workflow/world ≥ 4.1.1 (the first stable release exporting SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT).

Workflow SDK compatibility

Our World API is typed against @workflow/[email protected] stable, but the same world instance also works at runtime against @workflow/[email protected] (the unreleased v5 line).

| Installed workflow SDK | Works at runtime | Notes | |---|---|---| | [email protected] (stable) | ✅ | The declared API. Streamer calls route through the flat methods (writeToStream, getStreamChunks, ...). | | [email protected] | ✅ | The v5 SDK calls world.streams.* (nested namespace, different argument order). We expose these at runtime alongside the v4 methods. | | [email protected] (pre-CBOR) | ⚠️ | Works, but without CBOR transport. Runs stay on spec v2 (JSON queue). |

We verify both SDK versions in CI (e2e/ runs against v5 beta to mirror Vercel's community-world suite; e2e-v4/ runs against v4.2.4 stable to guard the primary user-facing path).

The v5 breaking changes (PR #1293, streamer namespace rename + runId-first argument order, required runId on steps.get) are additive from our side — we keep the v4 flat methods as the canonical interface and expose the v5 streams.* namespace as a runtime addition.

License

Apache-2.0