Skip to content

Observability config rewrite: remember projects, allow self-hosting, unify env var handling - #775

Closed
VaguelySerious wants to merge 12 commits into
mainfrom
peter/o11y-refactor
Closed

Observability config rewrite: remember projects, allow self-hosting, unify env var handling#775
VaguelySerious wants to merge 12 commits into
mainfrom
peter/o11y-refactor

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Jan 13, 2026

Copy link
Copy Markdown
Member

Probably replaced with #774


This superseeds #626 and #748, and reverts #747 in order to:

  • Allow users to open the web app anywhere, and then select any of their projects, easily swapping between them
  • Provide better debugging for world env vars and config
  • Support self-hosting the app with locked-in UI
  • Cleans up state management and URL data
  • Derives the world state from world-manifest.json. Updating the manifest will now directly update the UI support for worlds.

The dream for this is that you can open your web app once, and easily switch between local/staging/prod envs, or different project/repos) without having to invoke the o11y separately every time.

Not in this PR, but now unblocked:

  • Automatically do vc env pull if vercel credentials expired
  • Scan your machine for workflow projects

Testing

I'm working on e2e tests for this, but in the meantime, I manually validated this PR extensively:

  • Opening web from CLI outside of project
  • Opening web from CLI inside project
  • Installing this PR's tarball into a separate local project and running from there
  • Switching and editing projects between local/remote
  • Opening web to vercel with --localUI
  • Opening web with already running server from elsewhere
  • Opening web in self-hosted mode (WORKFLOW_UI_SELF_HOSTING="1")
  • Opening web when wf is aliased to the workflow local directory (contributor DevEx)

What I didn't test:

  • Opening web to postgres remote instance
    • I remember @pranaygp had a Railway instance for this. Could you test that?

Screenshots

Screenshot 2026-01-13 at 3 17 47 PMScreenshot 2026-01-13 at 3 17 41 PMimage

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Jan 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8a15ced

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 19 packages
NameType
@workflow/web-sharedPatch
@workflow/utilsPatch
@workflow/cliPatch
@workflow/webPatch
@workflow/corePatch
@workflow/errorsPatch
@workflow/world-localPatch
workflowPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/docs-typecheckPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
@workflow/aiPatch
@workflow/astroPatch
@workflow/sveltekitPatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercelBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production374011385
✅ 💻 Local Development34208350
✅ 📦 Local Production34208350
✅ 🐘 Local Postgres34208350
✅ 🪟 Windows350035
❌ 🌍 Community Worlds136160152
Total157116351622

❌ Failed Tests

🌍 Community Worlds (16 failed)

mongodb (1 failed):

  • webhookWorkflow

starter (14 failed):

  • addTenWorkflow
  • addTenWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro3401
✅ example3401
✅ express3401
✅ fastify3401
✅ hono3401
✅ nextjs-turbopack3401
✅ nextjs-webpack3401
✅ nitro3401
✅ nuxt3401
✅ sveltekit3401
✅ vite3401
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack3500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb3410
✅ redis-dev300
✅ redis3500
✅ starter-dev300
❌ starter21140
✅ turso-dev300
❌ turso3410

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.032s (-20.9% 🟢)1.014s (~)0.982s101.00x
💻 LocalNext.js (Turbopack)0.041s (+5.2% 🔺)1.014s (~)0.974s101.28x
🌐 RedisNext.js (Turbopack)0.041s (+16.5% 🔺)1.018s (~)0.977s101.29x
💻 LocalNitro0.044s (+37.1% 🔺)1.007s (~)0.963s101.37x
💻 LocalExpress0.045s (+5.6% 🔺)1.007s (~)0.962s101.42x
🌐 TursoNext.js (Turbopack)0.092s (-12.0% 🟢)1.013s (~)0.920s102.90x
🌐 MongoDBNext.js (Turbopack)0.100s (+117.9% 🔺)1.016s (~)0.917s103.13x
🐘 PostgresNext.js (Turbopack)0.116s (-55.6% 🟢)1.019s (~)0.903s103.66x
🐘 PostgresNitro0.223s (-5.2% 🟢)1.018s (-0.8%)0.795s107.01x
🐘 PostgresExpress0.332s (+14.0% 🔺)1.014s (~)0.683s1010.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.654s (-17.3% 🟢)1.605s (-5.4% 🟢)0.951s101.00x
▲ VercelExpress0.769s (+32.5% 🔺)1.460s (-1.0%)0.691s101.18x
▲ VercelNitro0.806s (+29.7% 🔺)1.478s (+3.6%)0.673s101.23x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.076s (-1.0%)2.010s (~)0.933s101.00x
💻 LocalNext.js (Turbopack)1.101s (~)2.012s (~)0.911s101.02x
🌐 RedisNext.js (Turbopack)1.101s (+2.2%)2.012s (~)0.910s101.02x
💻 LocalNitro1.114s (+3.2%)2.007s (~)0.893s101.03x
💻 LocalExpress1.119s (+0.6%)2.007s (~)0.888s101.04x
🌐 MongoDBNext.js (Turbopack)1.300s (~)2.014s (~)0.715s101.21x
🌐 TursoNext.js (Turbopack)1.319s (+1.5%)2.011s (~)0.692s101.23x
🐘 PostgresNext.js (Turbopack)1.918s (+2.4%)2.016s (~)0.098s101.78x
🐘 PostgresExpress2.182s (+2.7%)3.015s (~)0.833s102.03x
🐘 PostgresNitro2.331s (-3.5%)3.015s (~)0.684s102.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.867s (+2.5%)3.801s (+1.8%)0.934s101.00x
▲ VercelNitro2.959s (+11.0% 🔺)3.660s (-0.8%)0.702s101.03x
▲ VercelExpress2.983s (+3.8%)3.740s (-1.4%)0.756s101.04x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.505s (-1.0%)11.012s (~)0.507s51.00x
💻 LocalNext.js (Turbopack)10.674s (~)11.018s (~)0.345s51.02x
🌐 RedisNext.js (Turbopack)10.698s (+1.3%)11.019s (~)0.321s51.02x
💻 LocalNitro10.798s (+2.4%)11.011s (~)0.213s51.03x
💻 LocalExpress10.852s (+0.5%)11.017s (~)0.165s51.03x
🌐 TursoNext.js (Turbopack)12.183s (~)13.022s (~)0.838s51.16x
🌐 MongoDBNext.js (Turbopack)12.261s (+2.8%)13.027s (+8.3% 🔺)0.767s51.17x
🐘 PostgresNext.js (Turbopack)15.158s (+1.9%)15.839s (+1.3%)0.681s51.44x
🐘 PostgresNitro20.388s (~)21.039s (~)0.651s51.94x
🐘 PostgresExpress20.426s (~)21.030s (~)0.604s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express23.477s (+2.5%)24.595s (+3.8%)1.118s51.00x
▲ VercelNitro23.497s (+2.2%)24.143s (+2.2%)0.647s51.00x
▲ VercelNext.js (Turbopack)23.887s (+6.8% 🔺)24.729s (+7.3% 🔺)0.842s51.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.321s (-2.6%)2.009s (~)0.688s151.00x
🌐 RedisNext.js (Turbopack)1.351s (+2.0%)2.010s (~)0.659s151.02x
💻 LocalNext.js (Turbopack)1.391s (~)2.013s (~)0.622s151.05x
💻 LocalExpress1.419s (+1.2%)2.006s (~)0.587s151.07x
💻 LocalNitro1.422s (+5.0% 🔺)2.006s (~)0.584s151.08x
🐘 PostgresNext.js (Turbopack)1.825s (+6.0% 🔺)2.012s (~)0.187s151.38x
🌐 MongoDBNext.js (Turbopack)2.132s (~)3.014s (~)0.882s101.61x
🌐 TursoNext.js (Turbopack)2.210s (~)3.011s (~)0.801s101.67x
🐘 PostgresExpress2.414s (-0.7%)3.013s (~)0.599s101.83x
🐘 PostgresNitro2.425s (-7.9% 🟢)3.014s (~)0.590s101.84x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.896s (~)3.913s (+5.3% 🔺)1.016s81.00x
▲ VercelExpress3.032s (+9.1% 🔺)3.724s (~)0.692s91.05x
▲ VercelNitro3.235s (-3.0%)4.047s (+0.9%)0.812s81.12x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.180s (+3.2%)3.026s (~)0.846s101.00x
💻 LocalExpress2.220s (~)3.170s (+0.7%)0.950s101.02x
💻 LocalNitro2.257s (+12.8% 🔺)3.205s (+33.4% 🔺)0.948s101.04x
🌐 StarterNext.js (Turbopack)2.384s (-3.3%)3.010s (~)0.626s101.09x
🌐 RedisNext.js (Turbopack)2.484s (+4.9%)3.012s (~)0.528s101.14x
🐘 PostgresNext.js (Turbopack)2.633s (+7.0% 🔺)3.013s (~)0.381s101.21x
🐘 PostgresExpress2.941s (-3.4%)3.323s (-7.0% 🟢)0.383s101.35x
🐘 PostgresNitro2.995s (+1.7%)3.358s (+7.8% 🔺)0.362s91.37x
🌐 TursoNext.js (Turbopack)4.665s (-1.7%)5.178s (~)0.513s62.14x
🌐 MongoDBNext.js (Turbopack)4.751s (+1.4%)5.183s (~)0.432s62.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.624s (+11.5% 🔺)4.480s (+25.0% 🔺)0.856s81.00x
▲ VercelExpress3.727s (+13.1% 🔺)4.574s (+18.0% 🔺)0.848s71.03x
▲ VercelNext.js (Turbopack)4.464s (+11.3% 🔺)5.140s (+11.7% 🔺)0.676s71.23x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.327s (-4.3%)2.008s (~)0.682s151.00x
🌐 RedisNext.js (Turbopack)1.364s (+1.6%)2.010s (~)0.646s151.03x
💻 LocalNext.js (Turbopack)1.391s (~)2.012s (~)0.620s151.05x
💻 LocalExpress1.419s (~)2.006s (~)0.588s151.07x
💻 LocalNitro1.443s (+8.4% 🔺)2.006s (~)0.563s151.09x
🐘 PostgresNext.js (Turbopack)1.706s (+2.6%)2.012s (~)0.305s151.29x
🐘 PostgresExpress1.840s (-11.7% 🟢)2.012s (-16.2% 🟢)0.172s151.39x
🐘 PostgresNitro1.851s (+8.6% 🔺)2.079s (+3.4%)0.228s151.40x
🌐 MongoDBNext.js (Turbopack)2.137s (+1.0%)3.015s (~)0.879s101.61x
🌐 TursoNext.js (Turbopack)2.194s (-2.0%)3.011s (~)0.817s101.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.546s (+20.6% 🔺)4.625s (+23.2% 🔺)1.079s71.00x
▲ VercelExpress3.606s (+27.6% 🔺)4.396s (+17.8% 🔺)0.790s71.02x
▲ VercelNitro3.887s (+35.3% 🔺)4.690s (+30.6% 🔺)0.803s71.10x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.110s (-2.6%)2.987s (-3.0%)0.876s111.00x
💻 LocalExpress2.222s (-3.2%)3.181s (-2.0%)0.959s101.05x
💻 LocalNitro2.250s (+7.7% 🔺)3.180s (+15.6% 🔺)0.930s101.07x
🌐 StarterNext.js (Turbopack)2.402s (-2.8%)3.011s (~)0.609s101.14x
🌐 RedisNext.js (Turbopack)2.465s (+4.2%)3.010s (~)0.545s101.17x
🐘 PostgresExpress2.530s (-12.5% 🟢)3.014s (-3.2%)0.484s101.20x
🐘 PostgresNext.js (Turbopack)2.604s (+6.0% 🔺)3.019s (~)0.415s101.23x
🐘 PostgresNitro2.787s (+3.9%)3.216s (+6.5% 🔺)0.429s101.32x
🌐 TursoNext.js (Turbopack)4.697s (-2.3%)5.177s (~)0.480s62.23x
🌐 MongoDBNext.js (Turbopack)4.785s (+1.5%)5.181s (~)0.396s62.27x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.851s (+15.3% 🔺)4.070s (+1.2%)0.219s81.00x
▲ VercelExpress4.557s (+41.1% 🔺)5.061s (+34.9% 🔺)0.504s71.18x
▲ VercelNitro4.662s (+43.7% 🔺)5.321s (+39.7% 🔺)0.660s71.21x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.098s (-24.6% 🟢)1.006s (~)0.000s (+Infinity% 🔺)1.012s (~)0.913s101.00x
💻 LocalNext.js (Turbopack)0.139s (+0.8%)1.003s (~)0.017s (+1.2%)1.028s (~)0.889s101.42x
🌐 RedisNext.js (Turbopack)0.140s (+22.3% 🔺)1.005s (~)0.000s (NaN%)1.014s (~)0.874s101.42x
💻 LocalNitro0.181s (+48.3% 🔺)0.992s (-0.6%)0.015s (-5.0% 🟢)1.021s (~)0.840s101.84x
💻 LocalExpress0.184s (+5.6% 🔺)0.993s (~)0.019s (+28.3% 🔺)1.026s (+0.5%)0.842s101.87x
🌐 TursoNext.js (Turbopack)0.477s (-6.3% 🟢)0.971s (+1.8%)0.000s (~)1.011s (~)0.534s104.86x
🌐 MongoDBNext.js (Turbopack)0.506s (+2.5%)0.946s (-0.5%)0.000s (-100.0% 🟢)1.014s (~)0.508s105.15x
🐘 PostgresNext.js (Turbopack)1.323s (+3.6%)1.899s (+22.6% 🔺)0.000s (-100.0% 🟢)2.020s (+11.0% 🔺)0.698s1013.45x
🐘 PostgresNitro2.187s (+4.7%)2.858s (+1.9%)0.000s (~)3.014s (+3.4%)0.828s1022.24x
🐘 PostgresExpress2.345s (+0.7%)2.697s (-0.6%)0.000s (+Infinity% 🔺)3.014s (~)0.670s1023.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.336s (+12.2% 🔺)3.652s (+10.3% 🔺)0.587s (+16.5% 🔺)4.868s (+13.3% 🔺)1.532s101.00x
▲ VercelExpress3.384s (+16.6% 🔺)3.559s (+11.7% 🔺)0.581s (+16.6% 🔺)4.723s (+13.9% 🔺)1.339s101.01x
▲ VercelNitro3.505s (+18.5% 🔺)3.610s (+15.6% 🔺)0.771s (+14.4% 🔺)5.019s (+18.3% 🔺)1.513s101.05x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)7/8
▲ VercelNext.js (Turbopack)6/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter6/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@socket-security

socket-securityBot commented Jan 13, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​shiki@​3.21.01001007798100

View full report

