@evelandhq/workflow-world

中文文档
0.31.1发布于 2026/11/06Apache-2.0TypeScriptES Module构建来源已验证近 30 天下载 2438

Natively multi-tenant Workflow World for the Vercel Workflow SDK, plus the dispatcher that drives it out of process

原始使用文档
文档目录4 节
  1. Quick start
  2. Development
  3. Contributing
  4. License and attribution

@evelandhq/workflow-world

A multi-tenant Workflow SDK World backed by PostgreSQL, with a dispatcher for executors that scale to zero.

Experimental, 0.x. This package has not carried production traffic yet.

Quick start

Requires Node.js 24+ and PostgreSQL. Install in an existing Workflow SDK app:

npm install @evelandhq/workflow-world

Follow the integration guide to configure the SDK and provision the database and tenant.

To try a working app, use the standalone Next.js example. It uses the published package and an embedded runner, with no Eve or activation service required. The example pins its own verified package and SDK versions.

git clone https://github.com/evelandhq/workflow-world.git
cd workflow-world/examples/nextjs
npm ci
cp .env.example .env.local

Set WORKFLOW_WORLD_URL in .env.local to a dedicated development database (the example includes Docker setup). Then:

npm run setup
npm run dev

Setup applies migrations, initializes Graphile, and provisions the tenant's partitions. In another terminal, run npm run smoke from examples/nextjs to verify a workflow completes with Hello, World!.

For executors that scale to zero, follow the external runner setup. See the documentation index for configuration, operations, and architecture.

Development

Requires Node.js 24+, the pinned pnpm version, and a disposable PostgreSQL database for integration tests. From a fresh checkout:

git clone https://github.com/evelandhq/workflow-world.git
cd workflow-world
npm install --global [email protected]
pnpm install --frozen-lockfile
pnpm run build

For a local test database (requires Docker):

docker run --rm --name workflow-world-dev \
  -e POSTGRES_USER=wfw -e POSTGRES_PASSWORD=wfw -e POSTGRES_DB=wfw_test \
  -p 127.0.0.1:5433:5432 -d postgres:17-alpine
docker exec workflow-world-dev pg_isready -U wfw -d wfw_test

Once PostgreSQL reports that it is accepting connections, run:

pnpm run typecheck
EVELAND_WORKFLOW_WORLD_TEST_URL=postgres://wfw:[email protected]:5433/wfw_test pnpm test

The tests apply migrations and provision their own tenants. With an existing test database, substitute its URL. Stop the disposable database with docker stop workflow-world-dev; this removes its test data.

See development and contributing for dependency management and checks, and testing for conformance, Eve E2E, and long-step lease checks.

Contributing

Open an issue or pull request describing the problem, the proposed change, and how it was verified. Follow the contribution guide and use conventional commit messages. Release procedures are documented in Releasing.

License and attribution

Copyright 2026 Eveland. Licensed under Apache-2.0.

Storage, streamer, queue, and Drizzle schema modules derive from Vercel's @workflow/world-postgres. NOTICE records upstream attribution, the base revision, and modifications; the compatibility contract defines the behavioral boundary.

版本与发布记录

@evelandhq/workflow-world 共发布 41 个版本,首次发布于 2026/08/04;过去 12 个月发布了 41 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.31.1latest2026/11/067 天前
0.31.02026/11/068 天前
0.30.02026/11/058 天前
0.29.02026/11/059 天前
0.28.02026/10/2718 天前
0.27.02026/10/2123 天前

关于 @evelandhq/workflow-world 的常见问题

@evelandhq/workflow-world 是什么?

Natively multi-tenant Workflow World for the Vercel Workflow SDK, plus the dispatcher that drives it out of process

如何安装 @evelandhq/workflow-world?

在项目目录运行 npm install @evelandhq/workflow-world,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 workflow-dispatcher、workflow-world-setup,可以用 npx workflow-dispatcher 直接运行。

@evelandhq/workflow-world 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@evelandhq/workflow-world 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@evelandhq/workflow-world 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@evelandhq/workflow-world 可以商用吗?

@evelandhq/workflow-world 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@evelandhq/workflow-world 的下载量有多少?

根据 npm 官方下载统计,@evelandhq/workflow-world 在 2026/10/14 – 2026/11/12 这 30 天内被下载 2,438 次,日均约 81 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@evelandhq/workflow-world 还在维护吗?

最新版本 0.31.1 发布于 2026/11/06(7 天前);至今共发布 41 个版本,其中过去 12 个月发布了 41 个;首次发布于 2026/08/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。