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 →

367
Passed
0
Failed
78
Skipped
445
Total
View comprehensive E2E test results against all frameworks/configurations
1853
Passed
0
Failed
372
Skipped
2225
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.59s15
Promise.all with 25 concurrent steps
2.73s2.18s3.06s10
Promise.all with 50 concurrent steps
7.74s7.04s8.39s4
Promise.race with 10 concurrent steps
1.51s1.38s1.66s15
Promise.race with 25 concurrent steps
3.50s2.78s7.28s8
Promise.race with 50 concurrent steps
8.50s8.30s8.61s4
workflow with 1 step
1.10s1.09s1.13s10
workflow with 10 concurrent data payload steps (10KB)
663ms491ms827ms60
workflow with 10 sequential data payload steps (10KB)
737ms656ms860ms60
workflow with 10 sequential steps
10.67s10.66s10.70s3
workflow with 25 concurrent data payload steps (10KB)
2.75s2.21s3.21s29
workflow with 25 sequential data payload steps (10KB)
2.57s2.13s7.53s29
workflow with 25 sequential steps
14.22s14.19s14.26s4
workflow with 50 concurrent data payload steps (10KB)
11.14s10.20s12.14s11
workflow with 50 sequential data payload steps (10KB)
7.71s6.93s9.06s15
workflow with 50 sequential steps
14.92s14.80s15.01s6
workflow with no steps
37ms33ms42ms10

Stream Benchmarks

Benchmark
Time
TTFB
Slurp
MinMaxSamples
10 parallel streams (1MB each)1.33s2.02s1ms1.15s1.59s30
fan-out fan-in 10 streams (1MB each)3.95s4.53s1ms3.27s4.66s14
stream pipeline with 5 transform steps (1MB)662ms1.01s11ms544ms862ms59
workflow with stream148ms1.00s9ms138ms165ms10

Last updated: 4/9/2026, 8:38:39 PM · Commit: 66d49c0

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.