Local

@workflow/world-local

Zero-config world bundled with Workflow for local development. No external services required.

The Local World is bundled with workflow and used automatically during local development. No installation or configuration required.

To explicitly use the local world in any environment, set the environment variable:

WORKFLOW_TARGET_WORLD=local

Observability

The workflow CLI uses the local world by default. Running these commands inside your workflow project will show your local development workflows:

# List recent workflow runs
npx workflow inspect runs

# Launch the web UI
npx workflow web

Learn more in the Observability documentation.

Testing & Performance

E2E Tests

Passing100% passing

Spec compliance is tested against Next.js (Turbopack) built in production mode and started with `next start`. View CI run →

356
Passed
0
Failed
74
Skipped
430
Total
View comprehensive E2E test results against all frameworks/configurations
1929
Passed
1
Failed
392
Skipped
2322
Total

Benchmarks

Click on a benchmark to view performance history over the last 30 commits.

Benchmark
Time
MinMaxSamples
Promise.all with 10 concurrent steps
1.50s1.43s1.58s15
Promise.all with 25 concurrent steps
2.92s2.77s3.05s9
Promise.all with 50 concurrent steps
7.77s6.92s8.13s4
Promise.race with 10 concurrent steps
1.57s1.48s1.70s15
Promise.race with 25 concurrent steps
2.95s2.59s3.13s9
Promise.race with 50 concurrent steps
8.47s8.36s8.67s4
workflow with 1 step
1.13s1.12s1.23s10
workflow with 10 concurrent data payload steps (10KB)
576ms434ms734ms60
workflow with 10 sequential data payload steps (10KB)
981ms953ms1.07s52
workflow with 10 sequential steps
10.93s10.91s10.94s3
workflow with 25 concurrent data payload steps (10KB)
2.52s2.25s2.70s30
workflow with 25 sequential data payload steps (10KB)
3.00s2.93s3.08s26
workflow with 25 sequential steps
14.94s14.92s14.99s4
workflow with 50 concurrent data payload steps (10KB)
11.12s10.60s11.67s11
workflow with 50 sequential data payload steps (10KB)
9.14s8.94s9.37s13
workflow with 50 sequential steps
16.57s16.46s16.68s6
workflow with no steps
43ms37ms52ms10

Stream Benchmarks

Benchmark
Time
TTFB
Slurp
MinMaxSamples
10 parallel streams (1MB each)1.25s2.02s0ms1.17s1.32s30
fan-out fan-in 10 streams (1MB each)3.50s4.10s0ms3.21s4.05s15
stream pipeline with 5 transform steps (1MB)820ms1.01s10ms696ms5.74s54
workflow with stream209ms1.00s11ms200ms230ms10

Last updated: 4/7/2026, 8:48:13 PM · Commit: c5cdfc0

Configuration

The local world works with zero configuration, but you can customize behavior through environment variables or programmatically via createLocalWorld().

WORKFLOW_LOCAL_DATA_DIR

Directory for storing workflow data as JSON files. Default: .workflow-data/

PORT

The application dev server port. Used to enqueue steps and workflows. Default: auto-detected

WORKFLOW_LOCAL_BASE_URL

Full base URL override for HTTPS or custom hostnames. Default: http://localhost:{port}

Port resolution priority: baseUrl > port > PORT > auto-detected

WORKFLOW_LOCAL_QUEUE_CONCURRENCY

Maximum number of concurrent queue workers. Default: 100

Programmatic configuration

workflow.config.ts
import { createLocalWorld } from "@workflow/world-local";

const world = createLocalWorld({
  dataDir: "./custom-workflow-data",
  port: 5173,
  // baseUrl overrides port if set
  baseUrl: "https://local.example.com:3000",
});

Limitations

The local world is designed for development, not production:

  • In-memory queue - Steps are queued in memory and do not persist across server restarts
  • Filesystem storage - Data is stored in local JSON files
  • Single instance - Cannot handle distributed deployments
  • No authentication - Suitable only for local development

For production deployments, use the Vercel World or Postgres World.