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 →

235
Passed
0
Failed
0
Skipped
235
Total
View comprehensive E2E test results against all frameworks/configurations
1197
Passed
0
Failed
72
Skipped
1269
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.40s1.35s1.44s15
Promise.all with 25 concurrent steps
2.45s2.39s2.55s10
Promise.all with 50 concurrent steps
6.69s6.58s6.79s4
Promise.race with 10 concurrent steps
1.44s1.33s1.57s15
Promise.race with 25 concurrent steps
2.61s2.47s2.81s10
Promise.race with 50 concurrent steps
7.59s7.35s7.83s4
workflow with 1 step
1.12s1.11s1.13s10
workflow with 10 sequential steps
10.86s10.86s10.87s3
workflow with 25 sequential steps
27.51s27.50s27.52s3
workflow with 50 sequential steps
57.08s57.07s57.08s2
workflow with no steps
58ms41ms182ms10

Stream Benchmarks

Benchmark
Time
TTFB
Slurp
MinMaxSamples
workflow with stream187ms992ms13ms184ms201ms10

Last updated: 2/4/2026, 2:12:09 AM · Commit: 6208616

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.