Comment threadpackages/web-shared/src/api/workflow-server-actions.ts
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment threadpackages/web/src/lib/project-context.tsx
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
},
"devDependencies": {
"@xyflow/react": "12.9.3",
"shiki": "3.21.0",

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@@ -0,0 +1,28 @@
#!/usr/bin/env node

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works similar to genversion but copies the world-manifest.json into the local package, instead of the package version

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment on lines +29 to +30
// Generate TypeScript file with the manifest data
const tsContent = `// AUTO-GENERATED FILE - DO NOT EDIT

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure how to get around this. If at all possible, it would be nice to have the world-manifest be a typescript file inside some package, but I didn't want to change the convention here. @pranaygp

export { parseDurationToDate } from './time.js';

// Client-safe project types and utilities (no Node.js dependencies)
export type {

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up putting quite some cli/web shared code in here. It would be nice to have a o11y-utils package which does all of this, and also does what packages/core/observability.ts does

serverSourceMaps: false,
},
// Transpile workspace packages
transpilePackages: ['@workflow/web-shared', '@workflow/utils', '@workflow/core'],

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually unsure about this - Claude added it 🤔

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Add copy buttons to all
 blocks
(function() {
function addCopyButtons() {
document.querySelectorAll('pre code').forEach(function(codeBlock) {
if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;
codeBlock.parentElement.setAttribute('data-copy-added', 'true');
var btn = document.createElement('button');
btn.textContent = 'Copy';
btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';
btn.onmouseover = function() { this.style.opacity = '1'; };
btn.onmouseout = function() { this.style.opacity = '0.7'; };
btn.onclick = function() {
navigator.clipboard.writeText(codeBlock.textContent).then(function() {
btn.textContent = 'Copied!';
setTimeout(function() { btn.textContent = 'Copy'; }, 1500);
});
};
codeBlock.parentElement.style.position = 'relative';
codeBlock.parentElement.appendChild(btn);
});
}
addCopyButtons();
// Re-run on dynamic content
var observer = new MutationObserver(addCopyButtons);
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Observability config rewrite: remember projects, allow self-hosting, unify env var handling by VaguelySerious · Pull Request #775 · vercel/workflow · GitHub
Skip to content

Observability config rewrite: remember projects, allow self-hosting, unify env var handling - #775

Closed
VaguelySerious wants to merge 12 commits into
mainfrom
peter/o11y-refactor
Closed

Observability config rewrite: remember projects, allow self-hosting, unify env var handling#775
VaguelySerious wants to merge 12 commits into
mainfrom
peter/o11y-refactor

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Jan 13, 2026

Copy link
Copy Markdown
Member

Probably replaced with #774


This superseeds #626 and #748, and reverts #747 in order to:

  • Allow users to open the web app anywhere, and then select any of their projects, easily swapping between them
  • Provide better debugging for world env vars and config
  • Support self-hosting the app with locked-in UI
  • Cleans up state management and URL data
  • Derives the world state from world-manifest.json. Updating the manifest will now directly update the UI support for worlds.

The dream for this is that you can open your web app once, and easily switch between local/staging/prod envs, or different project/repos) without having to invoke the o11y separately every time.

Not in this PR, but now unblocked:

  • Automatically do vc env pull if vercel credentials expired
  • Scan your machine for workflow projects

Testing

I'm working on e2e tests for this, but in the meantime, I manually validated this PR extensively:

  • Opening web from CLI outside of project
  • Opening web from CLI inside project
  • Installing this PR's tarball into a separate local project and running from there
  • Switching and editing projects between local/remote
  • Opening web to vercel with --localUI
  • Opening web with already running server from elsewhere
  • Opening web in self-hosted mode (WORKFLOW_UI_SELF_HOSTING="1")
  • Opening web when wf is aliased to the workflow local directory (contributor DevEx)

What I didn't test:

  • Opening web to postgres remote instance
    • I remember @pranaygp had a Railway instance for this. Could you test that?

Screenshots

Screenshot 2026-01-13 at 3 17 47 PMScreenshot 2026-01-13 at 3 17 41 PMimage

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Jan 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8a15ced

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 19 packages
NameType
@workflow/web-sharedPatch
@workflow/utilsPatch
@workflow/cliPatch
@workflow/webPatch
@workflow/corePatch
@workflow/errorsPatch
@workflow/world-localPatch
workflowPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/docs-typecheckPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
@workflow/aiPatch
@workflow/astroPatch
@workflow/sveltekitPatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercelBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production374011385
✅ 💻 Local Development34208350
✅ 📦 Local Production34208350
✅ 🐘 Local Postgres34208350
✅ 🪟 Windows350035
❌ 🌍 Community Worlds136160152
Total157116351622

❌ Failed Tests

🌍 Community Worlds (16 failed)

mongodb (1 failed):

  • webhookWorkflow

starter (14 failed):

  • addTenWorkflow
  • addTenWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro3401
✅ example3401
✅ express3401
✅ fastify3401
✅ hono3401
✅ nextjs-turbopack3401
✅ nextjs-webpack3401
✅ nitro3401
✅ nuxt3401
✅ sveltekit3401
✅ vite3401
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack3500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb3410
✅ redis-dev300
✅ redis3500
✅ starter-dev300
❌ starter21140
✅ turso-dev300
❌ turso3410

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.032s (-20.9% 🟢)1.014s (~)0.982s101.00x
💻 LocalNext.js (Turbopack)0.041s (+5.2% 🔺)1.014s (~)0.974s101.28x
🌐 RedisNext.js (Turbopack)0.041s (+16.5% 🔺)1.018s (~)0.977s101.29x
💻 LocalNitro0.044s (+37.1% 🔺)1.007s (~)0.963s101.37x
💻 LocalExpress0.045s (+5.6% 🔺)1.007s (~)0.962s101.42x
🌐 TursoNext.js (Turbopack)0.092s (-12.0% 🟢)1.013s (~)0.920s102.90x
🌐 MongoDBNext.js (Turbopack)0.100s (+117.9% 🔺)1.016s (~)0.917s103.13x
🐘 PostgresNext.js (Turbopack)0.116s (-55.6% 🟢)1.019s (~)0.903s103.66x
🐘 PostgresNitro0.223s (-5.2% 🟢)1.018s (-0.8%)0.795s107.01x
🐘 PostgresExpress0.332s (+14.0% 🔺)1.014s (~)0.683s1010.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.654s (-17.3% 🟢)1.605s (-5.4% 🟢)0.951s101.00x
▲ VercelExpress0.769s (+32.5% 🔺)1.460s (-1.0%)0.691s101.18x
▲ VercelNitro0.806s (+29.7% 🔺)1.478s (+3.6%)0.673s101.23x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.076s (-1.0%)2.010s (~)0.933s101.00x
💻 LocalNext.js (Turbopack)1.101s (~)2.012s (~)0.911s101.02x
🌐 RedisNext.js (Turbopack)1.101s (+2.2%)2.012s (~)0.910s101.02x
💻 LocalNitro1.114s (+3.2%)2.007s (~)0.893s101.03x
💻 LocalExpress1.119s (+0.6%)2.007s (~)0.888s101.04x
🌐 MongoDBNext.js (Turbopack)1.300s (~)2.014s (~)0.715s101.21x
🌐 TursoNext.js (Turbopack)1.319s (+1.5%)2.011s (~)0.692s101.23x
🐘 PostgresNext.js (Turbopack)1.918s (+2.4%)2.016s (~)0.098s101.78x
🐘 PostgresExpress2.182s (+2.7%)3.015s (~)0.833s102.03x
🐘 PostgresNitro2.331s (-3.5%)3.015s (~)0.684s102.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.867s (+2.5%)3.801s (+1.8%)0.934s101.00x
▲ VercelNitro2.959s (+11.0% 🔺)3.660s (-0.8%)0.702s101.03x
▲ VercelExpress2.983s (+3.8%)3.740s (-1.4%)0.756s101.04x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.505s (-1.0%)11.012s (~)0.507s51.00x
💻 LocalNext.js (Turbopack)10.674s (~)11.018s (~)0.345s51.02x
🌐 RedisNext.js (Turbopack)10.698s (+1.3%)11.019s (~)0.321s51.02x
💻 LocalNitro10.798s (+2.4%)11.011s (~)0.213s51.03x
💻 LocalExpress10.852s (+0.5%)11.017s (~)0.165s51.03x
🌐 TursoNext.js (Turbopack)12.183s (~)13.022s (~)0.838s51.16x
🌐 MongoDBNext.js (Turbopack)12.261s (+2.8%)13.027s (+8.3% 🔺)0.767s51.17x
🐘 PostgresNext.js (Turbopack)15.158s (+1.9%)15.839s (+1.3%)0.681s51.44x
🐘 PostgresNitro20.388s (~)21.039s (~)0.651s51.94x
🐘 PostgresExpress20.426s (~)21.030s (~)0.604s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express23.477s (+2.5%)24.595s (+3.8%)1.118s51.00x
▲ VercelNitro23.497s (+2.2%)24.143s (+2.2%)0.647s51.00x
▲ VercelNext.js (Turbopack)23.887s (+6.8% 🔺)24.729s (+7.3% 🔺)0.842s51.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.321s (-2.6%)2.009s (~)0.688s151.00x
🌐 RedisNext.js (Turbopack)1.351s (+2.0%)2.010s (~)0.659s151.02x
💻 LocalNext.js (Turbopack)1.391s (~)2.013s (~)0.622s151.05x
💻 LocalExpress1.419s (+1.2%)2.006s (~)0.587s151.07x
💻 LocalNitro1.422s (+5.0% 🔺)2.006s (~)0.584s151.08x
🐘 PostgresNext.js (Turbopack)1.825s (+6.0% 🔺)2.012s (~)0.187s151.38x
🌐 MongoDBNext.js (Turbopack)2.132s (~)3.014s (~)0.882s101.61x
🌐 TursoNext.js (Turbopack)2.210s (~)3.011s (~)0.801s101.67x
🐘 PostgresExpress2.414s (-0.7%)3.013s (~)0.599s101.83x
🐘 PostgresNitro2.425s (-7.9% 🟢)3.014s (~)0.590s101.84x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.896s (~)3.913s (+5.3% 🔺)1.016s81.00x
▲ VercelExpress3.032s (+9.1% 🔺)3.724s (~)0.692s91.05x
▲ VercelNitro3.235s (-3.0%)4.047s (+0.9%)0.812s81.12x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.180s (+3.2%)3.026s (~)0.846s101.00x
💻 LocalExpress2.220s (~)3.170s (+0.7%)0.950s101.02x
💻 LocalNitro2.257s (+12.8% 🔺)3.205s (+33.4% 🔺)0.948s101.04x
🌐 StarterNext.js (Turbopack)2.384s (-3.3%)3.010s (~)0.626s101.09x
🌐 RedisNext.js (Turbopack)2.484s (+4.9%)3.012s (~)0.528s101.14x
🐘 PostgresNext.js (Turbopack)2.633s (+7.0% 🔺)3.013s (~)0.381s101.21x
🐘 PostgresExpress2.941s (-3.4%)3.323s (-7.0% 🟢)0.383s101.35x
🐘 PostgresNitro2.995s (+1.7%)3.358s (+7.8% 🔺)0.362s91.37x
🌐 TursoNext.js (Turbopack)4.665s (-1.7%)5.178s (~)0.513s62.14x
🌐 MongoDBNext.js (Turbopack)4.751s (+1.4%)5.183s (~)0.432s62.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.624s (+11.5% 🔺)4.480s (+25.0% 🔺)0.856s81.00x
▲ VercelExpress3.727s (+13.1% 🔺)4.574s (+18.0% 🔺)0.848s71.03x
▲ VercelNext.js (Turbopack)4.464s (+11.3% 🔺)5.140s (+11.7% 🔺)0.676s71.23x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.327s (-4.3%)2.008s (~)0.682s151.00x
🌐 RedisNext.js (Turbopack)1.364s (+1.6%)2.010s (~)0.646s151.03x
💻 LocalNext.js (Turbopack)1.391s (~)2.012s (~)0.620s151.05x
💻 LocalExpress1.419s (~)2.006s (~)0.588s151.07x
💻 LocalNitro1.443s (+8.4% 🔺)2.006s (~)0.563s151.09x
🐘 PostgresNext.js (Turbopack)1.706s (+2.6%)2.012s (~)0.305s151.29x
🐘 PostgresExpress1.840s (-11.7% 🟢)2.012s (-16.2% 🟢)0.172s151.39x
🐘 PostgresNitro1.851s (+8.6% 🔺)2.079s (+3.4%)0.228s151.40x
🌐 MongoDBNext.js (Turbopack)2.137s (+1.0%)3.015s (~)0.879s101.61x
🌐 TursoNext.js (Turbopack)2.194s (-2.0%)3.011s (~)0.817s101.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.546s (+20.6% 🔺)4.625s (+23.2% 🔺)1.079s71.00x
▲ VercelExpress3.606s (+27.6% 🔺)4.396s (+17.8% 🔺)0.790s71.02x
▲ VercelNitro3.887s (+35.3% 🔺)4.690s (+30.6% 🔺)0.803s71.10x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.110s (-2.6%)2.987s (-3.0%)0.876s111.00x
💻 LocalExpress2.222s (-3.2%)3.181s (-2.0%)0.959s101.05x
💻 LocalNitro2.250s (+7.7% 🔺)3.180s (+15.6% 🔺)0.930s101.07x
🌐 StarterNext.js (Turbopack)2.402s (-2.8%)3.011s (~)0.609s101.14x
🌐 RedisNext.js (Turbopack)2.465s (+4.2%)3.010s (~)0.545s101.17x
🐘 PostgresExpress2.530s (-12.5% 🟢)3.014s (-3.2%)0.484s101.20x
🐘 PostgresNext.js (Turbopack)2.604s (+6.0% 🔺)3.019s (~)0.415s101.23x
🐘 PostgresNitro2.787s (+3.9%)3.216s (+6.5% 🔺)0.429s101.32x
🌐 TursoNext.js (Turbopack)4.697s (-2.3%)5.177s (~)0.480s62.23x
🌐 MongoDBNext.js (Turbopack)4.785s (+1.5%)5.181s (~)0.396s62.27x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.851s (+15.3% 🔺)4.070s (+1.2%)0.219s81.00x
▲ VercelExpress4.557s (+41.1% 🔺)5.061s (+34.9% 🔺)0.504s71.18x
▲ VercelNitro4.662s (+43.7% 🔺)5.321s (+39.7% 🔺)0.660s71.21x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.098s (-24.6% 🟢)1.006s (~)0.000s (+Infinity% 🔺)1.012s (~)0.913s101.00x
💻 LocalNext.js (Turbopack)0.139s (+0.8%)1.003s (~)0.017s (+1.2%)1.028s (~)0.889s101.42x
🌐 RedisNext.js (Turbopack)0.140s (+22.3% 🔺)1.005s (~)0.000s (NaN%)1.014s (~)0.874s101.42x
💻 LocalNitro0.181s (+48.3% 🔺)0.992s (-0.6%)0.015s (-5.0% 🟢)1.021s (~)0.840s101.84x
💻 LocalExpress0.184s (+5.6% 🔺)0.993s (~)0.019s (+28.3% 🔺)1.026s (+0.5%)0.842s101.87x
🌐 TursoNext.js (Turbopack)0.477s (-6.3% 🟢)0.971s (+1.8%)0.000s (~)1.011s (~)0.534s104.86x
🌐 MongoDBNext.js (Turbopack)0.506s (+2.5%)0.946s (-0.5%)0.000s (-100.0% 🟢)1.014s (~)0.508s105.15x
🐘 PostgresNext.js (Turbopack)1.323s (+3.6%)1.899s (+22.6% 🔺)0.000s (-100.0% 🟢)2.020s (+11.0% 🔺)0.698s1013.45x
🐘 PostgresNitro2.187s (+4.7%)2.858s (+1.9%)0.000s (~)3.014s (+3.4%)0.828s1022.24x
🐘 PostgresExpress2.345s (+0.7%)2.697s (-0.6%)0.000s (+Infinity% 🔺)3.014s (~)0.670s1023.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.336s (+12.2% 🔺)3.652s (+10.3% 🔺)0.587s (+16.5% 🔺)4.868s (+13.3% 🔺)1.532s101.00x
▲ VercelExpress3.384s (+16.6% 🔺)3.559s (+11.7% 🔺)0.581s (+16.6% 🔺)4.723s (+13.9% 🔺)1.339s101.01x
▲ VercelNitro3.505s (+18.5% 🔺)3.610s (+15.6% 🔺)0.771s (+14.4% 🔺)5.019s (+18.3% 🔺)1.513s101.05x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)7/8
▲ VercelNext.js (Turbopack)6/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter6/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@socket-security

socket-securityBot commented Jan 13, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​shiki@​3.21.01001007798100

View full report

Comment threadpackages/web-shared/src/api/workflow-server-actions.ts
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment threadpackages/web/src/lib/project-context.tsx
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
},
"devDependencies": {
"@xyflow/react": "12.9.3",
"shiki": "3.21.0",

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@@ -0,0 +1,28 @@
#!/usr/bin/env node

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works similar to genversion but copies the world-manifest.json into the local package, instead of the package version

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment on lines +29 to +30
// Generate TypeScript file with the manifest data
const tsContent = `// AUTO-GENERATED FILE - DO NOT EDIT

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure how to get around this. If at all possible, it would be nice to have the world-manifest be a typescript file inside some package, but I didn't want to change the convention here. @pranaygp

export { parseDurationToDate } from './time.js';

// Client-safe project types and utilities (no Node.js dependencies)
export type {

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up putting quite some cli/web shared code in here. It would be nice to have a o11y-utils package which does all of this, and also does what packages/core/observability.ts does

serverSourceMaps: false,
},
// Transpile workspace packages
transpilePackages: ['@workflow/web-shared', '@workflow/utils', '@workflow/core'],

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually unsure about this - Claude added it 🤔

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Force GitHub README to respect dark mode (function() { var style = document.createElement('style'); style.textContent = ' .markdown-body { color-scheme: dark light; } .markdown-body pre { background: #161b22 !important; } .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; } .markdown-body table th, .markdown-body table td { border-color: #30363d !important; } .markdown-body img { background: #0d1117; } .markdown-body blockquote { border-left-color: #8b949e; } .markdown-body hr { border-color: #30363d; } '; document.head.appendChild(style); })(); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Observability config rewrite: remember projects, allow self-hosting, unify env var handling by VaguelySerious · Pull Request #775 · vercel/workflow · GitHub
Skip to content

Observability config rewrite: remember projects, allow self-hosting, unify env var handling - #775

Closed
VaguelySerious wants to merge 12 commits into
mainfrom
peter/o11y-refactor
Closed

Observability config rewrite: remember projects, allow self-hosting, unify env var handling#775
VaguelySerious wants to merge 12 commits into
mainfrom
peter/o11y-refactor

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Jan 13, 2026

Copy link
Copy Markdown
Member

Probably replaced with #774


This superseeds #626 and #748, and reverts #747 in order to:

  • Allow users to open the web app anywhere, and then select any of their projects, easily swapping between them
  • Provide better debugging for world env vars and config
  • Support self-hosting the app with locked-in UI
  • Cleans up state management and URL data
  • Derives the world state from world-manifest.json. Updating the manifest will now directly update the UI support for worlds.

The dream for this is that you can open your web app once, and easily switch between local/staging/prod envs, or different project/repos) without having to invoke the o11y separately every time.

