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 →

326
Passed
0
Failed
74
Skipped
400
Total
View comprehensive E2E test results against all frameworks/configurations
1768
Passed
0
Failed
392
Skipped
2160
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.53s1.44s1.90s15
Promise.all with 25 concurrent steps
3.05s2.94s3.15s8
Promise.all with 50 concurrent steps
8.14s8.05s8.24s4
Promise.race with 10 concurrent steps
1.50s1.39s1.63s15
Promise.race with 25 concurrent steps
2.95s2.49s3.12s9
Promise.race with 50 concurrent steps
8.67s8.47s8.85s4
workflow with 1 step
1.13s1.12s1.14s10
workflow with 10 concurrent data payload steps (10KB)
591ms497ms707ms60
workflow with 10 sequential data payload steps (10KB)
965ms938ms1.03s58
workflow with 10 sequential steps
10.91s10.90s10.91s3
workflow with 25 concurrent data payload steps (10KB)
2.51s2.26s2.71s30
workflow with 25 sequential data payload steps (10KB)
2.96s2.88s3.02s29
workflow with 25 sequential steps
14.93s14.89s14.99s4
workflow with 50 concurrent data payload steps (10KB)
11.08s10.08s11.42s11
workflow with 50 sequential data payload steps (10KB)
9.02s8.79s9.29s13
workflow with 50 sequential steps
16.45s16.40s16.54s6
workflow with no steps
48ms39ms87ms10

Stream Benchmarks

Benchmark
Time
TTFB
Slurp
MinMaxSamples
10 parallel streams (1MB each)1.24s2.02s0ms1.18s1.30s30
fan-out fan-in 10 streams (1MB each)3.55s4.10s1ms3.10s4.08s15
stream pipeline with 5 transform steps (1MB)724ms1.01s9ms697ms803ms59
workflow with stream200ms1.00s11ms195ms204ms10

Last updated: 3/24/2026, 4:38:48 AM · Commit: ef4ca00

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.