Not in this PR, but now unblocked:

  • Automatically do vc env pull if vercel credentials expired
  • Scan your machine for workflow projects

Testing

I'm working on e2e tests for this, but in the meantime, I manually validated this PR extensively:

  • Opening web from CLI outside of project
  • Opening web from CLI inside project
  • Installing this PR's tarball into a separate local project and running from there
  • Switching and editing projects between local/remote
  • Opening web to vercel with --localUI
  • Opening web with already running server from elsewhere
  • Opening web in self-hosted mode (WORKFLOW_UI_SELF_HOSTING="1")
  • Opening web when wf is aliased to the workflow local directory (contributor DevEx)

What I didn't test:

  • Opening web to postgres remote instance
    • I remember @pranaygp had a Railway instance for this. Could you test that?

Screenshots

Screenshot 2026-01-13 at 3 17 47 PMScreenshot 2026-01-13 at 3 17 41 PMimage

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Jan 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8a15ced

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 19 packages
NameType
@workflow/web-sharedPatch
@workflow/utilsPatch
@workflow/cliPatch
@workflow/webPatch
@workflow/corePatch
@workflow/errorsPatch
@workflow/world-localPatch
workflowPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/docs-typecheckPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
@workflow/aiPatch
@workflow/astroPatch
@workflow/sveltekitPatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercelBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production374011385
✅ 💻 Local Development34208350
✅ 📦 Local Production34208350
✅ 🐘 Local Postgres34208350
✅ 🪟 Windows350035
❌ 🌍 Community Worlds136160152
Total157116351622

❌ Failed Tests

🌍 Community Worlds (16 failed)

mongodb (1 failed):

  • webhookWorkflow

starter (14 failed):

  • addTenWorkflow
  • addTenWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro3401
✅ example3401
✅ express3401
✅ fastify3401
✅ hono3401
✅ nextjs-turbopack3401
✅ nextjs-webpack3401
✅ nitro3401
✅ nuxt3401
✅ sveltekit3401
✅ vite3401
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack3500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb3410
✅ redis-dev300
✅ redis3500
✅ starter-dev300
❌ starter21140
✅ turso-dev300
❌ turso3410

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.032s (-20.9% 🟢)1.014s (~)0.982s101.00x
💻 LocalNext.js (Turbopack)0.041s (+5.2% 🔺)1.014s (~)0.974s101.28x
🌐 RedisNext.js (Turbopack)0.041s (+16.5% 🔺)1.018s (~)0.977s101.29x
💻 LocalNitro0.044s (+37.1% 🔺)1.007s (~)0.963s101.37x
💻 LocalExpress0.045s (+5.6% 🔺)1.007s (~)0.962s101.42x
🌐 TursoNext.js (Turbopack)0.092s (-12.0% 🟢)1.013s (~)0.920s102.90x
🌐 MongoDBNext.js (Turbopack)0.100s (+117.9% 🔺)1.016s (~)0.917s103.13x
🐘 PostgresNext.js (Turbopack)0.116s (-55.6% 🟢)1.019s (~)0.903s103.66x
🐘 PostgresNitro0.223s (-5.2% 🟢)1.018s (-0.8%)0.795s107.01x
🐘 PostgresExpress0.332s (+14.0% 🔺)1.014s (~)0.683s1010.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.654s (-17.3% 🟢)1.605s (-5.4% 🟢)0.951s101.00x
▲ VercelExpress0.769s (+32.5% 🔺)1.460s (-1.0%)0.691s101.18x
▲ VercelNitro0.806s (+29.7% 🔺)1.478s (+3.6%)0.673s101.23x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.076s (-1.0%)2.010s (~)0.933s101.00x
💻 LocalNext.js (Turbopack)1.101s (~)2.012s (~)0.911s101.02x
🌐 RedisNext.js (Turbopack)1.101s (+2.2%)2.012s (~)0.910s101.02x
💻 LocalNitro1.114s (+3.2%)2.007s (~)0.893s101.03x
💻 LocalExpress1.119s (+0.6%)2.007s (~)0.888s101.04x
🌐 MongoDBNext.js (Turbopack)1.300s (~)2.014s (~)0.715s101.21x
🌐 TursoNext.js (Turbopack)1.319s (+1.5%)2.011s (~)0.692s101.23x
🐘 PostgresNext.js (Turbopack)1.918s (+2.4%)2.016s (~)0.098s101.78x
🐘 PostgresExpress2.182s (+2.7%)3.015s (~)0.833s102.03x
🐘 PostgresNitro2.331s (-3.5%)3.015s (~)0.684s102.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.867s (+2.5%)3.801s (+1.8%)0.934s101.00x
▲ VercelNitro2.959s (+11.0% 🔺)3.660s (-0.8%)0.702s101.03x
▲ VercelExpress2.983s (+3.8%)3.740s (-1.4%)0.756s101.04x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.505s (-1.0%)11.012s (~)0.507s51.00x
💻 LocalNext.js (Turbopack)10.674s (~)11.018s (~)0.345s51.02x
🌐 RedisNext.js (Turbopack)10.698s (+1.3%)11.019s (~)0.321s51.02x
💻 LocalNitro10.798s (+2.4%)11.011s (~)0.213s51.03x
💻 LocalExpress10.852s (+0.5%)11.017s (~)0.165s51.03x
🌐 TursoNext.js (Turbopack)12.183s (~)13.022s (~)0.838s51.16x
🌐 MongoDBNext.js (Turbopack)12.261s (+2.8%)13.027s (+8.3% 🔺)0.767s51.17x
🐘 PostgresNext.js (Turbopack)15.158s (+1.9%)15.839s (+1.3%)0.681s51.44x
🐘 PostgresNitro20.388s (~)21.039s (~)0.651s51.94x
🐘 PostgresExpress20.426s (~)21.030s (~)0.604s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express23.477s (+2.5%)24.595s (+3.8%)1.118s51.00x
▲ VercelNitro23.497s (+2.2%)24.143s (+2.2%)0.647s51.00x
▲ VercelNext.js (Turbopack)23.887s (+6.8% 🔺)24.729s (+7.3% 🔺)0.842s51.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.321s (-2.6%)2.009s (~)0.688s151.00x
🌐 RedisNext.js (Turbopack)1.351s (+2.0%)2.010s (~)0.659s151.02x
💻 LocalNext.js (Turbopack)1.391s (~)2.013s (~)0.622s151.05x
💻 LocalExpress1.419s (+1.2%)2.006s (~)0.587s151.07x
💻 LocalNitro1.422s (+5.0% 🔺)2.006s (~)0.584s151.08x
🐘 PostgresNext.js (Turbopack)1.825s (+6.0% 🔺)2.012s (~)0.187s151.38x
🌐 MongoDBNext.js (Turbopack)2.132s (~)3.014s (~)0.882s101.61x
🌐 TursoNext.js (Turbopack)2.210s (~)3.011s (~)0.801s101.67x
🐘 PostgresExpress2.414s (-0.7%)3.013s (~)0.599s101.83x
🐘 PostgresNitro2.425s (-7.9% 🟢)3.014s (~)0.590s101.84x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.896s (~)3.913s (+5.3% 🔺)1.016s81.00x
▲ VercelExpress3.032s (+9.1% 🔺)3.724s (~)0.692s91.05x
▲ VercelNitro3.235s (-3.0%)4.047s (+0.9%)0.812s81.12x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.180s (+3.2%)3.026s (~)0.846s101.00x
💻 LocalExpress2.220s (~)3.170s (+0.7%)0.950s101.02x
💻 LocalNitro2.257s (+12.8% 🔺)3.205s (+33.4% 🔺)0.948s101.04x
🌐 StarterNext.js (Turbopack)2.384s (-3.3%)3.010s (~)0.626s101.09x
🌐 RedisNext.js (Turbopack)2.484s (+4.9%)3.012s (~)0.528s101.14x
🐘 PostgresNext.js (Turbopack)2.633s (+7.0% 🔺)3.013s (~)0.381s101.21x
🐘 PostgresExpress2.941s (-3.4%)3.323s (-7.0% 🟢)0.383s101.35x
🐘 PostgresNitro2.995s (+1.7%)3.358s (+7.8% 🔺)0.362s91.37x
🌐 TursoNext.js (Turbopack)4.665s (-1.7%)5.178s (~)0.513s62.14x
🌐 MongoDBNext.js (Turbopack)4.751s (+1.4%)5.183s (~)0.432s62.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.624s (+11.5% 🔺)4.480s (+25.0% 🔺)0.856s81.00x
▲ VercelExpress3.727s (+13.1% 🔺)4.574s (+18.0% 🔺)0.848s71.03x
▲ VercelNext.js (Turbopack)4.464s (+11.3% 🔺)5.140s (+11.7% 🔺)0.676s71.23x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.327s (-4.3%)2.008s (~)0.682s151.00x
🌐 RedisNext.js (Turbopack)1.364s (+1.6%)2.010s (~)0.646s151.03x
💻 LocalNext.js (Turbopack)1.391s (~)2.012s (~)0.620s151.05x
💻 LocalExpress1.419s (~)2.006s (~)0.588s151.07x
💻 LocalNitro1.443s (+8.4% 🔺)2.006s (~)0.563s151.09x
🐘 PostgresNext.js (Turbopack)1.706s (+2.6%)2.012s (~)0.305s151.29x
🐘 PostgresExpress1.840s (-11.7% 🟢)2.012s (-16.2% 🟢)0.172s151.39x
🐘 PostgresNitro1.851s (+8.6% 🔺)2.079s (+3.4%)0.228s151.40x
🌐 MongoDBNext.js (Turbopack)2.137s (+1.0%)3.015s (~)0.879s101.61x
🌐 TursoNext.js (Turbopack)2.194s (-2.0%)3.011s (~)0.817s101.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.546s (+20.6% 🔺)4.625s (+23.2% 🔺)1.079s71.00x
▲ VercelExpress3.606s (+27.6% 🔺)4.396s (+17.8% 🔺)0.790s71.02x
▲ VercelNitro3.887s (+35.3% 🔺)4.690s (+30.6% 🔺)0.803s71.10x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.110s (-2.6%)2.987s (-3.0%)0.876s111.00x
💻 LocalExpress2.222s (-3.2%)3.181s (-2.0%)0.959s101.05x
💻 LocalNitro2.250s (+7.7% 🔺)3.180s (+15.6% 🔺)0.930s101.07x
🌐 StarterNext.js (Turbopack)2.402s (-2.8%)3.011s (~)0.609s101.14x
🌐 RedisNext.js (Turbopack)2.465s (+4.2%)3.010s (~)0.545s101.17x
🐘 PostgresExpress2.530s (-12.5% 🟢)3.014s (-3.2%)0.484s101.20x
🐘 PostgresNext.js (Turbopack)2.604s (+6.0% 🔺)3.019s (~)0.415s101.23x
🐘 PostgresNitro2.787s (+3.9%)3.216s (+6.5% 🔺)0.429s101.32x
🌐 TursoNext.js (Turbopack)4.697s (-2.3%)5.177s (~)0.480s62.23x
🌐 MongoDBNext.js (Turbopack)4.785s (+1.5%)5.181s (~)0.396s62.27x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.851s (+15.3% 🔺)4.070s (+1.2%)0.219s81.00x
▲ VercelExpress4.557s (+41.1% 🔺)5.061s (+34.9% 🔺)0.504s71.18x
▲ VercelNitro4.662s (+43.7% 🔺)5.321s (+39.7% 🔺)0.660s71.21x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.098s (-24.6% 🟢)1.006s (~)0.000s (+Infinity% 🔺)1.012s (~)0.913s101.00x
💻 LocalNext.js (Turbopack)0.139s (+0.8%)1.003s (~)0.017s (+1.2%)1.028s (~)0.889s101.42x
🌐 RedisNext.js (Turbopack)0.140s (+22.3% 🔺)1.005s (~)0.000s (NaN%)1.014s (~)0.874s101.42x
💻 LocalNitro0.181s (+48.3% 🔺)0.992s (-0.6%)0.015s (-5.0% 🟢)1.021s (~)0.840s101.84x
💻 LocalExpress0.184s (+5.6% 🔺)0.993s (~)0.019s (+28.3% 🔺)1.026s (+0.5%)0.842s101.87x
🌐 TursoNext.js (Turbopack)0.477s (-6.3% 🟢)0.971s (+1.8%)0.000s (~)1.011s (~)0.534s104.86x
🌐 MongoDBNext.js (Turbopack)0.506s (+2.5%)0.946s (-0.5%)0.000s (-100.0% 🟢)1.014s (~)0.508s105.15x
🐘 PostgresNext.js (Turbopack)1.323s (+3.6%)1.899s (+22.6% 🔺)0.000s (-100.0% 🟢)2.020s (+11.0% 🔺)0.698s1013.45x
🐘 PostgresNitro2.187s (+4.7%)2.858s (+1.9%)0.000s (~)3.014s (+3.4%)0.828s1022.24x
🐘 PostgresExpress2.345s (+0.7%)2.697s (-0.6%)0.000s (+Infinity% 🔺)3.014s (~)0.670s1023.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.336s (+12.2% 🔺)3.652s (+10.3% 🔺)0.587s (+16.5% 🔺)4.868s (+13.3% 🔺)1.532s101.00x
▲ VercelExpress3.384s (+16.6% 🔺)3.559s (+11.7% 🔺)0.581s (+16.6% 🔺)4.723s (+13.9% 🔺)1.339s101.01x
▲ VercelNitro3.505s (+18.5% 🔺)3.610s (+15.6% 🔺)0.771s (+14.4% 🔺)5.019s (+18.3% 🔺)1.513s101.05x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)7/8
▲ VercelNext.js (Turbopack)6/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter6/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@socket-security

socket-securityBot commented Jan 13, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​shiki@​3.21.01001007798100

View full report

Comment threadpackages/web-shared/src/api/workflow-server-actions.ts
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment threadpackages/web/src/lib/project-context.tsx
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
},
"devDependencies": {
"@xyflow/react": "12.9.3",
"shiki": "3.21.0",

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@@ -0,0 +1,28 @@
#!/usr/bin/env node

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works similar to genversion but copies the world-manifest.json into the local package, instead of the package version

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment on lines +29 to +30
// Generate TypeScript file with the manifest data
const tsContent = `// AUTO-GENERATED FILE - DO NOT EDIT

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure how to get around this. If at all possible, it would be nice to have the world-manifest be a typescript file inside some package, but I didn't want to change the convention here. @pranaygp

export { parseDurationToDate } from './time.js';

// Client-safe project types and utilities (no Node.js dependencies)
export type {

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up putting quite some cli/web shared code in here. It would be nice to have a o11y-utils package which does all of this, and also does what packages/core/observability.ts does

serverSourceMaps: false,
},
// Transpile workspace packages
transpilePackages: ['@workflow/web-shared', '@workflow/utils', '@workflow/core'],

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually unsure about this - Claude added it 🤔

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Highlight search terms from Google/DuckDuckGo/Bing referrer (function() { var ref = document.referrer; var terms = []; if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) { var url = new URL(ref); var q = url.searchParams.get('q') || url.searchParams.get('p'); if (q) { terms = q.split(/\s+/).filter(function(t) { return t.length > 2; }); } } if (terms.length === 0) return; var style = document.createElement('style'); style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }'; document.head.appendChild(style); function highlight(node) { if (node.nodeType === 3) { // text node var text = node.textContent; var found = false; terms.forEach(function(term) { var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\]\\]/g, '\\') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Observability config rewrite: remember projects, allow self-hosting, unify env var handling by VaguelySerious · Pull Request #775 · vercel/workflow · GitHub
Skip to content

Observability config rewrite: remember projects, allow self-hosting, unify env var handling - #775

Closed
VaguelySerious wants to merge 12 commits into
mainfrom
peter/o11y-refactor
Closed

Observability config rewrite: remember projects, allow self-hosting, unify env var handling#775
VaguelySerious wants to merge 12 commits into
mainfrom
peter/o11y-refactor

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Jan 13, 2026

Copy link
Copy Markdown
Member

Probably replaced with #774


This superseeds #626 and #748, and reverts #747 in order to:

  • Allow users to open the web app anywhere, and then select any of their projects, easily swapping between them
  • Provide better debugging for world env vars and config
  • Support self-hosting the app with locked-in UI
  • Cleans up state management and URL data
  • Derives the world state from world-manifest.json. Updating the manifest will now directly update the UI support for worlds.

The dream for this is that you can open your web app once, and easily switch between local/staging/prod envs, or different project/repos) without having to invoke the o11y separately every time.

Not in this PR, but now unblocked:

  • Automatically do vc env pull if vercel credentials expired
  • Scan your machine for workflow projects

Testing

I'm working on e2e tests for this, but in the meantime, I manually validated this PR extensively:

  • Opening web from CLI outside of project
  • Opening web from CLI inside project
  • Installing this PR's tarball into a separate local project and running from there
  • Switching and editing projects between local/remote
  • Opening web to vercel with --localUI
  • Opening web with already running server from elsewhere
  • Opening web in self-hosted mode (WORKFLOW_UI_SELF_HOSTING="1")
  • Opening web when wf is aliased to the workflow local directory (contributor DevEx)

What I didn't test:

  • Opening web to postgres remote instance
    • I remember @pranaygp had a Railway instance for this. Could you test that?

Screenshots

Screenshot 2026-01-13 at 3 17 47 PMScreenshot 2026-01-13 at 3 17 41 PMimage

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Jan 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8a15ced

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 19 packages
NameType
@workflow/web-sharedPatch
@workflow/utilsPatch
@workflow/cliPatch
@workflow/webPatch
@workflow/corePatch
@workflow/errorsPatch
@workflow/world-localPatch
workflowPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/docs-typecheckPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
@workflow/aiPatch
@workflow/astroPatch
@workflow/sveltekitPatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercelBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production374011385
✅ 💻 Local Development34208350
✅ 📦 Local Production34208350
✅ 🐘 Local Postgres34208350
✅ 🪟 Windows350035
❌ 🌍 Community Worlds136160152
Total157116351622

❌ Failed Tests

🌍 Community Worlds (16 failed)

mongodb (1 failed):

  • webhookWorkflow

starter (14 failed):

  • addTenWorkflow
  • addTenWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro3401
✅ example3401
✅ express3401
✅ fastify3401
✅ hono3401
✅ nextjs-turbopack3401
✅ nextjs-webpack3401
✅ nitro3401
✅ nuxt3401
✅ sveltekit3401
✅ vite3401
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack3500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb3410
✅ redis-dev300
✅ redis3500
✅ starter-dev300
❌ starter21140
✅ turso-dev300
❌ turso3410

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.032s (-20.9% 🟢)1.014s (~)0.982s101.00x
💻 LocalNext.js (Turbopack)0.041s (+5.2% 🔺)1.014s (~)0.974s101.28x
🌐 RedisNext.js (Turbopack)0.041s (+16.5% 🔺)1.018s (~)0.977s101.29x
💻 LocalNitro0.044s (+37.1% 🔺)1.007s (~)0.963s101.37x
💻 LocalExpress0.045s (+5.6% 🔺)1.007s (~)0.962s101.42x
🌐 TursoNext.js (Turbopack)0.092s (-12.0% 🟢)1.013s (~)0.920s102.90x
🌐 MongoDBNext.js (Turbopack)0.100s (+117.9% 🔺)1.016s (~)0.917s103.13x
🐘 PostgresNext.js (Turbopack)0.116s (-55.6% 🟢)1.019s (~)0.903s103.66x
🐘 PostgresNitro0.223s (-5.2% 🟢)1.018s (-0.8%)0.795s107.01x
🐘 PostgresExpress0.332s (+14.0% 🔺)1.014s (~)0.683s1010.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.654s (-17.3% 🟢)1.605s (-5.4% 🟢)0.951s101.00x
▲ VercelExpress0.769s (+32.5% 🔺)1.460s (-1.0%)0.691s101.18x
▲ VercelNitro0.806s (+29.7% 🔺)1.478s (+3.6%)0.673s101.23x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.076s (-1.0%)2.010s (~)0.933s101.00x
💻 LocalNext.js (Turbopack)1.101s (~)2.012s (~)0.911s101.02x
🌐 RedisNext.js (Turbopack)1.101s (+2.2%)2.012s (~)0.910s101.02x
💻 LocalNitro1.114s (+3.2%)2.007s (~)0.893s101.03x
💻 LocalExpress1.119s (+0.6%)2.007s (~)0.888s101.04x
🌐 MongoDBNext.js (Turbopack)1.300s (~)2.014s (~)0.715s101.21x
🌐 TursoNext.js (Turbopack)1.319s (+1.5%)2.011s (~)0.692s101.23x
🐘 PostgresNext.js (Turbopack)1.918s (+2.4%)2.016s (~)0.098s101.78x
🐘 PostgresExpress2.182s (+2.7%)3.015s (~)0.833s102.03x
🐘 PostgresNitro2.331s (-3.5%)3.015s (~)0.684s102.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.867s (+2.5%)3.801s (+1.8%)0.934s101.00x
▲ VercelNitro2.959s (+11.0% 🔺)3.660s (-0.8%)0.702s101.03x
▲ VercelExpress2.983s (+3.8%)3.740s (-1.4%)0.756s101.04x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.505s (-1.0%)11.012s (~)0.507s51.00x
💻 LocalNext.js (Turbopack)10.674s (~)11.018s (~)0.345s51.02x
🌐 RedisNext.js (Turbopack)10.698s (+1.3%)11.019s (~)0.321s51.02x
💻 LocalNitro10.798s (+2.4%)11.011s (~)0.213s51.03x
💻 LocalExpress10.852s (+0.5%)11.017s (~)0.165s51.03x
🌐 TursoNext.js (Turbopack)12.183s (~)13.022s (~)0.838s51.16x
🌐 MongoDBNext.js (Turbopack)12.261s (+2.8%)13.027s (+8.3% 🔺)0.767s51.17x
🐘 PostgresNext.js (Turbopack)15.158s (+1.9%)15.839s (+1.3%)0.681s51.44x
🐘 PostgresNitro20.388s (~)21.039s (~)0.651s51.94x
🐘 PostgresExpress20.426s (~)21.030s (~)0.604s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express23.477s (+2.5%)24.595s (+3.8%)1.118s51.00x
▲ VercelNitro23.497s (+2.2%)24.143s (+2.2%)0.647s51.00x
▲ VercelNext.js (Turbopack)23.887s (+6.8% 🔺)24.729s (+7.3% 🔺)0.842s51.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.321s (-2.6%)2.009s (~)0.688s151.00x
🌐 RedisNext.js (Turbopack)1.351s (+2.0%)2.010s (~)0.659s151.02x
💻 LocalNext.js (Turbopack)1.391s (~)2.013s (~)0.622s151.05x
💻 LocalExpress1.419s (+1.2%)2.006s (~)0.587s151.07x
💻 LocalNitro1.422s (+5.0% 🔺)2.006s (~)0.584s151.08x
🐘 PostgresNext.js (Turbopack)1.825s (+6.0% 🔺)2.012s (~)0.187s151.38x
🌐 MongoDBNext.js (Turbopack)2.132s (~)3.014s (~)0.882s101.61x
🌐 TursoNext.js (Turbopack)2.210s (~)3.011s (~)0.801s101.67x
🐘 PostgresExpress2.414s (-0.7%)3.013s (~)0.599s101.83x
🐘 PostgresNitro2.425s (-7.9% 🟢)3.014s (~)0.590s101.84x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.896s (~)3.913s (+5.3% 🔺)1.016s81.00x
▲ VercelExpress3.032s (+9.1% 🔺)3.724s (~)0.692s91.05x
▲ VercelNitro3.235s (-3.0%)4.047s (+0.9%)0.812s81.12x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.180s (+3.2%)3.026s (~)0.846s101.00x
💻 LocalExpress2.220s (~)3.170s (+0.7%)0.950s101.02x
💻 LocalNitro2.257s (+12.8% 🔺)3.205s (+33.4% 🔺)0.948s101.04x
🌐 StarterNext.js (Turbopack)2.384s (-3.3%)3.010s (~)0.626s101.09x
🌐 RedisNext.js (Turbopack)2.484s (+4.9%)3.012s (~)0.528s101.14x
🐘 PostgresNext.js (Turbopack)2.633s (+7.0% 🔺)3.013s (~)0.381s101.21x
🐘 PostgresExpress2.941s (-3.4%)3.323s (-7.0% 🟢)0.383s101.35x
🐘 PostgresNitro2.995s (+1.7%)3.358s (+7.8% 🔺)0.362s91.37x
🌐 TursoNext.js (Turbopack)4.665s (-1.7%)5.178s (~)0.513s62.14x
🌐 MongoDBNext.js (Turbopack)4.751s (+1.4%)5.183s (~)0.432s62.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.624s (+11.5% 🔺)4.480s (+25.0% 🔺)0.856s81.00x
▲ VercelExpress3.727s (+13.1% 🔺)4.574s (+18.0% 🔺)0.848s71.03x
▲ VercelNext.js (Turbopack)4.464s (+11.3% 🔺)5.140s (+11.7% 🔺)0.676s71.23x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.327s (-4.3%)2.008s (~)0.682s151.00x
🌐 RedisNext.js (Turbopack)1.364s (+1.6%)2.010s (~)0.646s151.03x
💻 LocalNext.js (Turbopack)1.391s (~)2.012s (~)0.620s151.05x
💻 LocalExpress1.419s (~)2.006s (~)0.588s151.07x
💻 LocalNitro1.443s (+8.4% 🔺)2.006s (~)0.563s151.09x
🐘 PostgresNext.js (Turbopack)1.706s (+2.6%)2.012s (~)0.305s151.29x
🐘 PostgresExpress1.840s (-11.7% 🟢)2.012s (-16.2% 🟢)0.172s151.39x
🐘 PostgresNitro1.851s (+8.6% 🔺)2.079s (+3.4%)0.228s151.40x
🌐 MongoDBNext.js (Turbopack)2.137s (+1.0%)3.015s (~)0.879s101.61x
🌐 TursoNext.js (Turbopack)2.194s (-2.0%)3.011s (~)0.817s101.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.546s (+20.6% 🔺)4.625s (+23.2% 🔺)1.079s71.00x
▲ VercelExpress3.606s (+27.6% 🔺)4.396s (+17.8% 🔺)0.790s71.02x
▲ VercelNitro3.887s (+35.3% 🔺)4.690s (+30.6% 🔺)0.803s71.10x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.110s (-2.6%)2.987s (-3.0%)0.876s111.00x
💻 LocalExpress2.222s (-3.2%)3.181s (-2.0%)0.959s101.05x
💻 LocalNitro2.250s (+7.7% 🔺)3.180s (+15.6% 🔺)0.930s101.07x
🌐 StarterNext.js (Turbopack)2.402s (-2.8%)3.011s (~)0.609s101.14x
🌐 RedisNext.js (Turbopack)2.465s (+4.2%)3.010s (~)0.545s101.17x
🐘 PostgresExpress2.530s (-12.5% 🟢)3.014s (-3.2%)0.484s101.20x
🐘 PostgresNext.js (Turbopack)2.604s (+6.0% 🔺)3.019s (~)0.415s101.23x
🐘 PostgresNitro2.787s (+3.9%)3.216s (+6.5% 🔺)0.429s101.32x
🌐 TursoNext.js (Turbopack)4.697s (-2.3%)5.177s (~)0.480s62.23x
🌐 MongoDBNext.js (Turbopack)4.785s (+1.5%)5.181s (~)0.396s62.27x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.851s (+15.3% 🔺)4.070s (+1.2%)0.219s81.00x
▲ VercelExpress4.557s (+41.1% 🔺)5.061s (+34.9% 🔺)0.504s71.18x
▲ VercelNitro4.662s (+43.7% 🔺)5.321s (+39.7% 🔺)0.660s71.21x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.098s (-24.6% 🟢)1.006s (~)0.000s (+Infinity% 🔺)1.012s (~)0.913s101.00x
💻 LocalNext.js (Turbopack)0.139s (+0.8%)1.003s (~)0.017s (+1.2%)1.028s (~)0.889s101.42x
🌐 RedisNext.js (Turbopack)0.140s (+22.3% 🔺)1.005s (~)0.000s (NaN%)1.014s (~)0.874s101.42x
💻 LocalNitro0.181s (+48.3% 🔺)0.992s (-0.6%)0.015s (-5.0% 🟢)1.021s (~)0.840s101.84x
💻 LocalExpress0.184s (+5.6% 🔺)0.993s (~)0.019s (+28.3% 🔺)1.026s (+0.5%)0.842s101.87x
🌐 TursoNext.js (Turbopack)0.477s (-6.3% 🟢)0.971s (+1.8%)0.000s (~)1.011s (~)0.534s104.86x
🌐 MongoDBNext.js (Turbopack)0.506s (+2.5%)0.946s (-0.5%)0.000s (-100.0% 🟢)1.014s (~)0.508s105.15x
🐘 PostgresNext.js (Turbopack)1.323s (+3.6%)1.899s (+22.6% 🔺)0.000s (-100.0% 🟢)2.020s (+11.0% 🔺)0.698s1013.45x
🐘 PostgresNitro2.187s (+4.7%)2.858s (+1.9%)0.000s (~)3.014s (+3.4%)0.828s1022.24x
🐘 PostgresExpress2.345s (+0.7%)2.697s (-0.6%)0.000s (+Infinity% 🔺)3.014s (~)0.670s1023.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.336s (+12.2% 🔺)3.652s (+10.3% 🔺)0.587s (+16.5% 🔺)4.868s (+13.3% 🔺)1.532s101.00x
▲ VercelExpress3.384s (+16.6% 🔺)3.559s (+11.7% 🔺)0.581s (+16.6% 🔺)4.723s (+13.9% 🔺)1.339s101.01x
▲ VercelNitro3.505s (+18.5% 🔺)3.610s (+15.6% 🔺)0.771s (+14.4% 🔺)5.019s (+18.3% 🔺)1.513s101.05x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)7/8
▲ VercelNext.js (Turbopack)6/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter6/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@socket-security

socket-securityBot commented Jan 13, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​shiki@​3.21.01001007798100

View full report

Comment threadpackages/web-shared/src/api/workflow-server-actions.ts
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment threadpackages/web/src/lib/project-context.tsx
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
},
"devDependencies": {
"@xyflow/react": "12.9.3",
"shiki": "3.21.0",

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@@ -0,0 +1,28 @@
#!/usr/bin/env node

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works similar to genversion but copies the world-manifest.json into the local package, instead of the package version

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment on lines +29 to +30
// Generate TypeScript file with the manifest data
const tsContent = `// AUTO-GENERATED FILE - DO NOT EDIT

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure how to get around this. If at all possible, it would be nice to have the world-manifest be a typescript file inside some package, but I didn't want to change the convention here. @pranaygp

export { parseDurationToDate } from './time.js';

// Client-safe project types and utilities (no Node.js dependencies)
export type {

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up putting quite some cli/web shared code in here. It would be nice to have a o11y-utils package which does all of this, and also does what packages/core/observability.ts does

serverSourceMaps: false,
},
// Transpile workspace packages
transpilePackages: ['@workflow/web-shared', '@workflow/utils', '@workflow/core'],

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually unsure about this - Claude added it 🤔

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ' Observability config rewrite: remember projects, allow self-hosting, unify env var handling by VaguelySerious · Pull Request #775 · vercel/workflow · GitHub
Skip to content

Observability config rewrite: remember projects, allow self-hosting, unify env var handling - #775

Closed
VaguelySerious wants to merge 12 commits into
mainfrom
peter/o11y-refactor
Closed

Observability config rewrite: remember projects, allow self-hosting, unify env var handling#775
VaguelySerious wants to merge 12 commits into
mainfrom
peter/o11y-refactor

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Jan 13, 2026

Copy link
Copy Markdown
Member

Probably replaced with #774


This superseeds #626 and #748, and reverts #747 in order to:

  • Allow users to open the web app anywhere, and then select any of their projects, easily swapping between them
  • Provide better debugging for world env vars and config
  • Support self-hosting the app with locked-in UI
  • Cleans up state management and URL data
  • Derives the world state from world-manifest.json. Updating the manifest will now directly update the UI support for worlds.

The dream for this is that you can open your web app once, and easily switch between local/staging/prod envs, or different project/repos) without having to invoke the o11y separately every time.

Not in this PR, but now unblocked:

  • Automatically do vc env pull if vercel credentials expired
  • Scan your machine for workflow projects

Testing

I'm working on e2e tests for this, but in the meantime, I manually validated this PR extensively:

  • Opening web from CLI outside of project
  • Opening web from CLI inside project
  • Installing this PR's tarball into a separate local project and running from there
  • Switching and editing projects between local/remote
  • Opening web to vercel with --localUI
  • Opening web with already running server from elsewhere
  • Opening web in self-hosted mode (WORKFLOW_UI_SELF_HOSTING="1")
  • Opening web when wf is aliased to the workflow local directory (contributor DevEx)

What I didn't test:

  • Opening web to postgres remote instance
    • I remember @pranaygp had a Railway instance for this. Could you test that?

Screenshots

Screenshot 2026-01-13 at 3 17 47 PMScreenshot 2026-01-13 at 3 17 41 PMimage

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Jan 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8a15ced

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 19 packages
NameType
@workflow/web-sharedPatch
@workflow/utilsPatch
@workflow/cliPatch
@workflow/webPatch
@workflow/corePatch
@workflow/errorsPatch
@workflow/world-localPatch
workflowPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/docs-typecheckPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
@workflow/aiPatch
@workflow/astroPatch
@workflow/sveltekitPatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercelBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production374011385
✅ 💻 Local Development34208350
✅ 📦 Local Production34208350
✅ 🐘 Local Postgres34208350
✅ 🪟 Windows350035
❌ 🌍 Community Worlds136160152
Total157116351622

❌ Failed Tests

🌍 Community Worlds (16 failed)

mongodb (1 failed):

  • webhookWorkflow

starter (14 failed):

  • addTenWorkflow
  • addTenWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro3401
✅ example3401
✅ express3401
✅ fastify3401
✅ hono3401
✅ nextjs-turbopack3401
✅ nextjs-webpack3401
✅ nitro3401
✅ nuxt3401
✅ sveltekit3401
✅ vite3401
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack3500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb3410
✅ redis-dev300
✅ redis3500
✅ starter-dev300
❌ starter21140
✅ turso-dev300
❌ turso3410

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.032s (-20.9% 🟢)1.014s (~)0.982s101.00x
💻 LocalNext.js (Turbopack)0.041s (+5.2% 🔺)1.014s (~)0.974s101.28x
🌐 RedisNext.js (Turbopack)0.041s (+16.5% 🔺)1.018s (~)0.977s101.29x
💻 LocalNitro0.044s (+37.1% 🔺)1.007s (~)0.963s101.37x
💻 LocalExpress0.045s (+5.6% 🔺)1.007s (~)0.962s101.42x
🌐 TursoNext.js (Turbopack)0.092s (-12.0% 🟢)1.013s (~)0.920s102.90x
🌐 MongoDBNext.js (Turbopack)0.100s (+117.9% 🔺)1.016s (~)0.917s103.13x
🐘 PostgresNext.js (Turbopack)0.116s (-55.6% 🟢)1.019s (~)0.903s103.66x
🐘 PostgresNitro0.223s (-5.2% 🟢)1.018s (-0.8%)0.795s107.01x
🐘 PostgresExpress0.332s (+14.0% 🔺)1.014s (~)0.683s1010.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.654s (-17.3% 🟢)1.605s (-5.4% 🟢)0.951s101.00x
▲ VercelExpress0.769s (+32.5% 🔺)1.460s (-1.0%)0.691s101.18x
▲ VercelNitro0.806s (+29.7% 🔺)1.478s (+3.6%)0.673s101.23x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.076s (-1.0%)2.010s (~)0.933s101.00x
💻 LocalNext.js (Turbopack)1.101s (~)2.012s (~)0.911s101.02x
🌐 RedisNext.js (Turbopack)1.101s (+2.2%)2.012s (~)0.910s101.02x
💻 LocalNitro1.114s (+3.2%)2.007s (~)0.893s101.03x
💻 LocalExpress1.119s (+0.6%)2.007s (~)0.888s101.04x
🌐 MongoDBNext.js (Turbopack)1.300s (~)2.014s (~)0.715s101.21x
🌐 TursoNext.js (Turbopack)1.319s (+1.5%)2.011s (~)0.692s101.23x
🐘 PostgresNext.js (Turbopack)1.918s (+2.4%)2.016s (~)0.098s101.78x
🐘 PostgresExpress2.182s (+2.7%)3.015s (~)0.833s102.03x
🐘 PostgresNitro2.331s (-3.5%)3.015s (~)0.684s102.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.867s (+2.5%)3.801s (+1.8%)0.934s101.00x
▲ VercelNitro2.959s (+11.0% 🔺)3.660s (-0.8%)0.702s101.03x
▲ VercelExpress2.983s (+3.8%)3.740s (-1.4%)0.756s101.04x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.505s (-1.0%)11.012s (~)0.507s51.00x
💻 LocalNext.js (Turbopack)10.674s (~)11.018s (~)0.345s51.02x
🌐 RedisNext.js (Turbopack)10.698s (+1.3%)11.019s (~)0.321s51.02x
💻 LocalNitro10.798s (+2.4%)11.011s (~)0.213s51.03x
💻 LocalExpress10.852s (+0.5%)11.017s (~)0.165s51.03x
🌐 TursoNext.js (Turbopack)12.183s (~)13.022s (~)0.838s51.16x
🌐 MongoDBNext.js (Turbopack)12.261s (+2.8%)13.027s (+8.3% 🔺)0.767s51.17x
🐘 PostgresNext.js (Turbopack)15.158s (+1.9%)15.839s (+1.3%)0.681s51.44x
🐘 PostgresNitro20.388s (~)21.039s (~)0.651s51.94x
🐘 PostgresExpress20.426s (~)21.030s (~)0.604s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express23.477s (+2.5%)24.595s (+3.8%)1.118s51.00x
▲ VercelNitro23.497s (+2.2%)24.143s (+2.2%)0.647s51.00x
▲ VercelNext.js (Turbopack)23.887s (+6.8% 🔺)24.729s (+7.3% 🔺)0.842s51.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.321s (-2.6%)2.009s (~)0.688s151.00x
🌐 RedisNext.js (Turbopack)1.351s (+2.0%)2.010s (~)0.659s151.02x
💻 LocalNext.js (Turbopack)1.391s (~)2.013s (~)0.622s151.05x
💻 LocalExpress1.419s (+1.2%)2.006s (~)0.587s151.07x
💻 LocalNitro1.422s (+5.0% 🔺)2.006s (~)0.584s151.08x
🐘 PostgresNext.js (Turbopack)1.825s (+6.0% 🔺)2.012s (~)0.187s151.38x
🌐 MongoDBNext.js (Turbopack)2.132s (~)3.014s (~)0.882s101.61x
🌐 TursoNext.js (Turbopack)2.210s (~)3.011s (~)0.801s101.67x
🐘 PostgresExpress2.414s (-0.7%)3.013s (~)0.599s101.83x
🐘 PostgresNitro2.425s (-7.9% 🟢)3.014s (~)0.590s101.84x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.896s (~)3.913s (+5.3% 🔺)1.016s81.00x
▲ VercelExpress3.032s (+9.1% 🔺)3.724s (~)0.692s91.05x
▲ VercelNitro3.235s (-3.0%)4.047s (+0.9%)0.812s81.12x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.180s (+3.2%)3.026s (~)0.846s101.00x
💻 LocalExpress2.220s (~)3.170s (+0.7%)0.950s101.02x
💻 LocalNitro2.257s (+12.8% 🔺)3.205s (+33.4% 🔺)0.948s101.04x
🌐 StarterNext.js (Turbopack)2.384s (-3.3%)3.010s (~)0.626s101.09x
🌐 RedisNext.js (Turbopack)2.484s (+4.9%)3.012s (~)0.528s101.14x
🐘 PostgresNext.js (Turbopack)2.633s (+7.0% 🔺)3.013s (~)0.381s101.21x
🐘 PostgresExpress2.941s (-3.4%)3.323s (-7.0% 🟢)0.383s101.35x
🐘 PostgresNitro2.995s (+1.7%)3.358s (+7.8% 🔺)0.362s91.37x
🌐 TursoNext.js (Turbopack)4.665s (-1.7%)5.178s (~)0.513s62.14x
🌐 MongoDBNext.js (Turbopack)4.751s (+1.4%)5.183s (~)0.432s62.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.624s (+11.5% 🔺)4.480s (+25.0% 🔺)0.856s81.00x
▲ VercelExpress3.727s (+13.1% 🔺)4.574s (+18.0% 🔺)0.848s71.03x
▲ VercelNext.js (Turbopack)4.464s (+11.3% 🔺)5.140s (+11.7% 🔺)0.676s71.23x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.327s (-4.3%)2.008s (~)0.682s151.00x
🌐 RedisNext.js (Turbopack)1.364s (+1.6%)2.010s (~)0.646s151.03x
💻 LocalNext.js (Turbopack)1.391s (~)2.012s (~)0.620s151.05x
💻 LocalExpress1.419s (~)2.006s (~)0.588s151.07x
💻 LocalNitro1.443s (+8.4% 🔺)2.006s (~)0.563s151.09x
🐘 PostgresNext.js (Turbopack)1.706s (+2.6%)2.012s (~)0.305s151.29x
🐘 PostgresExpress1.840s (-11.7% 🟢)2.012s (-16.2% 🟢)0.172s151.39x
🐘 PostgresNitro1.851s (+8.6% 🔺)2.079s (+3.4%)0.228s151.40x
🌐 MongoDBNext.js (Turbopack)2.137s (+1.0%)3.015s (~)0.879s101.61x
🌐 TursoNext.js (Turbopack)2.194s (-2.0%)3.011s (~)0.817s101.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.546s (+20.6% 🔺)4.625s (+23.2% 🔺)1.079s71.00x
▲ VercelExpress3.606s (+27.6% 🔺)4.396s (+17.8% 🔺)0.790s71.02x
▲ VercelNitro3.887s (+35.3% 🔺)4.690s (+30.6% 🔺)0.803s71.10x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.110s (-2.6%)2.987s (-3.0%)0.876s111.00x
💻 LocalExpress2.222s (-3.2%)3.181s (-2.0%)0.959s101.05x
💻 LocalNitro2.250s (+7.7% 🔺)3.180s (+15.6% 🔺)0.930s101.07x
🌐 StarterNext.js (Turbopack)2.402s (-2.8%)3.011s (~)0.609s101.14x
🌐 RedisNext.js (Turbopack)2.465s (+4.2%)3.010s (~)0.545s101.17x
🐘 PostgresExpress2.530s (-12.5% 🟢)3.014s (-3.2%)0.484s101.20x
🐘 PostgresNext.js (Turbopack)2.604s (+6.0% 🔺)3.019s (~)0.415s101.23x
🐘 PostgresNitro2.787s (+3.9%)3.216s (+6.5% 🔺)0.429s101.32x
🌐 TursoNext.js (Turbopack)4.697s (-2.3%)5.177s (~)0.480s62.23x
🌐 MongoDBNext.js (Turbopack)4.785s (+1.5%)5.181s (~)0.396s62.27x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.851s (+15.3% 🔺)4.070s (+1.2%)0.219s81.00x
▲ VercelExpress4.557s (+41.1% 🔺)5.061s (+34.9% 🔺)0.504s71.18x
▲ VercelNitro4.662s (+43.7% 🔺)5.321s (+39.7% 🔺)0.660s71.21x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.098s (-24.6% 🟢)1.006s (~)0.000s (+Infinity% 🔺)1.012s (~)0.913s101.00x
💻 LocalNext.js (Turbopack)0.139s (+0.8%)1.003s (~)0.017s (+1.2%)1.028s (~)0.889s101.42x
🌐 RedisNext.js (Turbopack)0.140s (+22.3% 🔺)1.005s (~)0.000s (NaN%)1.014s (~)0.874s101.42x
💻 LocalNitro0.181s (+48.3% 🔺)0.992s (-0.6%)0.015s (-5.0% 🟢)1.021s (~)0.840s101.84x
💻 LocalExpress0.184s (+5.6% 🔺)0.993s (~)0.019s (+28.3% 🔺)1.026s (+0.5%)0.842s101.87x
🌐 TursoNext.js (Turbopack)0.477s (-6.3% 🟢)0.971s (+1.8%)0.000s (~)1.011s (~)0.534s104.86x
🌐 MongoDBNext.js (Turbopack)0.506s (+2.5%)0.946s (-0.5%)0.000s (-100.0% 🟢)1.014s (~)0.508s105.15x
🐘 PostgresNext.js (Turbopack)1.323s (+3.6%)1.899s (+22.6% 🔺)0.000s (-100.0% 🟢)2.020s (+11.0% 🔺)0.698s1013.45x
🐘 PostgresNitro2.187s (+4.7%)2.858s (+1.9%)0.000s (~)3.014s (+3.4%)0.828s1022.24x
🐘 PostgresExpress2.345s (+0.7%)2.697s (-0.6%)0.000s (+Infinity% 🔺)3.014s (~)0.670s1023.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.336s (+12.2% 🔺)3.652s (+10.3% 🔺)0.587s (+16.5% 🔺)4.868s (+13.3% 🔺)1.532s101.00x
▲ VercelExpress3.384s (+16.6% 🔺)3.559s (+11.7% 🔺)0.581s (+16.6% 🔺)4.723s (+13.9% 🔺)1.339s101.01x
▲ VercelNitro3.505s (+18.5% 🔺)3.610s (+15.6% 🔺)0.771s (+14.4% 🔺)5.019s (+18.3% 🔺)1.513s101.05x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)7/8
▲ VercelNext.js (Turbopack)6/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter6/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@socket-security

socket-securityBot commented Jan 13, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​shiki@​3.21.01001007798100

View full report

Comment threadpackages/web-shared/src/api/workflow-server-actions.ts
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment threadpackages/web/src/lib/project-context.tsx
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
},
"devDependencies": {
"@xyflow/react": "12.9.3",
"shiki": "3.21.0",

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@@ -0,0 +1,28 @@
#!/usr/bin/env node

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works similar to genversion but copies the world-manifest.json into the local package, instead of the package version

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment on lines +29 to +30
// Generate TypeScript file with the manifest data
const tsContent = `// AUTO-GENERATED FILE - DO NOT EDIT

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure how to get around this. If at all possible, it would be nice to have the world-manifest be a typescript file inside some package, but I didn't want to change the convention here. @pranaygp

export { parseDurationToDate } from './time.js';

// Client-safe project types and utilities (no Node.js dependencies)
export type {

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up putting quite some cli/web shared code in here. It would be nice to have a o11y-utils package which does all of this, and also does what packages/core/observability.ts does

serverSourceMaps: false,
},
// Transpile workspace packages
transpilePackages: ['@workflow/web-shared', '@workflow/utils', '@workflow/core'],

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually unsure about this - Claude added it 🤔

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Observability config rewrite: remember projects, allow self-hosting, unify env var handling by VaguelySerious · Pull Request #775 · vercel/workflow · GitHub
Skip to content

Observability config rewrite: remember projects, allow self-hosting, unify env var handling - #775

Closed
VaguelySerious wants to merge 12 commits into
mainfrom
peter/o11y-refactor
Closed

Observability config rewrite: remember projects, allow self-hosting, unify env var handling#775
VaguelySerious wants to merge 12 commits into
mainfrom
peter/o11y-refactor

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Jan 13, 2026

Copy link
Copy Markdown
Member

Probably replaced with #774


This superseeds #626 and #748, and reverts #747 in order to:

  • Allow users to open the web app anywhere, and then select any of their projects, easily swapping between them
  • Provide better debugging for world env vars and config
  • Support self-hosting the app with locked-in UI
  • Cleans up state management and URL data
  • Derives the world state from world-manifest.json. Updating the manifest will now directly update the UI support for worlds.

The dream for this is that you can open your web app once, and easily switch between local/staging/prod envs, or different project/repos) without having to invoke the o11y separately every time.

Not in this PR, but now unblocked:

  • Automatically do vc env pull if vercel credentials expired
  • Scan your machine for workflow projects

Testing

I'm working on e2e tests for this, but in the meantime, I manually validated this PR extensively:

  • Opening web from CLI outside of project
  • Opening web from CLI inside project
  • Installing this PR's tarball into a separate local project and running from there
  • Switching and editing projects between local/remote
  • Opening web to vercel with --localUI
  • Opening web with already running server from elsewhere
  • Opening web in self-hosted mode (WORKFLOW_UI_SELF_HOSTING="1")
  • Opening web when wf is aliased to the workflow local directory (contributor DevEx)

What I didn't test:

  • Opening web to postgres remote instance
    • I remember @pranaygp had a Railway instance for this. Could you test that?

Screenshots

Screenshot 2026-01-13 at 3 17 47 PMScreenshot 2026-01-13 at 3 17 41 PMimage

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Jan 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8a15ced

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 19 packages
NameType
@workflow/web-sharedPatch
@workflow/utilsPatch
@workflow/cliPatch
@workflow/webPatch
@workflow/corePatch
@workflow/errorsPatch
@workflow/world-localPatch
workflowPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/docs-typecheckPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
@workflow/aiPatch
@workflow/astroPatch
@workflow/sveltekitPatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercelBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production374011385
✅ 💻 Local Development34208350
✅ 📦 Local Production34208350
✅ 🐘 Local Postgres34208350
✅ 🪟 Windows350035
❌ 🌍 Community Worlds136160152
Total157116351622

❌ Failed Tests

🌍 Community Worlds (16 failed)

mongodb (1 failed):

  • webhookWorkflow

starter (14 failed):

  • addTenWorkflow
  • addTenWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro3401
✅ example3401
✅ express3401
✅ fastify3401
✅ hono3401
✅ nextjs-turbopack3401
✅ nextjs-webpack3401
✅ nitro3401
✅ nuxt3401
✅ sveltekit3401
✅ vite3401
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack3500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb3410
✅ redis-dev300
✅ redis3500
✅ starter-dev300
❌ starter21140
✅ turso-dev300
❌ turso3410

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.032s (-20.9% 🟢)1.014s (~)0.982s101.00x
💻 LocalNext.js (Turbopack)0.041s (+5.2% 🔺)1.014s (~)0.974s101.28x
🌐 RedisNext.js (Turbopack)0.041s (+16.5% 🔺)1.018s (~)0.977s101.29x
💻 LocalNitro0.044s (+37.1% 🔺)1.007s (~)0.963s101.37x
💻 LocalExpress0.045s (+5.6% 🔺)1.007s (~)0.962s101.42x
🌐 TursoNext.js (Turbopack)0.092s (-12.0% 🟢)1.013s (~)0.920s102.90x
🌐 MongoDBNext.js (Turbopack)0.100s (+117.9% 🔺)1.016s (~)0.917s103.13x
🐘 PostgresNext.js (Turbopack)0.116s (-55.6% 🟢)1.019s (~)0.903s103.66x
🐘 PostgresNitro0.223s (-5.2% 🟢)1.018s (-0.8%)0.795s107.01x
🐘 PostgresExpress0.332s (+14.0% 🔺)1.014s (~)0.683s1010.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.654s (-17.3% 🟢)1.605s (-5.4% 🟢)0.951s101.00x
▲ VercelExpress0.769s (+32.5% 🔺)1.460s (-1.0%)0.691s101.18x
▲ VercelNitro0.806s (+29.7% 🔺)1.478s (+3.6%)0.673s101.23x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.076s (-1.0%)2.010s (~)0.933s101.00x
💻 LocalNext.js (Turbopack)1.101s (~)2.012s (~)0.911s101.02x
🌐 RedisNext.js (Turbopack)1.101s (+2.2%)2.012s (~)0.910s101.02x
💻 LocalNitro1.114s (+3.2%)2.007s (~)0.893s101.03x
💻 LocalExpress1.119s (+0.6%)2.007s (~)0.888s101.04x
🌐 MongoDBNext.js (Turbopack)1.300s (~)2.014s (~)0.715s101.21x
🌐 TursoNext.js (Turbopack)1.319s (+1.5%)2.011s (~)0.692s101.23x
🐘 PostgresNext.js (Turbopack)1.918s (+2.4%)2.016s (~)0.098s101.78x
🐘 PostgresExpress2.182s (+2.7%)3.015s (~)0.833s102.03x
🐘 PostgresNitro2.331s (-3.5%)3.015s (~)0.684s102.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.867s (+2.5%)3.801s (+1.8%)0.934s101.00x
▲ VercelNitro2.959s (+11.0% 🔺)3.660s (-0.8%)0.702s101.03x
▲ VercelExpress2.983s (+3.8%)3.740s (-1.4%)0.756s101.04x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.505s (-1.0%)11.012s (~)0.507s51.00x
💻 LocalNext.js (Turbopack)10.674s (~)11.018s (~)0.345s51.02x
🌐 RedisNext.js (Turbopack)10.698s (+1.3%)11.019s (~)0.321s51.02x
💻 LocalNitro10.798s (+2.4%)11.011s (~)0.213s51.03x
💻 LocalExpress10.852s (+0.5%)11.017s (~)0.165s51.03x
🌐 TursoNext.js (Turbopack)12.183s (~)13.022s (~)0.838s51.16x
🌐 MongoDBNext.js (Turbopack)12.261s (+2.8%)13.027s (+8.3% 🔺)0.767s51.17x
🐘 PostgresNext.js (Turbopack)15.158s (+1.9%)15.839s (+1.3%)0.681s51.44x
🐘 PostgresNitro20.388s (~)21.039s (~)0.651s51.94x
🐘 PostgresExpress20.426s (~)21.030s (~)0.604s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express23.477s (+2.5%)24.595s (+3.8%)1.118s51.00x
▲ VercelNitro23.497s (+2.2%)24.143s (+2.2%)0.647s51.00x
▲ VercelNext.js (Turbopack)23.887s (+6.8% 🔺)24.729s (+7.3% 🔺)0.842s51.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.321s (-2.6%)2.009s (~)0.688s151.00x
🌐 RedisNext.js (Turbopack)1.351s (+2.0%)2.010s (~)0.659s151.02x
💻 LocalNext.js (Turbopack)1.391s (~)2.013s (~)0.622s151.05x
💻 LocalExpress1.419s (+1.2%)2.006s (~)0.587s151.07x
💻 LocalNitro1.422s (+5.0% 🔺)2.006s (~)0.584s151.08x
🐘 PostgresNext.js (Turbopack)1.825s (+6.0% 🔺)2.012s (~)0.187s151.38x
🌐 MongoDBNext.js (Turbopack)2.132s (~)3.014s (~)0.882s101.61x
🌐 TursoNext.js (Turbopack)2.210s (~)3.011s (~)0.801s101.67x
🐘 PostgresExpress2.414s (-0.7%)3.013s (~)0.599s101.83x
🐘 PostgresNitro2.425s (-7.9% 🟢)3.014s (~)0.590s101.84x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.896s (~)3.913s (+5.3% 🔺)1.016s81.00x
▲ VercelExpress3.032s (+9.1% 🔺)3.724s (~)0.692s91.05x
▲ VercelNitro3.235s (-3.0%)4.047s (+0.9%)0.812s81.12x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.180s (+3.2%)3.026s (~)0.846s101.00x
💻 LocalExpress2.220s (~)3.170s (+0.7%)0.950s101.02x
💻 LocalNitro2.257s (+12.8% 🔺)3.205s (+33.4% 🔺)0.948s101.04x
🌐 StarterNext.js (Turbopack)2.384s (-3.3%)3.010s (~)0.626s101.09x
🌐 RedisNext.js (Turbopack)2.484s (+4.9%)3.012s (~)0.528s101.14x
🐘 PostgresNext.js (Turbopack)2.633s (+7.0% 🔺)3.013s (~)0.381s101.21x
🐘 PostgresExpress2.941s (-3.4%)3.323s (-7.0% 🟢)0.383s101.35x
🐘 PostgresNitro2.995s (+1.7%)3.358s (+7.8% 🔺)0.362s91.37x
🌐 TursoNext.js (Turbopack)4.665s (-1.7%)5.178s (~)0.513s62.14x
🌐 MongoDBNext.js (Turbopack)4.751s (+1.4%)5.183s (~)0.432s62.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.624s (+11.5% 🔺)4.480s (+25.0% 🔺)0.856s81.00x
▲ VercelExpress3.727s (+13.1% 🔺)4.574s (+18.0% 🔺)0.848s71.03x
▲ VercelNext.js (Turbopack)4.464s (+11.3% 🔺)5.140s (+11.7% 🔺)0.676s71.23x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.327s (-4.3%)2.008s (~)0.682s151.00x
🌐 RedisNext.js (Turbopack)1.364s (+1.6%)2.010s (~)0.646s151.03x
💻 LocalNext.js (Turbopack)1.391s (~)2.012s (~)0.620s151.05x
💻 LocalExpress1.419s (~)2.006s (~)0.588s151.07x
💻 LocalNitro1.443s (+8.4% 🔺)2.006s (~)0.563s151.09x
🐘 PostgresNext.js (Turbopack)1.706s (+2.6%)2.012s (~)0.305s151.29x
🐘 PostgresExpress1.840s (-11.7% 🟢)2.012s (-16.2% 🟢)0.172s151.39x
🐘 PostgresNitro1.851s (+8.6% 🔺)2.079s (+3.4%)0.228s151.40x
🌐 MongoDBNext.js (Turbopack)2.137s (+1.0%)3.015s (~)0.879s101.61x
🌐 TursoNext.js (Turbopack)2.194s (-2.0%)3.011s (~)0.817s101.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.546s (+20.6% 🔺)4.625s (+23.2% 🔺)1.079s71.00x
▲ VercelExpress3.606s (+27.6% 🔺)4.396s (+17.8% 🔺)0.790s71.02x
▲ VercelNitro3.887s (+35.3% 🔺)4.690s (+30.6% 🔺)0.803s71.10x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.110s (-2.6%)2.987s (-3.0%)0.876s111.00x
💻 LocalExpress2.222s (-3.2%)3.181s (-2.0%)0.959s101.05x
💻 LocalNitro2.250s (+7.7% 🔺)3.180s (+15.6% 🔺)0.930s101.07x
🌐 StarterNext.js (Turbopack)2.402s (-2.8%)3.011s (~)0.609s101.14x
🌐 RedisNext.js (Turbopack)2.465s (+4.2%)3.010s (~)0.545s101.17x
🐘 PostgresExpress2.530s (-12.5% 🟢)3.014s (-3.2%)0.484s101.20x
🐘 PostgresNext.js (Turbopack)2.604s (+6.0% 🔺)3.019s (~)0.415s101.23x
🐘 PostgresNitro2.787s (+3.9%)3.216s (+6.5% 🔺)0.429s101.32x
🌐 TursoNext.js (Turbopack)4.697s (-2.3%)5.177s (~)0.480s62.23x
🌐 MongoDBNext.js (Turbopack)4.785s (+1.5%)5.181s (~)0.396s62.27x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.851s (+15.3% 🔺)4.070s (+1.2%)0.219s81.00x
▲ VercelExpress4.557s (+41.1% 🔺)5.061s (+34.9% 🔺)0.504s71.18x
▲ VercelNitro4.662s (+43.7% 🔺)5.321s (+39.7% 🔺)0.660s71.21x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.098s (-24.6% 🟢)1.006s (~)0.000s (+Infinity% 🔺)1.012s (~)0.913s101.00x
💻 LocalNext.js (Turbopack)0.139s (+0.8%)1.003s (~)0.017s (+1.2%)1.028s (~)0.889s101.42x
🌐 RedisNext.js (Turbopack)0.140s (+22.3% 🔺)1.005s (~)0.000s (NaN%)1.014s (~)0.874s101.42x
💻 LocalNitro0.181s (+48.3% 🔺)0.992s (-0.6%)0.015s (-5.0% 🟢)1.021s (~)0.840s101.84x
💻 LocalExpress0.184s (+5.6% 🔺)0.993s (~)0.019s (+28.3% 🔺)1.026s (+0.5%)0.842s101.87x
🌐 TursoNext.js (Turbopack)0.477s (-6.3% 🟢)0.971s (+1.8%)0.000s (~)1.011s (~)0.534s104.86x
🌐 MongoDBNext.js (Turbopack)0.506s (+2.5%)0.946s (-0.5%)0.000s (-100.0% 🟢)1.014s (~)0.508s105.15x
🐘 PostgresNext.js (Turbopack)1.323s (+3.6%)1.899s (+22.6% 🔺)0.000s (-100.0% 🟢)2.020s (+11.0% 🔺)0.698s1013.45x
🐘 PostgresNitro2.187s (+4.7%)2.858s (+1.9%)0.000s (~)3.014s (+3.4%)0.828s1022.24x
🐘 PostgresExpress2.345s (+0.7%)2.697s (-0.6%)0.000s (+Infinity% 🔺)3.014s (~)0.670s1023.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.336s (+12.2% 🔺)3.652s (+10.3% 🔺)0.587s (+16.5% 🔺)4.868s (+13.3% 🔺)1.532s101.00x
▲ VercelExpress3.384s (+16.6% 🔺)3.559s (+11.7% 🔺)0.581s (+16.6% 🔺)4.723s (+13.9% 🔺)1.339s101.01x
▲ VercelNitro3.505s (+18.5% 🔺)3.610s (+15.6% 🔺)0.771s (+14.4% 🔺)5.019s (+18.3% 🔺)1.513s101.05x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)7/8
▲ VercelNext.js (Turbopack)6/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter6/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@socket-security

socket-securityBot commented Jan 13, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​shiki@​3.21.01001007798100

View full report

Comment threadpackages/web-shared/src/api/workflow-server-actions.ts
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment threadpackages/web/src/lib/project-context.tsx
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
},
"devDependencies": {
"@xyflow/react": "12.9.3",
"shiki": "3.21.0",

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@@ -0,0 +1,28 @@
#!/usr/bin/env node

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works similar to genversion but copies the world-manifest.json into the local package, instead of the package version

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment on lines +29 to +30
// Generate TypeScript file with the manifest data
const tsContent = `// AUTO-GENERATED FILE - DO NOT EDIT

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure how to get around this. If at all possible, it would be nice to have the world-manifest be a typescript file inside some package, but I didn't want to change the convention here. @pranaygp

export { parseDurationToDate } from './time.js';

// Client-safe project types and utilities (no Node.js dependencies)
export type {

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up putting quite some cli/web shared code in here. It would be nice to have a o11y-utils package which does all of this, and also does what packages/core/observability.ts does

serverSourceMaps: false,
},
// Transpile workspace packages
transpilePackages: ['@workflow/web-shared', '@workflow/utils', '@workflow/core'],

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually unsure about this - Claude added it 🤔

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Observability config rewrite: remember projects, allow self-hosting, unify env var handling by VaguelySerious · Pull Request #775 · vercel/workflow · GitHub
Skip to content

Observability config rewrite: remember projects, allow self-hosting, unify env var handling - #775

Closed
VaguelySerious wants to merge 12 commits into
mainfrom
peter/o11y-refactor
Closed

Observability config rewrite: remember projects, allow self-hosting, unify env var handling#775
VaguelySerious wants to merge 12 commits into
mainfrom
peter/o11y-refactor

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Jan 13, 2026

Copy link
Copy Markdown
Member

Probably replaced with #774


This superseeds #626 and #748, and reverts #747 in order to:

  • Allow users to open the web app anywhere, and then select any of their projects, easily swapping between them
  • Provide better debugging for world env vars and config
  • Support self-hosting the app with locked-in UI
  • Cleans up state management and URL data
  • Derives the world state from world-manifest.json. Updating the manifest will now directly update the UI support for worlds.

The dream for this is that you can open your web app once, and easily switch between local/staging/prod envs, or different project/repos) without having to invoke the o11y separately every time.

Not in this PR, but now unblocked:

  • Automatically do vc env pull if vercel credentials expired
  • Scan your machine for workflow projects

Testing

I'm working on e2e tests for this, but in the meantime, I manually validated this PR extensively:

  • Opening web from CLI outside of project
  • Opening web from CLI inside project
  • Installing this PR's tarball into a separate local project and running from there
  • Switching and editing projects between local/remote
  • Opening web to vercel with --localUI
  • Opening web with already running server from elsewhere
  • Opening web in self-hosted mode (WORKFLOW_UI_SELF_HOSTING="1")
  • Opening web when wf is aliased to the workflow local directory (contributor DevEx)

What I didn't test:

  • Opening web to postgres remote instance
    • I remember @pranaygp had a Railway instance for this. Could you test that?

Screenshots

Screenshot 2026-01-13 at 3 17 47 PMScreenshot 2026-01-13 at 3 17 41 PMimage

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Jan 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8a15ced

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 19 packages
NameType
@workflow/web-sharedPatch
@workflow/utilsPatch
@workflow/cliPatch
@workflow/webPatch
@workflow/corePatch
@workflow/errorsPatch
@workflow/world-localPatch
workflowPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/docs-typecheckPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
@workflow/aiPatch
@workflow/astroPatch
@workflow/sveltekitPatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercelBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production374011385
✅ 💻 Local Development34208350
✅ 📦 Local Production34208350
✅ 🐘 Local Postgres34208350
✅ 🪟 Windows350035
❌ 🌍 Community Worlds136160152
Total157116351622

❌ Failed Tests

🌍 Community Worlds (16 failed)

mongodb (1 failed):

  • webhookWorkflow

starter (14 failed):

  • addTenWorkflow
  • addTenWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro3401
✅ example3401
✅ express3401
✅ fastify3401
✅ hono3401
✅ nextjs-turbopack3401
✅ nextjs-webpack3401
✅ nitro3401
✅ nuxt3401
✅ sveltekit3401
✅ vite3401
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack3500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb3410
✅ redis-dev300
✅ redis3500
✅ starter-dev300
❌ starter21140
✅ turso-dev300
❌ turso3410

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.032s (-20.9% 🟢)1.014s (~)0.982s101.00x
💻 LocalNext.js (Turbopack)0.041s (+5.2% 🔺)1.014s (~)0.974s101.28x
🌐 RedisNext.js (Turbopack)0.041s (+16.5% 🔺)1.018s (~)0.977s101.29x
💻 LocalNitro0.044s (+37.1% 🔺)1.007s (~)0.963s101.37x
💻 LocalExpress0.045s (+5.6% 🔺)1.007s (~)0.962s101.42x
🌐 TursoNext.js (Turbopack)0.092s (-12.0% 🟢)1.013s (~)0.920s102.90x
🌐 MongoDBNext.js (Turbopack)0.100s (+117.9% 🔺)1.016s (~)0.917s103.13x
🐘 PostgresNext.js (Turbopack)0.116s (-55.6% 🟢)1.019s (~)0.903s103.66x
🐘 PostgresNitro0.223s (-5.2% 🟢)1.018s (-0.8%)0.795s107.01x
🐘 PostgresExpress0.332s (+14.0% 🔺)1.014s (~)0.683s1010.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.654s (-17.3% 🟢)1.605s (-5.4% 🟢)0.951s101.00x
▲ VercelExpress0.769s (+32.5% 🔺)1.460s (-1.0%)0.691s101.18x
▲ VercelNitro0.806s (+29.7% 🔺)1.478s (+3.6%)0.673s101.23x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.076s (-1.0%)2.010s (~)0.933s101.00x
💻 LocalNext.js (Turbopack)1.101s (~)2.012s (~)0.911s101.02x
🌐 RedisNext.js (Turbopack)1.101s (+2.2%)2.012s (~)0.910s101.02x
💻 LocalNitro1.114s (+3.2%)2.007s (~)0.893s101.03x
💻 LocalExpress1.119s (+0.6%)2.007s (~)0.888s101.04x
🌐 MongoDBNext.js (Turbopack)1.300s (~)2.014s (~)0.715s101.21x
🌐 TursoNext.js (Turbopack)1.319s (+1.5%)2.011s (~)0.692s101.23x
🐘 PostgresNext.js (Turbopack)1.918s (+2.4%)2.016s (~)0.098s101.78x
🐘 PostgresExpress2.182s (+2.7%)3.015s (~)0.833s102.03x
🐘 PostgresNitro2.331s (-3.5%)3.015s (~)0.684s102.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.867s (+2.5%)3.801s (+1.8%)0.934s101.00x
▲ VercelNitro2.959s (+11.0% 🔺)3.660s (-0.8%)0.702s101.03x
▲ VercelExpress2.983s (+3.8%)3.740s (-1.4%)0.756s101.04x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.505s (-1.0%)11.012s (~)0.507s51.00x
💻 LocalNext.js (Turbopack)10.674s (~)11.018s (~)0.345s51.02x
🌐 RedisNext.js (Turbopack)10.698s (+1.3%)11.019s (~)0.321s51.02x
💻 LocalNitro10.798s (+2.4%)11.011s (~)0.213s51.03x
💻 LocalExpress10.852s (+0.5%)11.017s (~)0.165s51.03x
🌐 TursoNext.js (Turbopack)12.183s (~)13.022s (~)0.838s51.16x
🌐 MongoDBNext.js (Turbopack)12.261s (+2.8%)13.027s (+8.3% 🔺)0.767s51.17x
🐘 PostgresNext.js (Turbopack)15.158s (+1.9%)15.839s (+1.3%)0.681s51.44x
🐘 PostgresNitro20.388s (~)21.039s (~)0.651s51.94x
🐘 PostgresExpress20.426s (~)21.030s (~)0.604s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express23.477s (+2.5%)24.595s (+3.8%)1.118s51.00x
▲ VercelNitro23.497s (+2.2%)24.143s (+2.2%)0.647s51.00x
▲ VercelNext.js (Turbopack)23.887s (+6.8% 🔺)24.729s (+7.3% 🔺)0.842s51.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.321s (-2.6%)2.009s (~)0.688s151.00x
🌐 RedisNext.js (Turbopack)1.351s (+2.0%)2.010s (~)0.659s151.02x
💻 LocalNext.js (Turbopack)1.391s (~)2.013s (~)0.622s151.05x
💻 LocalExpress1.419s (+1.2%)2.006s (~)0.587s151.07x
💻 LocalNitro1.422s (+5.0% 🔺)2.006s (~)0.584s151.08x
🐘 PostgresNext.js (Turbopack)1.825s (+6.0% 🔺)2.012s (~)0.187s151.38x
🌐 MongoDBNext.js (Turbopack)2.132s (~)3.014s (~)0.882s101.61x
🌐 TursoNext.js (Turbopack)2.210s (~)3.011s (~)0.801s101.67x
🐘 PostgresExpress2.414s (-0.7%)3.013s (~)0.599s101.83x
🐘 PostgresNitro2.425s (-7.9% 🟢)3.014s (~)0.590s101.84x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.896s (~)3.913s (+5.3% 🔺)1.016s81.00x
▲ VercelExpress3.032s (+9.1% 🔺)3.724s (~)0.692s91.05x
▲ VercelNitro3.235s (-3.0%)4.047s (+0.9%)0.812s81.12x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.180s (+3.2%)3.026s (~)0.846s101.00x
💻 LocalExpress2.220s (~)3.170s (+0.7%)0.950s101.02x
💻 LocalNitro2.257s (+12.8% 🔺)3.205s (+33.4% 🔺)0.948s101.04x
🌐 StarterNext.js (Turbopack)2.384s (-3.3%)3.010s (~)0.626s101.09x
🌐 RedisNext.js (Turbopack)2.484s (+4.9%)3.012s (~)0.528s101.14x
🐘 PostgresNext.js (Turbopack)2.633s (+7.0% 🔺)3.013s (~)0.381s101.21x
🐘 PostgresExpress2.941s (-3.4%)3.323s (-7.0% 🟢)0.383s101.35x
🐘 PostgresNitro2.995s (+1.7%)3.358s (+7.8% 🔺)0.362s91.37x
🌐 TursoNext.js (Turbopack)4.665s (-1.7%)5.178s (~)0.513s62.14x
🌐 MongoDBNext.js (Turbopack)4.751s (+1.4%)5.183s (~)0.432s62.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.624s (+11.5% 🔺)4.480s (+25.0% 🔺)0.856s81.00x
▲ VercelExpress3.727s (+13.1% 🔺)4.574s (+18.0% 🔺)0.848s71.03x
▲ VercelNext.js (Turbopack)4.464s (+11.3% 🔺)5.140s (+11.7% 🔺)0.676s71.23x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.327s (-4.3%)2.008s (~)0.682s151.00x
🌐 RedisNext.js (Turbopack)1.364s (+1.6%)2.010s (~)0.646s151.03x
💻 LocalNext.js (Turbopack)1.391s (~)2.012s (~)0.620s151.05x
💻 LocalExpress1.419s (~)2.006s (~)0.588s151.07x
💻 LocalNitro1.443s (+8.4% 🔺)2.006s (~)0.563s151.09x
🐘 PostgresNext.js (Turbopack)1.706s (+2.6%)2.012s (~)0.305s151.29x
🐘 PostgresExpress1.840s (-11.7% 🟢)2.012s (-16.2% 🟢)0.172s151.39x
🐘 PostgresNitro1.851s (+8.6% 🔺)2.079s (+3.4%)0.228s151.40x
🌐 MongoDBNext.js (Turbopack)2.137s (+1.0%)3.015s (~)0.879s101.61x
🌐 TursoNext.js (Turbopack)2.194s (-2.0%)3.011s (~)0.817s101.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.546s (+20.6% 🔺)4.625s (+23.2% 🔺)1.079s71.00x
▲ VercelExpress3.606s (+27.6% 🔺)4.396s (+17.8% 🔺)0.790s71.02x
▲ VercelNitro3.887s (+35.3% 🔺)4.690s (+30.6% 🔺)0.803s71.10x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.110s (-2.6%)2.987s (-3.0%)0.876s111.00x
💻 LocalExpress2.222s (-3.2%)3.181s (-2.0%)0.959s101.05x
💻 LocalNitro2.250s (+7.7% 🔺)3.180s (+15.6% 🔺)0.930s101.07x
🌐 StarterNext.js (Turbopack)2.402s (-2.8%)3.011s (~)0.609s101.14x
🌐 RedisNext.js (Turbopack)2.465s (+4.2%)3.010s (~)0.545s101.17x
🐘 PostgresExpress2.530s (-12.5% 🟢)3.014s (-3.2%)0.484s101.20x
🐘 PostgresNext.js (Turbopack)2.604s (+6.0% 🔺)3.019s (~)0.415s101.23x
🐘 PostgresNitro2.787s (+3.9%)3.216s (+6.5% 🔺)0.429s101.32x
🌐 TursoNext.js (Turbopack)4.697s (-2.3%)5.177s (~)0.480s62.23x
🌐 MongoDBNext.js (Turbopack)4.785s (+1.5%)5.181s (~)0.396s62.27x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.851s (+15.3% 🔺)4.070s (+1.2%)0.219s81.00x
▲ VercelExpress4.557s (+41.1% 🔺)5.061s (+34.9% 🔺)0.504s71.18x
▲ VercelNitro4.662s (+43.7% 🔺)5.321s (+39.7% 🔺)0.660s71.21x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.098s (-24.6% 🟢)1.006s (~)0.000s (+Infinity% 🔺)1.012s (~)0.913s101.00x
💻 LocalNext.js (Turbopack)0.139s (+0.8%)1.003s (~)0.017s (+1.2%)1.028s (~)0.889s101.42x
🌐 RedisNext.js (Turbopack)0.140s (+22.3% 🔺)1.005s (~)0.000s (NaN%)1.014s (~)0.874s101.42x
💻 LocalNitro0.181s (+48.3% 🔺)0.992s (-0.6%)0.015s (-5.0% 🟢)1.021s (~)0.840s101.84x
💻 LocalExpress0.184s (+5.6% 🔺)0.993s (~)0.019s (+28.3% 🔺)1.026s (+0.5%)0.842s101.87x
🌐 TursoNext.js (Turbopack)0.477s (-6.3% 🟢)0.971s (+1.8%)0.000s (~)1.011s (~)0.534s104.86x
🌐 MongoDBNext.js (Turbopack)0.506s (+2.5%)0.946s (-0.5%)0.000s (-100.0% 🟢)1.014s (~)0.508s105.15x
🐘 PostgresNext.js (Turbopack)1.323s (+3.6%)1.899s (+22.6% 🔺)0.000s (-100.0% 🟢)2.020s (+11.0% 🔺)0.698s1013.45x
🐘 PostgresNitro2.187s (+4.7%)2.858s (+1.9%)0.000s (~)3.014s (+3.4%)0.828s1022.24x
🐘 PostgresExpress2.345s (+0.7%)2.697s (-0.6%)0.000s (+Infinity% 🔺)3.014s (~)0.670s1023.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.336s (+12.2% 🔺)3.652s (+10.3% 🔺)0.587s (+16.5% 🔺)4.868s (+13.3% 🔺)1.532s101.00x
▲ VercelExpress3.384s (+16.6% 🔺)3.559s (+11.7% 🔺)0.581s (+16.6% 🔺)4.723s (+13.9% 🔺)1.339s101.01x
▲ VercelNitro3.505s (+18.5% 🔺)3.610s (+15.6% 🔺)0.771s (+14.4% 🔺)5.019s (+18.3% 🔺)1.513s101.05x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)7/8
▲ VercelNext.js (Turbopack)6/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter6/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@socket-security

socket-securityBot commented Jan 13, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​shiki@​3.21.01001007798100

View full report

Comment threadpackages/web-shared/src/api/workflow-server-actions.ts
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment threadpackages/web/src/lib/project-context.tsx
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
},
"devDependencies": {
"@xyflow/react": "12.9.3",
"shiki": "3.21.0",

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@@ -0,0 +1,28 @@
#!/usr/bin/env node

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works similar to genversion but copies the world-manifest.json into the local package, instead of the package version

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment on lines +29 to +30
// Generate TypeScript file with the manifest data
const tsContent = `// AUTO-GENERATED FILE - DO NOT EDIT

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure how to get around this. If at all possible, it would be nice to have the world-manifest be a typescript file inside some package, but I didn't want to change the convention here. @pranaygp

export { parseDurationToDate } from './time.js';

// Client-safe project types and utilities (no Node.js dependencies)
export type {

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up putting quite some cli/web shared code in here. It would be nice to have a o11y-utils package which does all of this, and also does what packages/core/observability.ts does

serverSourceMaps: false,
},
// Transpile workspace packages
transpilePackages: ['@workflow/web-shared', '@workflow/utils', '@workflow/core'],

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually unsure about this - Claude added it 🤔

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Universal Dark Mode - works on any site (function() { var enabled = true; function applyDarkMode() { if (!enabled) return; // Create style element if it doesn't exist var style = document.getElementById('universal-dark-mode-style'); if (!style) { style = document.createElement('style'); style.id = 'universal-dark-mode-style'; document.head.appendChild(style); } // Dark mode CSS - inverts colors but preserves images/video style.textContent = ' /* Invert everything except media */ html { filter: invert(1) hue-rotate(180deg) !important; background: #1a1a2e !important; } /* Restore images, videos, iframes, canvas */ img, video, iframe, canvas, svg, picture, [style*="background-image"] { filter: invert(1) hue-rotate(180deg) !important; } /* Preserve specific elements that should not be inverted */ .no-dark-mode, .no-dark-mode *, [data-theme="light"], [data-theme="light"], .ace_editor, .ace_editor *, .CodeMirror, .CodeMirror *, .monaco-editor, .monaco-editor *, .markdown-body pre, .markdown-body pre *, .highlight, .highlight *, pre code, pre code * { filter: none !important; } /* Fix common UI elements */ .modal, .popup, .dropdown-menu, .tooltip, .popover { filter: invert(1) hue-rotate(180deg) !important; background: #2d2d44 !important; border-color: #444 !important; } /* Scrollbars */ ::-webkit-scrollbar { background: #1a1a2e !important; } ::-webkit-scrollbar-thumb { background: #444 !important; } ::-webkit-scrollbar-thumb:hover { background: #555 !important; } /* Selection */ ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; } ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; } '; } function removeDarkMode() { var style = document.getElementById('universal-dark-mode-style'); if (style) style.remove(); } // Toggle with Alt+Shift+D document.addEventListener('keydown', function(e) { if (e.altKey && e.shiftKey && e.key === 'D') { e.preventDefault(); enabled = !enabled; if (enabled) { applyDarkMode(); console.log('[Universal Dark Mode] Enabled'); } else { removeDarkMode(); console.log('[Universal Dark Mode] Disabled'); } } }); // Apply on load applyDarkMode(); // Re-apply on dynamic content var observer = new MutationObserver(function(mutations) { if (enabled && !document.getElementById('universal-dark-mode-style')) { applyDarkMode(); } }); observer.observe(document.head, { childList: true }); console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle'); })(); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })(); Observability config rewrite: remember projects, allow self-hosting, unify env var handling by VaguelySerious · Pull Request #775 · vercel/workflow · GitHub
Skip to content

Observability config rewrite: remember projects, allow self-hosting, unify env var handling - #775

Closed
VaguelySerious wants to merge 12 commits into
mainfrom
peter/o11y-refactor
Closed

Observability config rewrite: remember projects, allow self-hosting, unify env var handling#775
VaguelySerious wants to merge 12 commits into
mainfrom
peter/o11y-refactor

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Jan 13, 2026

Copy link
Copy Markdown
Member

Probably replaced with #774


This superseeds #626 and #748, and reverts #747 in order to:

  • Allow users to open the web app anywhere, and then select any of their projects, easily swapping between them
  • Provide better debugging for world env vars and config
  • Support self-hosting the app with locked-in UI
  • Cleans up state management and URL data
  • Derives the world state from world-manifest.json. Updating the manifest will now directly update the UI support for worlds.

The dream for this is that you can open your web app once, and easily switch between local/staging/prod envs, or different project/repos) without having to invoke the o11y separately every time.

Not in this PR, but now unblocked:

  • Automatically do vc env pull if vercel credentials expired
  • Scan your machine for workflow projects

Testing

I'm working on e2e tests for this, but in the meantime, I manually validated this PR extensively:

  • Opening web from CLI outside of project
  • Opening web from CLI inside project
  • Installing this PR's tarball into a separate local project and running from there
  • Switching and editing projects between local/remote
  • Opening web to vercel with --localUI
  • Opening web with already running server from elsewhere
  • Opening web in self-hosted mode (WORKFLOW_UI_SELF_HOSTING="1")
  • Opening web when wf is aliased to the workflow local directory (contributor DevEx)

What I didn't test:

  • Opening web to postgres remote instance
    • I remember @pranaygp had a Railway instance for this. Could you test that?

Screenshots

Screenshot 2026-01-13 at 3 17 47 PMScreenshot 2026-01-13 at 3 17 41 PMimage

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Jan 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8a15ced

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 19 packages
NameType
@workflow/web-sharedPatch
@workflow/utilsPatch
@workflow/cliPatch
@workflow/webPatch
@workflow/corePatch
@workflow/errorsPatch
@workflow/world-localPatch
workflowPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/docs-typecheckPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
@workflow/aiPatch
@workflow/astroPatch
@workflow/sveltekitPatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercelBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production374011385
✅ 💻 Local Development34208350
✅ 📦 Local Production34208350
✅ 🐘 Local Postgres34208350
✅ 🪟 Windows350035
❌ 🌍 Community Worlds136160152
Total157116351622

❌ Failed Tests

🌍 Community Worlds (16 failed)

mongodb (1 failed):

  • webhookWorkflow

starter (14 failed):

  • addTenWorkflow
  • addTenWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro3401
✅ example3401
✅ express3401
✅ fastify3401
✅ hono3401
✅ nextjs-turbopack3401
✅ nextjs-webpack3401
✅ nitro3401
✅ nuxt3401
✅ sveltekit3401
✅ vite3401
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable3401
✅ express-stable3401
✅ fastify-stable3401
✅ hono-stable3401
✅ nextjs-turbopack-stable3500
✅ nextjs-webpack-stable3500
✅ nitro-stable3401
✅ nuxt-stable3401
✅ sveltekit-stable3401
✅ vite-stable3401
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack3500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb3410
✅ redis-dev300
✅ redis3500
✅ starter-dev300
❌ starter21140
✅ turso-dev300
❌ turso3410

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.032s (-20.9% 🟢)1.014s (~)0.982s101.00x
💻 LocalNext.js (Turbopack)0.041s (+5.2% 🔺)1.014s (~)0.974s101.28x
🌐 RedisNext.js (Turbopack)0.041s (+16.5% 🔺)1.018s (~)0.977s101.29x
💻 LocalNitro0.044s (+37.1% 🔺)1.007s (~)0.963s101.37x
💻 LocalExpress0.045s (+5.6% 🔺)1.007s (~)0.962s101.42x
🌐 TursoNext.js (Turbopack)0.092s (-12.0% 🟢)1.013s (~)0.920s102.90x
🌐 MongoDBNext.js (Turbopack)0.100s (+117.9% 🔺)1.016s (~)0.917s103.13x
🐘 PostgresNext.js (Turbopack)0.116s (-55.6% 🟢)1.019s (~)0.903s103.66x
🐘 PostgresNitro0.223s (-5.2% 🟢)1.018s (-0.8%)0.795s107.01x
🐘 PostgresExpress0.332s (+14.0% 🔺)1.014s (~)0.683s1010.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.654s (-17.3% 🟢)1.605s (-5.4% 🟢)0.951s101.00x
▲ VercelExpress0.769s (+32.5% 🔺)1.460s (-1.0%)0.691s101.18x
▲ VercelNitro0.806s (+29.7% 🔺)1.478s (+3.6%)0.673s101.23x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.076s (-1.0%)2.010s (~)0.933s101.00x
💻 LocalNext.js (Turbopack)1.101s (~)2.012s (~)0.911s101.02x
🌐 RedisNext.js (Turbopack)1.101s (+2.2%)2.012s (~)0.910s101.02x
💻 LocalNitro1.114s (+3.2%)2.007s (~)0.893s101.03x
💻 LocalExpress1.119s (+0.6%)2.007s (~)0.888s101.04x
🌐 MongoDBNext.js (Turbopack)1.300s (~)2.014s (~)0.715s101.21x
🌐 TursoNext.js (Turbopack)1.319s (+1.5%)2.011s (~)0.692s101.23x
🐘 PostgresNext.js (Turbopack)1.918s (+2.4%)2.016s (~)0.098s101.78x
🐘 PostgresExpress2.182s (+2.7%)3.015s (~)0.833s102.03x
🐘 PostgresNitro2.331s (-3.5%)3.015s (~)0.684s102.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.867s (+2.5%)3.801s (+1.8%)0.934s101.00x
▲ VercelNitro2.959s (+11.0% 🔺)3.660s (-0.8%)0.702s101.03x
▲ VercelExpress2.983s (+3.8%)3.740s (-1.4%)0.756s101.04x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.505s (-1.0%)11.012s (~)0.507s51.00x
💻 LocalNext.js (Turbopack)10.674s (~)11.018s (~)0.345s51.02x
🌐 RedisNext.js (Turbopack)10.698s (+1.3%)11.019s (~)0.321s51.02x
💻 LocalNitro10.798s (+2.4%)11.011s (~)0.213s51.03x
💻 LocalExpress10.852s (+0.5%)11.017s (~)0.165s51.03x
🌐 TursoNext.js (Turbopack)12.183s (~)13.022s (~)0.838s51.16x
🌐 MongoDBNext.js (Turbopack)12.261s (+2.8%)13.027s (+8.3% 🔺)0.767s51.17x
🐘 PostgresNext.js (Turbopack)15.158s (+1.9%)15.839s (+1.3%)0.681s51.44x
🐘 PostgresNitro20.388s (~)21.039s (~)0.651s51.94x
🐘 PostgresExpress20.426s (~)21.030s (~)0.604s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express23.477s (+2.5%)24.595s (+3.8%)1.118s51.00x
▲ VercelNitro23.497s (+2.2%)24.143s (+2.2%)0.647s51.00x
▲ VercelNext.js (Turbopack)23.887s (+6.8% 🔺)24.729s (+7.3% 🔺)0.842s51.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.321s (-2.6%)2.009s (~)0.688s151.00x
🌐 RedisNext.js (Turbopack)1.351s (+2.0%)2.010s (~)0.659s151.02x
💻 LocalNext.js (Turbopack)1.391s (~)2.013s (~)0.622s151.05x
💻 LocalExpress1.419s (+1.2%)2.006s (~)0.587s151.07x
💻 LocalNitro1.422s (+5.0% 🔺)2.006s (~)0.584s151.08x
🐘 PostgresNext.js (Turbopack)1.825s (+6.0% 🔺)2.012s (~)0.187s151.38x
🌐 MongoDBNext.js (Turbopack)2.132s (~)3.014s (~)0.882s101.61x
🌐 TursoNext.js (Turbopack)2.210s (~)3.011s (~)0.801s101.67x
🐘 PostgresExpress2.414s (-0.7%)3.013s (~)0.599s101.83x
🐘 PostgresNitro2.425s (-7.9% 🟢)3.014s (~)0.590s101.84x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.896s (~)3.913s (+5.3% 🔺)1.016s81.00x
▲ VercelExpress3.032s (+9.1% 🔺)3.724s (~)0.692s91.05x
▲ VercelNitro3.235s (-3.0%)4.047s (+0.9%)0.812s81.12x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.180s (+3.2%)3.026s (~)0.846s101.00x
💻 LocalExpress2.220s (~)3.170s (+0.7%)0.950s101.02x
💻 LocalNitro2.257s (+12.8% 🔺)3.205s (+33.4% 🔺)0.948s101.04x
🌐 StarterNext.js (Turbopack)2.384s (-3.3%)3.010s (~)0.626s101.09x
🌐 RedisNext.js (Turbopack)2.484s (+4.9%)3.012s (~)0.528s101.14x
🐘 PostgresNext.js (Turbopack)2.633s (+7.0% 🔺)3.013s (~)0.381s101.21x
🐘 PostgresExpress2.941s (-3.4%)3.323s (-7.0% 🟢)0.383s101.35x
🐘 PostgresNitro2.995s (+1.7%)3.358s (+7.8% 🔺)0.362s91.37x
🌐 TursoNext.js (Turbopack)4.665s (-1.7%)5.178s (~)0.513s62.14x
🌐 MongoDBNext.js (Turbopack)4.751s (+1.4%)5.183s (~)0.432s62.18x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.624s (+11.5% 🔺)4.480s (+25.0% 🔺)0.856s81.00x
▲ VercelExpress3.727s (+13.1% 🔺)4.574s (+18.0% 🔺)0.848s71.03x
▲ VercelNext.js (Turbopack)4.464s (+11.3% 🔺)5.140s (+11.7% 🔺)0.676s71.23x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.327s (-4.3%)2.008s (~)0.682s151.00x
🌐 RedisNext.js (Turbopack)1.364s (+1.6%)2.010s (~)0.646s151.03x
💻 LocalNext.js (Turbopack)1.391s (~)2.012s (~)0.620s151.05x
💻 LocalExpress1.419s (~)2.006s (~)0.588s151.07x
💻 LocalNitro1.443s (+8.4% 🔺)2.006s (~)0.563s151.09x
🐘 PostgresNext.js (Turbopack)1.706s (+2.6%)2.012s (~)0.305s151.29x
🐘 PostgresExpress1.840s (-11.7% 🟢)2.012s (-16.2% 🟢)0.172s151.39x
🐘 PostgresNitro1.851s (+8.6% 🔺)2.079s (+3.4%)0.228s151.40x
🌐 MongoDBNext.js (Turbopack)2.137s (+1.0%)3.015s (~)0.879s101.61x
🌐 TursoNext.js (Turbopack)2.194s (-2.0%)3.011s (~)0.817s101.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.546s (+20.6% 🔺)4.625s (+23.2% 🔺)1.079s71.00x
▲ VercelExpress3.606s (+27.6% 🔺)4.396s (+17.8% 🔺)0.790s71.02x
▲ VercelNitro3.887s (+35.3% 🔺)4.690s (+30.6% 🔺)0.803s71.10x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.110s (-2.6%)2.987s (-3.0%)0.876s111.00x
💻 LocalExpress2.222s (-3.2%)3.181s (-2.0%)0.959s101.05x
💻 LocalNitro2.250s (+7.7% 🔺)3.180s (+15.6% 🔺)0.930s101.07x
🌐 StarterNext.js (Turbopack)2.402s (-2.8%)3.011s (~)0.609s101.14x
🌐 RedisNext.js (Turbopack)2.465s (+4.2%)3.010s (~)0.545s101.17x
🐘 PostgresExpress2.530s (-12.5% 🟢)3.014s (-3.2%)0.484s101.20x
🐘 PostgresNext.js (Turbopack)2.604s (+6.0% 🔺)3.019s (~)0.415s101.23x
🐘 PostgresNitro2.787s (+3.9%)3.216s (+6.5% 🔺)0.429s101.32x
🌐 TursoNext.js (Turbopack)4.697s (-2.3%)5.177s (~)0.480s62.23x
🌐 MongoDBNext.js (Turbopack)4.785s (+1.5%)5.181s (~)0.396s62.27x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.851s (+15.3% 🔺)4.070s (+1.2%)0.219s81.00x
▲ VercelExpress4.557s (+41.1% 🔺)5.061s (+34.9% 🔺)0.504s71.18x
▲ VercelNitro4.662s (+43.7% 🔺)5.321s (+39.7% 🔺)0.660s71.21x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.098s (-24.6% 🟢)1.006s (~)0.000s (+Infinity% 🔺)1.012s (~)0.913s101.00x
💻 LocalNext.js (Turbopack)0.139s (+0.8%)1.003s (~)0.017s (+1.2%)1.028s (~)0.889s101.42x
🌐 RedisNext.js (Turbopack)0.140s (+22.3% 🔺)1.005s (~)0.000s (NaN%)1.014s (~)0.874s101.42x
💻 LocalNitro0.181s (+48.3% 🔺)0.992s (-0.6%)0.015s (-5.0% 🟢)1.021s (~)0.840s101.84x
💻 LocalExpress0.184s (+5.6% 🔺)0.993s (~)0.019s (+28.3% 🔺)1.026s (+0.5%)0.842s101.87x
🌐 TursoNext.js (Turbopack)0.477s (-6.3% 🟢)0.971s (+1.8%)0.000s (~)1.011s (~)0.534s104.86x
🌐 MongoDBNext.js (Turbopack)0.506s (+2.5%)0.946s (-0.5%)0.000s (-100.0% 🟢)1.014s (~)0.508s105.15x
🐘 PostgresNext.js (Turbopack)1.323s (+3.6%)1.899s (+22.6% 🔺)0.000s (-100.0% 🟢)2.020s (+11.0% 🔺)0.698s1013.45x
🐘 PostgresNitro2.187s (+4.7%)2.858s (+1.9%)0.000s (~)3.014s (+3.4%)0.828s1022.24x
🐘 PostgresExpress2.345s (+0.7%)2.697s (-0.6%)0.000s (+Infinity% 🔺)3.014s (~)0.670s1023.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.336s (+12.2% 🔺)3.652s (+10.3% 🔺)0.587s (+16.5% 🔺)4.868s (+13.3% 🔺)1.532s101.00x
▲ VercelExpress3.384s (+16.6% 🔺)3.559s (+11.7% 🔺)0.581s (+16.6% 🔺)4.723s (+13.9% 🔺)1.339s101.01x
▲ VercelNitro3.505s (+18.5% 🔺)3.610s (+15.6% 🔺)0.771s (+14.4% 🔺)5.019s (+18.3% 🔺)1.513s101.05x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)7/8
▲ VercelNext.js (Turbopack)6/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter6/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@socket-security

socket-securityBot commented Jan 13, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​shiki@​3.21.01001007798100

View full report

Comment threadpackages/web-shared/src/api/workflow-server-actions.ts
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment threadpackages/web/src/lib/project-context.tsx
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
},
"devDependencies": {
"@xyflow/react": "12.9.3",
"shiki": "3.21.0",

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@@ -0,0 +1,28 @@
#!/usr/bin/env node

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works similar to genversion but copies the world-manifest.json into the local package, instead of the package version

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
Comment on lines +29 to +30
// Generate TypeScript file with the manifest data
const tsContent = `// AUTO-GENERATED FILE - DO NOT EDIT

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure how to get around this. If at all possible, it would be nice to have the world-manifest be a typescript file inside some package, but I didn't want to change the convention here. @pranaygp

export { parseDurationToDate } from './time.js';

// Client-safe project types and utilities (no Node.js dependencies)
export type {

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up putting quite some cli/web shared code in here. It would be nice to have a o11y-utils package which does all of this, and also does what packages/core/observability.ts does

serverSourceMaps: false,
},
// Transpile workspace packages
transpilePackages: ['@workflow/web-shared', '@workflow/utils', '@workflow/core'],

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually unsure about this - Claude added it 🤔

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@VaguelySerious