Skip to content

[codex] Migrate workflow execution routes to v2 - #2154

Open
pranaygp wants to merge 2 commits into
mainfrom
pranaygp/codex/workflow-v2-routes
Open

[codex] Migrate workflow execution routes to v2#2154
pranaygp wants to merge 2 commits into
mainfrom
pranaygp/codex/workflow-v2-routes

Conversation

@pranaygp

@pranaygppranaygp commented May 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move the canonical combined execution endpoint from /.well-known/workflow/v1/flow to /.well-known/workflow/v2/flow and stop emitting the separate v1 step route.
  • Keep the webhook endpoint at /.well-known/workflow/v1/webhook and the public manifest under /.well-known/workflow/v1 across supported integrations and build targets.
  • Remove stale v1 flow/step generated artifacts at build time and update active v5 documentation, route tests, matrices, and changesets.

Why

Workflow v5 uses the combined flow handler, so the execution route has a materially different contract from the v4 split flow/step model and moves to v2. The webhook route did not materially change, so it remains on v1 rather than introducing an unnecessary webhook URL migration.

Backporting

Do not backport this PR to stable: this changes the v5/main execution route contract and does not apply to the v4 stable surface.

Validation

  • pnpm build
  • Focused Biome formatting and error-level lint checks for changed TypeScript/JavaScript files
  • pnpm vitest run packages/next/src/index.test.ts packages/nitro/src/index.test.ts packages/world-postgres/src/queue.test.ts packages/world-local/src/queue.test.ts
  • pnpm vitest run packages/utils/src/get-port.test.ts -t \"identify workflow server|respect custom timeout|handle concurrent getWorkflowPort|return single port without probing\"
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/example
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/nextjs-turbopack
  • pnpm build in workbench/sveltekit and workbench/astro
  • Verified generated outputs contain v2/flow, v1/webhook, and no v2/webhook route

@vercel

vercelBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e20540c

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

This PR includes changesets to release 21 packages
NameType
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/corePatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/sveltekitPatch
@workflow/utilsPatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-testingPatch
workflowPatch
@workflow/rollupPatch
@workflow/vitePatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/nuxtPatch
@workflow/errorsPatch
@workflow/world-vercelPatch

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

@github-actions

github-actionsBot commented May 29, 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
💻 Local🥇 Nitro0.038s (-11.6% 🟢)1.006s (~)0.968s101.00x
💻 LocalExpress0.043s (-3.2%)1.005s (~)0.962s101.13x
🐘 PostgresNitro0.059s (-38.0% 🟢)1.012s (-3.0%)0.953s101.55x
💻 LocalNext.js (Turbopack)0.059s1.006s0.946s101.55x
🐘 PostgresExpress0.068s (+17.9% 🔺)1.012s (~)0.943s101.80x
🐘 PostgresNext.js (Turbopack)0.069s1.012s0.943s101.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.337s (+43.0% 🔺)2.430s (+13.8% 🔺)2.093s101.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-3.2%)2.006s (~)0.917s101.00x
🐘 PostgresNitro1.101s (-3.4%)2.009s (~)0.908s101.01x
💻 LocalNitro1.110s (-1.9%)2.006s (~)0.896s101.02x
🐘 PostgresExpress1.112s (-3.0%)2.010s (~)0.898s101.02x
💻 LocalNext.js (Turbopack)1.127s2.007s0.880s101.04x
🐘 PostgresNext.js (Turbopack)1.137s2.008s0.871s101.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.907s (+1.7%)4.032s (+5.9% 🔺)2.125s101.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.482s (-4.2%)11.022s (~)0.540s31.00x
💻 LocalExpress10.511s (-3.8%)11.021s (~)0.510s31.00x
🐘 PostgresNitro10.520s (-3.2%)11.014s (~)0.495s31.00x
🐘 PostgresExpress10.577s (-3.5%)11.015s (~)0.438s31.01x
💻 LocalNext.js (Turbopack)10.771s11.021s0.250s31.03x
🐘 PostgresNext.js (Turbopack)10.852s11.021s0.169s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.111s (-16.9% 🟢)16.261s (-18.8% 🟢)2.149s21.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.728s (-8.3% 🟢)14.026s (-6.7% 🟢)0.298s51.00x
🐘 PostgresNitro13.748s (-5.8% 🟢)14.021s (-6.7% 🟢)0.272s51.00x
🐘 PostgresExpress13.773s (-5.6% 🟢)14.020s (-6.7% 🟢)0.247s51.00x
💻 LocalNitro13.776s (-8.5% 🟢)14.028s (-12.5% 🟢)0.251s51.00x
💻 LocalNext.js (Turbopack)14.335s15.029s0.694s41.04x
🐘 PostgresNext.js (Turbopack)14.552s15.019s0.467s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express25.710s (-48.9% 🟢)27.665s (-47.4% 🟢)1.955s31.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.325s (-11.8% 🟢)13.016s (-9.0% 🟢)0.691s71.00x
💻 LocalNitro12.387s (-26.2% 🟢)13.025s (-23.5% 🟢)0.638s71.01x
💻 LocalExpress12.409s (-25.3% 🟢)13.024s (-23.5% 🟢)0.615s71.01x
🐘 PostgresExpress12.470s (-11.0% 🟢)13.019s (-10.8% 🟢)0.549s71.01x
💻 LocalNext.js (Turbopack)13.589s14.027s0.438s71.10x
🐘 PostgresNext.js (Turbopack)13.730s14.021s0.291s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express32.317s (-73.3% 🟢)34.350s (-72.2% 🟢)2.033s31.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.157s (-22.3% 🟢)2.006s (~)0.848s151.00x
🐘 PostgresNitro1.175s (-7.8% 🟢)2.008s (~)0.833s151.01x
🐘 PostgresExpress1.175s (-6.7% 🟢)2.007s (~)0.831s151.02x
🐘 PostgresNext.js (Turbopack)1.253s2.075s0.822s151.08x
💻 LocalNitro1.256s (-23.0% 🟢)2.005s (-3.3%)0.749s151.08x
💻 LocalNext.js (Turbopack)1.308s2.006s0.698s151.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.806s (-1.9%)4.468s (-3.4%)1.662s71.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.247s (-47.0% 🟢)2.009s (-33.2% 🟢)0.763s151.00x
🐘 PostgresExpress1.279s (-45.8% 🟢)2.007s (-33.3% 🟢)0.728s151.03x
🐘 PostgresNext.js (Turbopack)1.463s2.074s0.611s151.17x
💻 LocalExpress1.611s (-45.4% 🟢)2.006s (-41.9% 🟢)0.394s151.29x
💻 LocalNitro1.716s (-45.4% 🟢)2.006s (-48.4% 🟢)0.290s151.38x
💻 LocalNext.js (Turbopack)1.781s2.007s0.226s151.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.608s (~)5.581s (+9.2% 🔺)1.972s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.365s (-60.8% 🟢)2.008s (-49.9% 🟢)0.643s151.00x
🐘 PostgresExpress1.400s (-59.8% 🟢)2.006s (-50.0% 🟢)0.607s151.03x
🐘 PostgresNext.js (Turbopack)1.675s2.076s0.401s151.23x
💻 LocalExpress3.866s (-53.6% 🟢)4.296s (-52.4% 🟢)0.430s72.83x
💻 LocalNitro4.404s (-47.3% 🟢)5.012s (-44.4% 🟢)0.608s63.23x
💻 LocalNext.js (Turbopack)4.956s5.513s0.556s63.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.234s (+23.4% 🔺)6.789s (+10.8% 🔺)1.555s51.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.188s (-5.5% 🟢)2.009s (~)0.821s151.00x
🐘 PostgresNitro1.194s (-5.0% 🟢)2.009s (~)0.815s151.01x
🐘 PostgresNext.js (Turbopack)1.235s2.007s0.772s151.04x
💻 LocalNext.js (Turbopack)1.353s2.006s0.653s151.14x
💻 LocalNitro1.514s (-18.8% 🟢)2.006s (-14.3% 🟢)0.491s151.27x
💻 LocalExpress1.528s (-19.3% 🟢)2.006s (-15.1% 🟢)0.477s151.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.799s (+8.4% 🔺)4.196s (-3.5%)1.397s81.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.239s (-47.0% 🟢)2.009s (-33.3% 🟢)0.769s151.00x
🐘 PostgresExpress1.275s (-45.5% 🟢)2.008s (-33.3% 🟢)0.733s151.03x
🐘 PostgresNext.js (Turbopack)1.422s2.076s0.654s151.15x
💻 LocalNext.js (Turbopack)2.009s2.591s0.582s121.62x
💻 LocalNitro2.016s (-34.2% 🟢)2.592s (-33.3% 🟢)0.576s121.63x
💻 LocalExpress2.104s (-32.8% 🟢)2.507s (-33.4% 🟢)0.402s121.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.787s (+18.6% 🔺)5.467s (+14.1% 🔺)1.680s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.400s (-59.8% 🟢)2.008s (-49.9% 🟢)0.608s151.00x
🐘 PostgresExpress1.430s (-59.1% 🟢)2.010s (-49.9% 🟢)0.579s151.02x
🐘 PostgresNext.js (Turbopack)1.708s2.155s0.447s141.22x
💻 LocalExpress4.399s (-50.0% 🟢)5.181s (-44.1% 🟢)0.781s63.14x
💻 LocalNitro5.309s (-41.9% 🟢)5.848s (-41.7% 🟢)0.539s63.79x
💻 LocalNext.js (Turbopack)5.551s6.017s0.466s53.97x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.609s (-28.2% 🟢)6.579s (-19.6% 🟢)1.971s51.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.543s (-33.8% 🟢)1.007s (~)0.464s601.00x
💻 LocalExpress0.572s (-41.9% 🟢)1.004s (-6.7% 🟢)0.433s601.05x
🐘 PostgresExpress0.582s (-30.7% 🟢)1.041s (+1.8%)0.459s581.07x
💻 LocalNitro0.589s (-39.9% 🟢)1.005s (-8.1% 🟢)0.416s601.09x
🐘 PostgresNext.js (Turbopack)0.811s1.007s0.195s601.49x
💻 LocalNext.js (Turbopack)0.858s1.021s0.164s591.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.578s (-70.7% 🟢)7.244s (-66.0% 🟢)1.666s91.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.305s (-32.3% 🟢)2.029s (-3.4%)0.724s451.00x
🐘 PostgresExpress1.377s (-30.4% 🟢)2.029s (-10.1% 🟢)0.653s451.05x
💻 LocalExpress1.450s (-51.9% 🟢)2.006s (-44.1% 🟢)0.555s451.11x
💻 LocalNitro1.491s (-50.9% 🟢)2.006s (-46.6% 🟢)0.514s451.14x
🐘 PostgresNext.js (Turbopack)1.940s2.124s0.184s431.49x
💻 LocalNext.js (Turbopack)2.089s2.975s0.886s311.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.101s (-56.3% 🟢)17.599s (-52.2% 🟢)2.498s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.592s (-36.8% 🟢)3.058s (-33.6% 🟢)0.466s401.00x
🐘 PostgresExpress2.707s (-32.2% 🟢)3.085s (-29.4% 🟢)0.379s391.04x
💻 LocalExpress3.126s (-66.1% 🟢)3.735s (-62.7% 🟢)0.610s331.21x
💻 LocalNitro3.280s (-64.7% 🟢)3.944s (-60.6% 🟢)0.664s311.27x
🐘 PostgresNext.js (Turbopack)3.742s4.009s0.267s301.44x
💻 LocalNext.js (Turbopack)4.226s5.010s0.784s241.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express28.945s (-77.7% 🟢)31.551s (-76.1% 🟢)2.606s41.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.217s (-23.4% 🟢)1.006s (~)0.789s601.00x
🐘 PostgresExpress0.230s (-18.5% 🟢)1.006s (~)0.776s601.06x
🐘 PostgresNext.js (Turbopack)0.258s1.006s0.748s601.19x
💻 LocalExpress0.441s (-21.2% 🟢)1.021s (+1.7%)0.580s592.03x
💻 LocalNitro0.444s (-26.6% 🟢)1.004s (-1.7%)0.561s602.04x
💻 LocalNext.js (Turbopack)0.627s1.056s0.429s582.89x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.245s (+14.9% 🔺)4.082s (+12.2% 🔺)1.836s151.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.330s (-33.5% 🟢)1.006s (~)0.676s901.00x
🐘 PostgresExpress0.365s (-28.4% 🟢)1.007s (~)0.642s901.11x
🐘 PostgresNext.js (Turbopack)0.468s1.006s0.538s901.42x
💻 LocalExpress1.990s (-20.8% 🟢)2.494s (-17.1% 🟢)0.504s376.03x
💻 LocalNitro2.196s (-13.5% 🟢)2.766s (-8.1% 🟢)0.571s336.65x
💻 LocalNext.js (Turbopack)2.254s2.884s0.630s326.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.494s (+80.4% 🔺)7.214s (+50.1% 🔺)1.720s131.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.654s (-17.2% 🟢)1.006s (~)0.351s1201.00x
🐘 PostgresExpress0.701s (-14.4% 🟢)1.006s (-1.1%)0.305s1201.07x
🐘 PostgresNext.js (Turbopack)0.943s1.351s0.408s901.44x
💻 LocalExpress8.549s (-23.6% 🟢)9.097s (-23.8% 🟢)0.548s1413.07x
💻 LocalNitro9.450s (-15.6% 🟢)10.196s (-12.6% 🟢)0.746s1214.44x
💻 LocalNext.js (Turbopack)10.151s11.028s0.877s1115.52x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express12.410s (+67.2% 🔺)14.751s (+59.6% 🔺)2.340s91.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.149s (+477.2% 🔺)2.004s (+99.5% 🔺)0.010s (-16.5% 🟢)2.017s (+98.1% 🔺)0.868s101.00x
🐘 PostgresExpress1.161s (+465.8% 🔺)2.000s (+100.3% 🔺)0.001s (-25.0% 🟢)2.011s (+98.8% 🔺)0.850s101.01x
💻 LocalNitro1.162s (+443.6% 🔺)2.005s (+99.6% 🔺)0.011s (-13.6% 🟢)2.018s (+98.0% 🔺)0.856s101.01x
🐘 PostgresNitro1.162s (+466.8% 🔺)2.002s (+100.3% 🔺)0.001s (-26.7% 🟢)2.011s (+98.8% 🔺)0.849s101.01x
💻 LocalNext.js (Turbopack)1.203s2.004s0.010s2.018s0.815s101.05x
🐘 PostgresNext.js (Turbopack)1.227s2.001s0.001s2.011s0.784s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.143s (-14.4% 🟢)3.297s (-19.4% 🟢)1.808s (+88.1% 🔺)5.581s (~)3.437s101.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.562s (+150.3% 🔺)2.002s (+98.9% 🔺)0.004s (-11.3% 🟢)2.025s (+98.1% 🔺)0.463s301.00x
💻 LocalNitro1.565s (+86.6% 🔺)2.009s (+98.5% 🔺)0.010s (+6.0% 🔺)2.021s (+81.1% 🔺)0.456s301.00x
🐘 PostgresExpress1.602s (+154.3% 🔺)2.006s (+99.3% 🔺)0.004s (+0.9%)2.028s (+98.2% 🔺)0.425s301.03x
💻 LocalNext.js (Turbopack)1.708s2.008s0.010s2.021s0.312s301.09x
🐘 PostgresNext.js (Turbopack)1.743s2.009s0.004s2.024s0.281s301.12x
💻 LocalExpress1.756s (+131.9% 🔺)2.011s (+95.4% 🔺)0.009s (-1.7%)2.201s (+111.6% 🔺)0.445s281.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.788s (-11.0% 🟢)7.424s (-7.3% 🟢)0.461s (+12.7% 🔺)8.392s (-5.0% 🟢)2.604s81.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.691s (-28.7% 🟢)1.030s (-17.5% 🟢)0.000s (+24.1% 🔺)1.042s (-17.2% 🟢)0.351s581.00x
🐘 PostgresExpress0.725s (-24.5% 🟢)1.048s (-18.0% 🟢)0.000s (+21.1% 🔺)1.060s (-18.8% 🟢)0.335s571.05x
🐘 PostgresNext.js (Turbopack)0.802s1.072s0.000s1.079s0.277s561.16x
💻 LocalExpress1.330s (+8.6% 🔺)2.012s (~)0.000s (+40.0% 🔺)2.014s (~)0.684s301.92x
💻 LocalNitro1.428s (+16.8% 🔺)2.013s (~)0.000s (+33.3% 🔺)2.015s (~)0.587s302.07x
💻 LocalNext.js (Turbopack)1.482s2.013s0.000s2.016s0.534s302.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.411s (-8.8% 🟢)4.624s (-9.4% 🟢)0.000s (-100.0% 🟢)5.192s (-6.1% 🟢)1.781s121.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.460s (-18.5% 🟢)2.100s (-1.9%)0.000s (+93.1% 🔺)2.126s (-2.2%)0.666s291.00x
🐘 PostgresNext.js (Turbopack)1.551s2.144s0.000s2.152s0.601s281.06x
🐘 PostgresExpress1.625s (-8.3% 🟢)2.220s (+1.9%)0.000s (+Infinity% 🔺)2.233s (+1.5%)0.608s271.11x
💻 LocalNext.js (Turbopack)2.868s3.412s0.001s3.421s0.553s181.96x
💻 LocalExpress2.971s (-14.3% 🟢)3.607s (-10.6% 🟢)0.001s (-11.8% 🟢)3.615s (-10.4% 🟢)0.644s172.03x
💻 LocalNitro3.163s (-6.6% 🟢)3.902s (-3.2%)0.001s (+64.1% 🔺)3.905s (-3.2%)0.743s162.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.232s (+14.0% 🔺)6.901s (+14.6% 🔺)0.007s (+Infinity% 🔺)7.496s (+16.1% 🔺)2.264s91.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress14/21
🐘 PostgresNitro19/21
▲ VercelExpress21/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres13/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres18/21
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
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production96402151179
✅ 💻 Local Development161502191834
✅ 📦 Local Production161502191834
✅ 🐘 Local Postgres161502191834
✅ 📋 Other7410176917
Total6550010487598

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro105026
✅ example105026
✅ express105026
✅ fastify105026
✅ hono105026
✅ nitro105026
✅ nuxt105026
✅ sveltekit12407
✅ vite105026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable106025
✅ e2e-local-dev-tanstack-start-106025
✅ e2e-local-postgres-nest-stable106025
✅ e2e-local-postgres-tanstack-start-106025
✅ e2e-local-prod-nest-stable106025
✅ e2e-local-prod-tanstack-start-106025
✅ e2e-vercel-prod-tanstack-start105026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: cancelled
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: failure

Check the workflow run for details.

@pranaygp
pranaygp marked this pull request as ready for review May 29, 2026 22:02
@pranaygp
pranaygp requested a review from ijjk as a code ownerMay 29, 2026 22:02
CopilotAI review requested due to automatic review settings May 29, 2026 22:02
@pranaygp
pranaygp requested a review from a team as a code ownerMay 29, 2026 22:02

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the canonical workflow execution and webhook endpoints from /.well-known/workflow/v1/ to /.well-known/workflow/v2/. The combined flow handler at v2 now serves both workflow and step queue messages (the separate v1/step route is no longer emitted). The webhook endpoint is also moved to v2, while /.well-known/workflow/v1/webhook/:token remains supported as a compatibility alias across all integrations. The v1 directory continues to host manifest.json and webhook compatibility resources, and builders proactively clean up stale v1 execution artifacts from prior builds.

Changes:

  • Update all queue clients, builders, framework integrations, and tests to use /.well-known/workflow/v2/flow and /.well-known/workflow/v2/webhook/:token.
  • Preserve /.well-known/workflow/v1/webhook/:token as a compatibility route in Next, Nitro, Nest, Sveltekit, Astro, BOA, and standalone builds.
  • Clean stale v1 flow/step/config.json/manifest.json artifacts on each build/boot to avoid cached v1 outputs leaking into v5 deployments.

Reviewed changes

Copilot reviewed 46 out of 46 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
.changeset/workflow-v2-routes.mdNew changeset noting the v2 route migration for all affected packages.
.github/workflows/tests.yml, .github/workflows/e2e-community-world.ymlUpdate CI dev-test config paths to v2 generated routes.
AGENTS.mdDocument that execution routes are now v2; v1 retains manifest/webhook compatibility.
docs/content/docs/v5/**Documentation updated for v2 paths and v1 webhook compatibility (getting-started, how-it-works, hooks, webhooks, api-reference, changelog).
packages/astro/src/builder.tsGenerate to v2 dir, remove stale v1 flow.js/step.js, route v1 webhook to v2 handler, keep manifest in v1.
packages/builders/src/base-builder.tsComment updated to v2 webhook path.
packages/builders/src/standalone.tsRemove stale v1 flow.mjs/step.mjs; build both v2 and v1 webhook bundles; manifest stays in v1.
packages/builders/src/vercel-build-output-api.tsClean v1 flow.func/step.func/webhook; emit v2 flow/webhook funcs; add Build Output route rewrite from v1 webhook to v2.
packages/cli/src/commands/health.ts, packages/cli/src/lib/config/workflow-config.tsUse v2 paths; rename steps bundle to __step_registrations.mjs.
packages/core/e2e/{e2e,local-build}.test.tsTests target v2 endpoints; one webhook test retained on v1 to validate compatibility.
packages/core/src/{create-hook,workflow/create-hook,runtime/world-init}.tsWebhook URL/doc strings updated to v2.
packages/nest/src/workflow.controller.ts, packages/nest/README.mdController exposes v2 flow + v2 webhook + v1 legacy webhook (delegating to v2).
packages/next/src/builder-deferred.ts, builder-eager.ts, builder.ts, index.test.tsGenerate to v2; write/copy webhook stubs for both v1 and v2; cleanup stale v1 routes/config; update deferred entries; tighten watch-mode invariant.
packages/nitro/src/{index,vite}.ts, index.test.tsRegister both v1 and v2 webhook virtual handlers; v2 flow handler; functionRules updated; middleware matcher widened.
packages/sveltekit/src/{builder,index}.tsGenerate to v2; build both v1 and v2 webhook routes; cleanup stale v1 flow/step; manifest stays in v1; .vc-config path updated to v2.
packages/utils/src/get-port.ts, get-port.test.tsProbe endpoint updated to v2.
packages/world-local/src/queue.ts, packages/world-postgres/src/queue.ts, queue.test.ts, README.md, HOW_IT_WORKS.mdRoute all step and workflow queue messages to the v2 flow endpoint.
packages/world-testing/{package.json,src/server.mts,scripts/generate-well-known-dts.mjs}Import v2 flow handler; generate v2 flow/webhook + v1 webhook dts stubs; copy both v1 and v2 mjs into dist.
scripts/create-test-matrix.mjsDEV test config paths updated to v2.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Request Changes — branch is too stale; merging as-is reverts at least three landed PRs

The architectural direction is sound: moving the combined execution endpoint to /v2/flow while keeping the webhook + manifest on /v1 is the right call for v5 (the v4-stable URL contract stays intact, the v5-only behavioral change gets its own path). The PR description's reasoning matches the v5 spec. Approving that direction.

However, the branch is dated May 26 (base b0d0561af) and was last touched June 5 without a rebase. Several PRs landed on main after the base, and the codex diff against current main shows those changes being deleted. Until the branch is rebased and the regressions are vetted, this is unsafe to merge.

Regressions caused by stale base

1. V8 regex stack overflow fix (#930886fe3, Peter, May 27) — reverted

packages/next/src/builder-deferred.tsextractBundleSourceFiles would crash with RangeError: Maximum call stack size exceeded at RegExpStringIterator.next on bundles with multi-MB inline base64 sourcemaps. Peter replaced the matchAll(/...[A-Za-z0-9+/=]+.../g) with a literal-prefix scan + manual base64 alphabet loop. This PR's diff puts the broken regex back:

- // Extract inline base64 sourcemaps via string scanning. A previous- // implementation used `bundleContents.matchAll(/...[A-Za-z0-9+/=]+.../g)`- // which overflows V8's regex stack ...- // [60-line scan loop]+ const sourceMapMatches = bundleContents.matchAll(+ /\/\/# sourceMappingURL=data:application\/json[^,]*;base64,([A-Za-z0-9+/=]+)/g+ );

This was added specifically because inline sourcemaps (#1799) became universal across workspace packages and the bundles got large enough to trip V8's irregexp recursion. The crash was tied to a separate branch where it surfaced first, but the underlying hazard is general — every Next builder run is now vulnerable to it.

2. Nitro dashboard handler (#2110, June 2) — reverted

packages/nitro/src/index.ts loses ~75 lines: the entire addDashboardHandler() function, the addDashboardHandler(nitro) call in dev mode, and the createRequire/pathToFileURL imports it needs. /_workflow dev UI dashboard goes away.

Verified: git show origin/main:packages/nitro/src/index.ts | grep -c addDashboardHandler = 2; git show pr-2154:packages/nitro/src/index.ts | grep -c addDashboardHandler = 0.

3. Lazy step route imports (#2263, JJ, June 5) — reverted

packages/next/src/builder-deferred.ts loses 263 lines that JJ added: createDeferredFlowRoute, createDeferredStepSideEffectImports, getDeferredRouteImportSpecifier, resolveDeferredRouteImportFilePath, resolvePackageSourceDistFilePathForRouteImport, findPackageRootForRouteImportSource, createDeferredStepManifest, resolveBuiltInStepFilesForManifest, mergeWorkflowManifest. The replacement is a single createCombinedBundle() call.

It's plausible that createCombinedBundle actually subsumes what those helpers were doing (the base builder already implements the combined-bundle pattern used by sveltekit/nitro/nest/eager-next), and JJ's PR may have been an interim approach. But the codex diff doesn't make that case — it just deletes the helpers. The accompanying packages/next/src/builder-deferred.test.ts (137 lines added by #2263) isn't touched, so any tests that referenced the deleted helpers will break. And whatever bug #2263 was fixing ("lazy step route imports") may resurface depending on how createCombinedBundle differs.

4. Lockfile / version churn

packages/world-testing/package.json reverts:

  • @hono/node-server 1.19.13 → 1.19.9 (downgrade)
  • hono 4.12.21 → 4.12.3 (downgrade)
  • own version 5.0.0-beta.12 → 5.0.0-beta.7
  • 5 CHANGELOG.md entries removed (beta.8 through beta.12)

These are all stale-branch artifacts from being forked before recent version bumps and dependency updates landed. They'll resolve on rebase, but they're a useful signal for how far behind this branch is.

Status check evidence

The PR's commit e20540c6e ("Keep webhook route on v1", June 5) was never run through CI — only Vercel Agent Review, DCO, Socket, and preview deploys ran on it. The earlier commit d4ef02406 (May 29) ran the full suite with E2E Required Check: failure and Unit Tests (windows-latest): failure. Even if those are flaky, no CI evidence currently exists that the branch in its current state builds, lints, and tests on Linux. mergeStateStatus: DIRTY / mergeable: CONFLICTING confirms there's at least one merge conflict (docs/content/docs/v5/changelog/eager-processing.mdx).

Architectural concerns (separate from staleness)

Workflow-server coordination

The Vercel workflow-server (out of this repo) is what calls into the user app at /v1/flow / /v1/step today. If this PR ships and the user app stops exposing /v1/flow and /v1/step, dispatches from workflow-server will 404 unless workflow-server already knows to:

  1. Dispatch to /v2/flow for new-spec deployments, AND
  2. Fall back to /v1/flow + /v1/step for older deployments that haven't redeployed with the v2 SDK.

The PR doesn't say which workflow-server version is required, and there's no smoke test exercising a mixed-version scenario. Please confirm:

  • Workflow-server already dispatches to /v2/flow for v5-spec deployments
  • Either workflow-server retains /v1/flow + /v1/step fallback during rollout, OR all v5 deployments get re-built before this lands
  • The Vercel beta-channel rollout sequencing is documented somewhere

If the dispatch logic is already version-aware (e.g. driven by manifest contents the workflow-server reads), saying so in the PR description would be enough.

Patch bump?

12 packages all get patch bumps for what is effectively a public-route relocation. On the beta channel patch doesn't matter (changesets always rolls beta.N), but if this ever has to be backported (the PR description says it won't be), patch would be the wrong semver. Since the PR explicitly says no backport, this is fine, but worth a sentence: "Patch is acceptable on the v5/beta channel; this route change is a v5 spec implementation detail, not a public API change."

Things to verify after rebase

Once rebased onto current main:

  1. Re-confirm createCombinedBundle produces equivalent output to createDeferredFlowRoute for the deferred-builder path. The key thing JJ's PR #2263 was solving (per the title — "Fix Next lazy step route imports") needs to either be preserved by createCombinedBundle or explicitly handled separately.
  2. Re-verify extractBundleSourceFiles keeps the string-scan implementation (not the regex).
  3. Re-verify addDashboardHandler stays in packages/nitro/src/index.ts.
  4. Run pnpm turbo run build --filter='!./workbench/*' from a clean state.
  5. Re-run E2E (especially nextjs-webpack dev, which was the canary for the V8 crash).

What I verified locally

  • Checked out PR head onto current main merge base; confirmed the three regressions above via git show against origin/main
  • Confirmed the changeset is appropriately scoped to packages with real changes (modulo the docs file which is in changeset ignore)
  • The route-prefix migration itself (paths in builders, tests, docs, CLI, get-port probe) is consistent across the 38 files — /v2/flow everywhere, /v1/webhook everywhere, /v1/manifest.json everywhere

Bottom line

The direction is right and most of the route-rename mechanics look correct. The blocker is the staleness — this PR was generated by a codex agent from a May 26 branch and the agent didn't notice that meaningful code on main got deleted in the process. Rebase, re-run CI, and re-verify the three reverts are restored.

Holding the approve until the rebase shows green and confirms the three referenced PRs survive.

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.

3 participants

@pranaygp@TooTallNate
, '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" + '
[codex] Migrate workflow execution routes to v2 by pranaygp · Pull Request #2154 · vercel/workflow · GitHub
Skip to content

[codex] Migrate workflow execution routes to v2 - #2154

Open
pranaygp wants to merge 2 commits into
mainfrom
pranaygp/codex/workflow-v2-routes
Open

[codex] Migrate workflow execution routes to v2#2154
pranaygp wants to merge 2 commits into
mainfrom
pranaygp/codex/workflow-v2-routes

Conversation

@pranaygp

@pranaygppranaygp commented May 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move the canonical combined execution endpoint from /.well-known/workflow/v1/flow to /.well-known/workflow/v2/flow and stop emitting the separate v1 step route.
  • Keep the webhook endpoint at /.well-known/workflow/v1/webhook and the public manifest under /.well-known/workflow/v1 across supported integrations and build targets.
  • Remove stale v1 flow/step generated artifacts at build time and update active v5 documentation, route tests, matrices, and changesets.

Why

Workflow v5 uses the combined flow handler, so the execution route has a materially different contract from the v4 split flow/step model and moves to v2. The webhook route did not materially change, so it remains on v1 rather than introducing an unnecessary webhook URL migration.

Backporting

Do not backport this PR to stable: this changes the v5/main execution route contract and does not apply to the v4 stable surface.

Validation

  • pnpm build
  • Focused Biome formatting and error-level lint checks for changed TypeScript/JavaScript files
  • pnpm vitest run packages/next/src/index.test.ts packages/nitro/src/index.test.ts packages/world-postgres/src/queue.test.ts packages/world-local/src/queue.test.ts
  • pnpm vitest run packages/utils/src/get-port.test.ts -t \"identify workflow server|respect custom timeout|handle concurrent getWorkflowPort|return single port without probing\"
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/example
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/nextjs-turbopack
  • pnpm build in workbench/sveltekit and workbench/astro
  • Verified generated outputs contain v2/flow, v1/webhook, and no v2/webhook route

@vercel

vercelBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e20540c

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

This PR includes changesets to release 21 packages
NameType
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/corePatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/sveltekitPatch
@workflow/utilsPatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-testingPatch
workflowPatch
@workflow/rollupPatch
@workflow/vitePatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/nuxtPatch
@workflow/errorsPatch
@workflow/world-vercelPatch

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

@github-actions

github-actionsBot commented May 29, 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
💻 Local🥇 Nitro0.038s (-11.6% 🟢)1.006s (~)0.968s101.00x
💻 LocalExpress0.043s (-3.2%)1.005s (~)0.962s101.13x
🐘 PostgresNitro0.059s (-38.0% 🟢)1.012s (-3.0%)0.953s101.55x
💻 LocalNext.js (Turbopack)0.059s1.006s0.946s101.55x
🐘 PostgresExpress0.068s (+17.9% 🔺)1.012s (~)0.943s101.80x
🐘 PostgresNext.js (Turbopack)0.069s1.012s0.943s101.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.337s (+43.0% 🔺)2.430s (+13.8% 🔺)2.093s101.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-3.2%)2.006s (~)0.917s101.00x
🐘 PostgresNitro1.101s (-3.4%)2.009s (~)0.908s101.01x
💻 LocalNitro1.110s (-1.9%)2.006s (~)0.896s101.02x
🐘 PostgresExpress1.112s (-3.0%)2.010s (~)0.898s101.02x
💻 LocalNext.js (Turbopack)1.127s2.007s0.880s101.04x
🐘 PostgresNext.js (Turbopack)1.137s2.008s0.871s101.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.907s (+1.7%)4.032s (+5.9% 🔺)2.125s101.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.482s (-4.2%)11.022s (~)0.540s31.00x
💻 LocalExpress10.511s (-3.8%)11.021s (~)0.510s31.00x
🐘 PostgresNitro10.520s (-3.2%)11.014s (~)0.495s31.00x
🐘 PostgresExpress10.577s (-3.5%)11.015s (~)0.438s31.01x
💻 LocalNext.js (Turbopack)10.771s11.021s0.250s31.03x
🐘 PostgresNext.js (Turbopack)10.852s11.021s0.169s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.111s (-16.9% 🟢)16.261s (-18.8% 🟢)2.149s21.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.728s (-8.3% 🟢)14.026s (-6.7% 🟢)0.298s51.00x
🐘 PostgresNitro13.748s (-5.8% 🟢)14.021s (-6.7% 🟢)0.272s51.00x
🐘 PostgresExpress13.773s (-5.6% 🟢)14.020s (-6.7% 🟢)0.247s51.00x
💻 LocalNitro13.776s (-8.5% 🟢)14.028s (-12.5% 🟢)0.251s51.00x
💻 LocalNext.js (Turbopack)14.335s15.029s0.694s41.04x
🐘 PostgresNext.js (Turbopack)14.552s15.019s0.467s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express25.710s (-48.9% 🟢)27.665s (-47.4% 🟢)1.955s31.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.325s (-11.8% 🟢)13.016s (-9.0% 🟢)0.691s71.00x
💻 LocalNitro12.387s (-26.2% 🟢)13.025s (-23.5% 🟢)0.638s71.01x
💻 LocalExpress12.409s (-25.3% 🟢)13.024s (-23.5% 🟢)0.615s71.01x
🐘 PostgresExpress12.470s (-11.0% 🟢)13.019s (-10.8% 🟢)0.549s71.01x
💻 LocalNext.js (Turbopack)13.589s14.027s0.438s71.10x
🐘 PostgresNext.js (Turbopack)13.730s14.021s0.291s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express32.317s (-73.3% 🟢)34.350s (-72.2% 🟢)2.033s31.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.157s (-22.3% 🟢)2.006s (~)0.848s151.00x
🐘 PostgresNitro1.175s (-7.8% 🟢)2.008s (~)0.833s151.01x
🐘 PostgresExpress1.175s (-6.7% 🟢)2.007s (~)0.831s151.02x
🐘 PostgresNext.js (Turbopack)1.253s2.075s0.822s151.08x
💻 LocalNitro1.256s (-23.0% 🟢)2.005s (-3.3%)0.749s151.08x
💻 LocalNext.js (Turbopack)1.308s2.006s0.698s151.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.806s (-1.9%)4.468s (-3.4%)1.662s71.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.247s (-47.0% 🟢)2.009s (-33.2% 🟢)0.763s151.00x
🐘 PostgresExpress1.279s (-45.8% 🟢)2.007s (-33.3% 🟢)0.728s151.03x
🐘 PostgresNext.js (Turbopack)1.463s2.074s0.611s151.17x
💻 LocalExpress1.611s (-45.4% 🟢)2.006s (-41.9% 🟢)0.394s151.29x
💻 LocalNitro1.716s (-45.4% 🟢)2.006s (-48.4% 🟢)0.290s151.38x
💻 LocalNext.js (Turbopack)1.781s2.007s0.226s151.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.608s (~)5.581s (+9.2% 🔺)1.972s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.365s (-60.8% 🟢)2.008s (-49.9% 🟢)0.643s151.00x
🐘 PostgresExpress1.400s (-59.8% 🟢)2.006s (-50.0% 🟢)0.607s151.03x
🐘 PostgresNext.js (Turbopack)1.675s2.076s0.401s151.23x
💻 LocalExpress3.866s (-53.6% 🟢)4.296s (-52.4% 🟢)0.430s72.83x
💻 LocalNitro4.404s (-47.3% 🟢)5.012s (-44.4% 🟢)0.608s63.23x
💻 LocalNext.js (Turbopack)4.956s5.513s0.556s63.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.234s (+23.4% 🔺)6.789s (+10.8% 🔺)1.555s51.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.188s (-5.5% 🟢)2.009s (~)0.821s151.00x
🐘 PostgresNitro1.194s (-5.0% 🟢)2.009s (~)0.815s151.01x
🐘 PostgresNext.js (Turbopack)1.235s2.007s0.772s151.04x
💻 LocalNext.js (Turbopack)1.353s2.006s0.653s151.14x
💻 LocalNitro1.514s (-18.8% 🟢)2.006s (-14.3% 🟢)0.491s151.27x
💻 LocalExpress1.528s (-19.3% 🟢)2.006s (-15.1% 🟢)0.477s151.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.799s (+8.4% 🔺)4.196s (-3.5%)1.397s81.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.239s (-47.0% 🟢)2.009s (-33.3% 🟢)0.769s151.00x
🐘 PostgresExpress1.275s (-45.5% 🟢)2.008s (-33.3% 🟢)0.733s151.03x
🐘 PostgresNext.js (Turbopack)1.422s2.076s0.654s151.15x
💻 LocalNext.js (Turbopack)2.009s2.591s0.582s121.62x
💻 LocalNitro2.016s (-34.2% 🟢)2.592s (-33.3% 🟢)0.576s121.63x
💻 LocalExpress2.104s (-32.8% 🟢)2.507s (-33.4% 🟢)0.402s121.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.787s (+18.6% 🔺)5.467s (+14.1% 🔺)1.680s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.400s (-59.8% 🟢)2.008s (-49.9% 🟢)0.608s151.00x
🐘 PostgresExpress1.430s (-59.1% 🟢)2.010s (-49.9% 🟢)0.579s151.02x
🐘 PostgresNext.js (Turbopack)1.708s2.155s0.447s141.22x
💻 LocalExpress4.399s (-50.0% 🟢)5.181s (-44.1% 🟢)0.781s63.14x
💻 LocalNitro5.309s (-41.9% 🟢)5.848s (-41.7% 🟢)0.539s63.79x
💻 LocalNext.js (Turbopack)5.551s6.017s0.466s53.97x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.609s (-28.2% 🟢)6.579s (-19.6% 🟢)1.971s51.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.543s (-33.8% 🟢)1.007s (~)0.464s601.00x
💻 LocalExpress0.572s (-41.9% 🟢)1.004s (-6.7% 🟢)0.433s601.05x
🐘 PostgresExpress0.582s (-30.7% 🟢)1.041s (+1.8%)0.459s581.07x
💻 LocalNitro0.589s (-39.9% 🟢)1.005s (-8.1% 🟢)0.416s601.09x
🐘 PostgresNext.js (Turbopack)0.811s1.007s0.195s601.49x
💻 LocalNext.js (Turbopack)0.858s1.021s0.164s591.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.578s (-70.7% 🟢)7.244s (-66.0% 🟢)1.666s91.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.305s (-32.3% 🟢)2.029s (-3.4%)0.724s451.00x
🐘 PostgresExpress1.377s (-30.4% 🟢)2.029s (-10.1% 🟢)0.653s451.05x
💻 LocalExpress1.450s (-51.9% 🟢)2.006s (-44.1% 🟢)0.555s451.11x
💻 LocalNitro1.491s (-50.9% 🟢)2.006s (-46.6% 🟢)0.514s451.14x
🐘 PostgresNext.js (Turbopack)1.940s2.124s0.184s431.49x
💻 LocalNext.js (Turbopack)2.089s2.975s0.886s311.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.101s (-56.3% 🟢)17.599s (-52.2% 🟢)2.498s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.592s (-36.8% 🟢)3.058s (-33.6% 🟢)0.466s401.00x
🐘 PostgresExpress2.707s (-32.2% 🟢)3.085s (-29.4% 🟢)0.379s391.04x
💻 LocalExpress3.126s (-66.1% 🟢)3.735s (-62.7% 🟢)0.610s331.21x
💻 LocalNitro3.280s (-64.7% 🟢)3.944s (-60.6% 🟢)0.664s311.27x
🐘 PostgresNext.js (Turbopack)3.742s4.009s0.267s301.44x
💻 LocalNext.js (Turbopack)4.226s5.010s0.784s241.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express28.945s (-77.7% 🟢)31.551s (-76.1% 🟢)2.606s41.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.217s (-23.4% 🟢)1.006s (~)0.789s601.00x
🐘 PostgresExpress0.230s (-18.5% 🟢)1.006s (~)0.776s601.06x
🐘 PostgresNext.js (Turbopack)0.258s1.006s0.748s601.19x
💻 LocalExpress0.441s (-21.2% 🟢)1.021s (+1.7%)0.580s592.03x
💻 LocalNitro0.444s (-26.6% 🟢)1.004s (-1.7%)0.561s602.04x
💻 LocalNext.js (Turbopack)0.627s1.056s0.429s582.89x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.245s (+14.9% 🔺)4.082s (+12.2% 🔺)1.836s151.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.330s (-33.5% 🟢)1.006s (~)0.676s901.00x
🐘 PostgresExpress0.365s (-28.4% 🟢)1.007s (~)0.642s901.11x
🐘 PostgresNext.js (Turbopack)0.468s1.006s0.538s901.42x
💻 LocalExpress1.990s (-20.8% 🟢)2.494s (-17.1% 🟢)0.504s376.03x
💻 LocalNitro2.196s (-13.5% 🟢)2.766s (-8.1% 🟢)0.571s336.65x
💻 LocalNext.js (Turbopack)2.254s2.884s0.630s326.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.494s (+80.4% 🔺)7.214s (+50.1% 🔺)1.720s131.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.654s (-17.2% 🟢)1.006s (~)0.351s1201.00x
🐘 PostgresExpress0.701s (-14.4% 🟢)1.006s (-1.1%)0.305s1201.07x
🐘 PostgresNext.js (Turbopack)0.943s1.351s0.408s901.44x
💻 LocalExpress8.549s (-23.6% 🟢)9.097s (-23.8% 🟢)0.548s1413.07x
💻 LocalNitro9.450s (-15.6% 🟢)10.196s (-12.6% 🟢)0.746s1214.44x
💻 LocalNext.js (Turbopack)10.151s11.028s0.877s1115.52x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express12.410s (+67.2% 🔺)14.751s (+59.6% 🔺)2.340s91.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.149s (+477.2% 🔺)2.004s (+99.5% 🔺)0.010s (-16.5% 🟢)2.017s (+98.1% 🔺)0.868s101.00x
🐘 PostgresExpress1.161s (+465.8% 🔺)2.000s (+100.3% 🔺)0.001s (-25.0% 🟢)2.011s (+98.8% 🔺)0.850s101.01x
💻 LocalNitro1.162s (+443.6% 🔺)2.005s (+99.6% 🔺)0.011s (-13.6% 🟢)2.018s (+98.0% 🔺)0.856s101.01x
🐘 PostgresNitro1.162s (+466.8% 🔺)2.002s (+100.3% 🔺)0.001s (-26.7% 🟢)2.011s (+98.8% 🔺)0.849s101.01x
💻 LocalNext.js (Turbopack)1.203s2.004s0.010s2.018s0.815s101.05x
🐘 PostgresNext.js (Turbopack)1.227s2.001s0.001s2.011s0.784s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.143s (-14.4% 🟢)3.297s (-19.4% 🟢)1.808s (+88.1% 🔺)5.581s (~)3.437s101.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.562s (+150.3% 🔺)2.002s (+98.9% 🔺)0.004s (-11.3% 🟢)2.025s (+98.1% 🔺)0.463s301.00x
💻 LocalNitro1.565s (+86.6% 🔺)2.009s (+98.5% 🔺)0.010s (+6.0% 🔺)2.021s (+81.1% 🔺)0.456s301.00x
🐘 PostgresExpress1.602s (+154.3% 🔺)2.006s (+99.3% 🔺)0.004s (+0.9%)2.028s (+98.2% 🔺)0.425s301.03x
💻 LocalNext.js (Turbopack)1.708s2.008s0.010s2.021s0.312s301.09x
🐘 PostgresNext.js (Turbopack)1.743s2.009s0.004s2.024s0.281s301.12x
💻 LocalExpress1.756s (+131.9% 🔺)2.011s (+95.4% 🔺)0.009s (-1.7%)2.201s (+111.6% 🔺)0.445s281.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.788s (-11.0% 🟢)7.424s (-7.3% 🟢)0.461s (+12.7% 🔺)8.392s (-5.0% 🟢)2.604s81.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.691s (-28.7% 🟢)1.030s (-17.5% 🟢)0.000s (+24.1% 🔺)1.042s (-17.2% 🟢)0.351s581.00x
🐘 PostgresExpress0.725s (-24.5% 🟢)1.048s (-18.0% 🟢)0.000s (+21.1% 🔺)1.060s (-18.8% 🟢)0.335s571.05x
🐘 PostgresNext.js (Turbopack)0.802s1.072s0.000s1.079s0.277s561.16x
💻 LocalExpress1.330s (+8.6% 🔺)2.012s (~)0.000s (+40.0% 🔺)2.014s (~)0.684s301.92x
💻 LocalNitro1.428s (+16.8% 🔺)2.013s (~)0.000s (+33.3% 🔺)2.015s (~)0.587s302.07x
💻 LocalNext.js (Turbopack)1.482s2.013s0.000s2.016s0.534s302.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.411s (-8.8% 🟢)4.624s (-9.4% 🟢)0.000s (-100.0% 🟢)5.192s (-6.1% 🟢)1.781s121.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.460s (-18.5% 🟢)2.100s (-1.9%)0.000s (+93.1% 🔺)2.126s (-2.2%)0.666s291.00x
🐘 PostgresNext.js (Turbopack)1.551s2.144s0.000s2.152s0.601s281.06x
🐘 PostgresExpress1.625s (-8.3% 🟢)2.220s (+1.9%)0.000s (+Infinity% 🔺)2.233s (+1.5%)0.608s271.11x
💻 LocalNext.js (Turbopack)2.868s3.412s0.001s3.421s0.553s181.96x
💻 LocalExpress2.971s (-14.3% 🟢)3.607s (-10.6% 🟢)0.001s (-11.8% 🟢)3.615s (-10.4% 🟢)0.644s172.03x
💻 LocalNitro3.163s (-6.6% 🟢)3.902s (-3.2%)0.001s (+64.1% 🔺)3.905s (-3.2%)0.743s162.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.232s (+14.0% 🔺)6.901s (+14.6% 🔺)0.007s (+Infinity% 🔺)7.496s (+16.1% 🔺)2.264s91.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress14/21
🐘 PostgresNitro19/21
▲ VercelExpress21/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres13/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres18/21
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
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production96402151179
✅ 💻 Local Development161502191834
✅ 📦 Local Production161502191834
✅ 🐘 Local Postgres161502191834
✅ 📋 Other7410176917
Total6550010487598

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro105026
✅ example105026
✅ express105026
✅ fastify105026
✅ hono105026
✅ nitro105026
✅ nuxt105026
✅ sveltekit12407
✅ vite105026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable106025
✅ e2e-local-dev-tanstack-start-106025
✅ e2e-local-postgres-nest-stable106025
✅ e2e-local-postgres-tanstack-start-106025
✅ e2e-local-prod-nest-stable106025
✅ e2e-local-prod-tanstack-start-106025
✅ e2e-vercel-prod-tanstack-start105026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: cancelled
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: failure

Check the workflow run for details.

@pranaygp
pranaygp marked this pull request as ready for review May 29, 2026 22:02
@pranaygp
pranaygp requested a review from ijjk as a code ownerMay 29, 2026 22:02
CopilotAI review requested due to automatic review settings May 29, 2026 22:02
@pranaygp
pranaygp requested a review from a team as a code ownerMay 29, 2026 22:02

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the canonical workflow execution and webhook endpoints from /.well-known/workflow/v1/ to /.well-known/workflow/v2/. The combined flow handler at v2 now serves both workflow and step queue messages (the separate v1/step route is no longer emitted). The webhook endpoint is also moved to v2, while /.well-known/workflow/v1/webhook/:token remains supported as a compatibility alias across all integrations. The v1 directory continues to host manifest.json and webhook compatibility resources, and builders proactively clean up stale v1 execution artifacts from prior builds.

Changes:

  • Update all queue clients, builders, framework integrations, and tests to use /.well-known/workflow/v2/flow and /.well-known/workflow/v2/webhook/:token.
  • Preserve /.well-known/workflow/v1/webhook/:token as a compatibility route in Next, Nitro, Nest, Sveltekit, Astro, BOA, and standalone builds.
  • Clean stale v1 flow/step/config.json/manifest.json artifacts on each build/boot to avoid cached v1 outputs leaking into v5 deployments.

Reviewed changes

Copilot reviewed 46 out of 46 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
.changeset/workflow-v2-routes.mdNew changeset noting the v2 route migration for all affected packages.
.github/workflows/tests.yml, .github/workflows/e2e-community-world.ymlUpdate CI dev-test config paths to v2 generated routes.
AGENTS.mdDocument that execution routes are now v2; v1 retains manifest/webhook compatibility.
docs/content/docs/v5/**Documentation updated for v2 paths and v1 webhook compatibility (getting-started, how-it-works, hooks, webhooks, api-reference, changelog).
packages/astro/src/builder.tsGenerate to v2 dir, remove stale v1 flow.js/step.js, route v1 webhook to v2 handler, keep manifest in v1.
packages/builders/src/base-builder.tsComment updated to v2 webhook path.
packages/builders/src/standalone.tsRemove stale v1 flow.mjs/step.mjs; build both v2 and v1 webhook bundles; manifest stays in v1.
packages/builders/src/vercel-build-output-api.tsClean v1 flow.func/step.func/webhook; emit v2 flow/webhook funcs; add Build Output route rewrite from v1 webhook to v2.
packages/cli/src/commands/health.ts, packages/cli/src/lib/config/workflow-config.tsUse v2 paths; rename steps bundle to __step_registrations.mjs.
packages/core/e2e/{e2e,local-build}.test.tsTests target v2 endpoints; one webhook test retained on v1 to validate compatibility.
packages/core/src/{create-hook,workflow/create-hook,runtime/world-init}.tsWebhook URL/doc strings updated to v2.
packages/nest/src/workflow.controller.ts, packages/nest/README.mdController exposes v2 flow + v2 webhook + v1 legacy webhook (delegating to v2).
packages/next/src/builder-deferred.ts, builder-eager.ts, builder.ts, index.test.tsGenerate to v2; write/copy webhook stubs for both v1 and v2; cleanup stale v1 routes/config; update deferred entries; tighten watch-mode invariant.
packages/nitro/src/{index,vite}.ts, index.test.tsRegister both v1 and v2 webhook virtual handlers; v2 flow handler; functionRules updated; middleware matcher widened.
packages/sveltekit/src/{builder,index}.tsGenerate to v2; build both v1 and v2 webhook routes; cleanup stale v1 flow/step; manifest stays in v1; .vc-config path updated to v2.
packages/utils/src/get-port.ts, get-port.test.tsProbe endpoint updated to v2.
packages/world-local/src/queue.ts, packages/world-postgres/src/queue.ts, queue.test.ts, README.md, HOW_IT_WORKS.mdRoute all step and workflow queue messages to the v2 flow endpoint.
packages/world-testing/{package.json,src/server.mts,scripts/generate-well-known-dts.mjs}Import v2 flow handler; generate v2 flow/webhook + v1 webhook dts stubs; copy both v1 and v2 mjs into dist.
scripts/create-test-matrix.mjsDEV test config paths updated to v2.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Request Changes — branch is too stale; merging as-is reverts at least three landed PRs

The architectural direction is sound: moving the combined execution endpoint to /v2/flow while keeping the webhook + manifest on /v1 is the right call for v5 (the v4-stable URL contract stays intact, the v5-only behavioral change gets its own path). The PR description's reasoning matches the v5 spec. Approving that direction.

However, the branch is dated May 26 (base b0d0561af) and was last touched June 5 without a rebase. Several PRs landed on main after the base, and the codex diff against current main shows those changes being deleted. Until the branch is rebased and the regressions are vetted, this is unsafe to merge.

Regressions caused by stale base

1. V8 regex stack overflow fix (#930886fe3, Peter, May 27) — reverted

packages/next/src/builder-deferred.tsextractBundleSourceFiles would crash with RangeError: Maximum call stack size exceeded at RegExpStringIterator.next on bundles with multi-MB inline base64 sourcemaps. Peter replaced the matchAll(/...[A-Za-z0-9+/=]+.../g) with a literal-prefix scan + manual base64 alphabet loop. This PR's diff puts the broken regex back:

- // Extract inline base64 sourcemaps via string scanning. A previous- // implementation used `bundleContents.matchAll(/...[A-Za-z0-9+/=]+.../g)`- // which overflows V8's regex stack ...- // [60-line scan loop]+ const sourceMapMatches = bundleContents.matchAll(+ /\/\/# sourceMappingURL=data:application\/json[^,]*;base64,([A-Za-z0-9+/=]+)/g+ );

This was added specifically because inline sourcemaps (#1799) became universal across workspace packages and the bundles got large enough to trip V8's irregexp recursion. The crash was tied to a separate branch where it surfaced first, but the underlying hazard is general — every Next builder run is now vulnerable to it.

2. Nitro dashboard handler (#2110, June 2) — reverted

packages/nitro/src/index.ts loses ~75 lines: the entire addDashboardHandler() function, the addDashboardHandler(nitro) call in dev mode, and the createRequire/pathToFileURL imports it needs. /_workflow dev UI dashboard goes away.

Verified: git show origin/main:packages/nitro/src/index.ts | grep -c addDashboardHandler = 2; git show pr-2154:packages/nitro/src/index.ts | grep -c addDashboardHandler = 0.

3. Lazy step route imports (#2263, JJ, June 5) — reverted

packages/next/src/builder-deferred.ts loses 263 lines that JJ added: createDeferredFlowRoute, createDeferredStepSideEffectImports, getDeferredRouteImportSpecifier, resolveDeferredRouteImportFilePath, resolvePackageSourceDistFilePathForRouteImport, findPackageRootForRouteImportSource, createDeferredStepManifest, resolveBuiltInStepFilesForManifest, mergeWorkflowManifest. The replacement is a single createCombinedBundle() call.

It's plausible that createCombinedBundle actually subsumes what those helpers were doing (the base builder already implements the combined-bundle pattern used by sveltekit/nitro/nest/eager-next), and JJ's PR may have been an interim approach. But the codex diff doesn't make that case — it just deletes the helpers. The accompanying packages/next/src/builder-deferred.test.ts (137 lines added by #2263) isn't touched, so any tests that referenced the deleted helpers will break. And whatever bug #2263 was fixing ("lazy step route imports") may resurface depending on how createCombinedBundle differs.

4. Lockfile / version churn

packages/world-testing/package.json reverts:

  • @hono/node-server 1.19.13 → 1.19.9 (downgrade)
  • hono 4.12.21 → 4.12.3 (downgrade)
  • own version 5.0.0-beta.12 → 5.0.0-beta.7
  • 5 CHANGELOG.md entries removed (beta.8 through beta.12)

These are all stale-branch artifacts from being forked before recent version bumps and dependency updates landed. They'll resolve on rebase, but they're a useful signal for how far behind this branch is.

Status check evidence

The PR's commit e20540c6e ("Keep webhook route on v1", June 5) was never run through CI — only Vercel Agent Review, DCO, Socket, and preview deploys ran on it. The earlier commit d4ef02406 (May 29) ran the full suite with E2E Required Check: failure and Unit Tests (windows-latest): failure. Even if those are flaky, no CI evidence currently exists that the branch in its current state builds, lints, and tests on Linux. mergeStateStatus: DIRTY / mergeable: CONFLICTING confirms there's at least one merge conflict (docs/content/docs/v5/changelog/eager-processing.mdx).

Architectural concerns (separate from staleness)

Workflow-server coordination

The Vercel workflow-server (out of this repo) is what calls into the user app at /v1/flow / /v1/step today. If this PR ships and the user app stops exposing /v1/flow and /v1/step, dispatches from workflow-server will 404 unless workflow-server already knows to:

  1. Dispatch to /v2/flow for new-spec deployments, AND
  2. Fall back to /v1/flow + /v1/step for older deployments that haven't redeployed with the v2 SDK.

The PR doesn't say which workflow-server version is required, and there's no smoke test exercising a mixed-version scenario. Please confirm:

  • Workflow-server already dispatches to /v2/flow for v5-spec deployments
  • Either workflow-server retains /v1/flow + /v1/step fallback during rollout, OR all v5 deployments get re-built before this lands
  • The Vercel beta-channel rollout sequencing is documented somewhere

If the dispatch logic is already version-aware (e.g. driven by manifest contents the workflow-server reads), saying so in the PR description would be enough.

Patch bump?

12 packages all get patch bumps for what is effectively a public-route relocation. On the beta channel patch doesn't matter (changesets always rolls beta.N), but if this ever has to be backported (the PR description says it won't be), patch would be the wrong semver. Since the PR explicitly says no backport, this is fine, but worth a sentence: "Patch is acceptable on the v5/beta channel; this route change is a v5 spec implementation detail, not a public API change."

Things to verify after rebase

Once rebased onto current main:

  1. Re-confirm createCombinedBundle produces equivalent output to createDeferredFlowRoute for the deferred-builder path. The key thing JJ's PR #2263 was solving (per the title — "Fix Next lazy step route imports") needs to either be preserved by createCombinedBundle or explicitly handled separately.
  2. Re-verify extractBundleSourceFiles keeps the string-scan implementation (not the regex).
  3. Re-verify addDashboardHandler stays in packages/nitro/src/index.ts.
  4. Run pnpm turbo run build --filter='!./workbench/*' from a clean state.
  5. Re-run E2E (especially nextjs-webpack dev, which was the canary for the V8 crash).

What I verified locally

  • Checked out PR head onto current main merge base; confirmed the three regressions above via git show against origin/main
  • Confirmed the changeset is appropriately scoped to packages with real changes (modulo the docs file which is in changeset ignore)
  • The route-prefix migration itself (paths in builders, tests, docs, CLI, get-port probe) is consistent across the 38 files — /v2/flow everywhere, /v1/webhook everywhere, /v1/manifest.json everywhere

Bottom line

The direction is right and most of the route-rename mechanics look correct. The blocker is the staleness — this PR was generated by a codex agent from a May 26 branch and the agent didn't notice that meaningful code on main got deleted in the process. Rebase, re-run CI, and re-verify the three reverts are restored.

Holding the approve until the rebase shows green and confirms the three referenced PRs survive.

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.

3 participants

@pranaygp@TooTallNate
, '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('^' + ".*" + ' [codex] Migrate workflow execution routes to v2 by pranaygp · Pull Request #2154 · vercel/workflow · GitHub
Skip to content

[codex] Migrate workflow execution routes to v2 - #2154

Open
pranaygp wants to merge 2 commits into
mainfrom
pranaygp/codex/workflow-v2-routes
Open

[codex] Migrate workflow execution routes to v2#2154
pranaygp wants to merge 2 commits into
mainfrom
pranaygp/codex/workflow-v2-routes

Conversation

@pranaygp

@pranaygppranaygp commented May 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move the canonical combined execution endpoint from /.well-known/workflow/v1/flow to /.well-known/workflow/v2/flow and stop emitting the separate v1 step route.
  • Keep the webhook endpoint at /.well-known/workflow/v1/webhook and the public manifest under /.well-known/workflow/v1 across supported integrations and build targets.
  • Remove stale v1 flow/step generated artifacts at build time and update active v5 documentation, route tests, matrices, and changesets.

Why

Workflow v5 uses the combined flow handler, so the execution route has a materially different contract from the v4 split flow/step model and moves to v2. The webhook route did not materially change, so it remains on v1 rather than introducing an unnecessary webhook URL migration.

Backporting

Do not backport this PR to stable: this changes the v5/main execution route contract and does not apply to the v4 stable surface.

Validation

  • pnpm build
  • Focused Biome formatting and error-level lint checks for changed TypeScript/JavaScript files
  • pnpm vitest run packages/next/src/index.test.ts packages/nitro/src/index.test.ts packages/world-postgres/src/queue.test.ts packages/world-local/src/queue.test.ts
  • pnpm vitest run packages/utils/src/get-port.test.ts -t \"identify workflow server|respect custom timeout|handle concurrent getWorkflowPort|return single port without probing\"
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/example
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/nextjs-turbopack
  • pnpm build in workbench/sveltekit and workbench/astro
  • Verified generated outputs contain v2/flow, v1/webhook, and no v2/webhook route

@vercel

vercelBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e20540c

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

This PR includes changesets to release 21 packages
NameType
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/corePatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/sveltekitPatch
@workflow/utilsPatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-testingPatch
workflowPatch
@workflow/rollupPatch
@workflow/vitePatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/nuxtPatch
@workflow/errorsPatch
@workflow/world-vercelPatch

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

@github-actions

github-actionsBot commented May 29, 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
💻 Local🥇 Nitro0.038s (-11.6% 🟢)1.006s (~)0.968s101.00x
💻 LocalExpress0.043s (-3.2%)1.005s (~)0.962s101.13x
🐘 PostgresNitro0.059s (-38.0% 🟢)1.012s (-3.0%)0.953s101.55x
💻 LocalNext.js (Turbopack)0.059s1.006s0.946s101.55x
🐘 PostgresExpress0.068s (+17.9% 🔺)1.012s (~)0.943s101.80x
🐘 PostgresNext.js (Turbopack)0.069s1.012s0.943s101.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.337s (+43.0% 🔺)2.430s (+13.8% 🔺)2.093s101.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-3.2%)2.006s (~)0.917s101.00x
🐘 PostgresNitro1.101s (-3.4%)2.009s (~)0.908s101.01x
💻 LocalNitro1.110s (-1.9%)2.006s (~)0.896s101.02x
🐘 PostgresExpress1.112s (-3.0%)2.010s (~)0.898s101.02x
💻 LocalNext.js (Turbopack)1.127s2.007s0.880s101.04x
🐘 PostgresNext.js (Turbopack)1.137s2.008s0.871s101.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.907s (+1.7%)4.032s (+5.9% 🔺)2.125s101.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.482s (-4.2%)11.022s (~)0.540s31.00x
💻 LocalExpress10.511s (-3.8%)11.021s (~)0.510s31.00x
🐘 PostgresNitro10.520s (-3.2%)11.014s (~)0.495s31.00x
🐘 PostgresExpress10.577s (-3.5%)11.015s (~)0.438s31.01x
💻 LocalNext.js (Turbopack)10.771s11.021s0.250s31.03x
🐘 PostgresNext.js (Turbopack)10.852s11.021s0.169s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.111s (-16.9% 🟢)16.261s (-18.8% 🟢)2.149s21.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.728s (-8.3% 🟢)14.026s (-6.7% 🟢)0.298s51.00x
🐘 PostgresNitro13.748s (-5.8% 🟢)14.021s (-6.7% 🟢)0.272s51.00x
🐘 PostgresExpress13.773s (-5.6% 🟢)14.020s (-6.7% 🟢)0.247s51.00x
💻 LocalNitro13.776s (-8.5% 🟢)14.028s (-12.5% 🟢)0.251s51.00x
💻 LocalNext.js (Turbopack)14.335s15.029s0.694s41.04x
🐘 PostgresNext.js (Turbopack)14.552s15.019s0.467s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express25.710s (-48.9% 🟢)27.665s (-47.4% 🟢)1.955s31.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.325s (-11.8% 🟢)13.016s (-9.0% 🟢)0.691s71.00x
💻 LocalNitro12.387s (-26.2% 🟢)13.025s (-23.5% 🟢)0.638s71.01x
💻 LocalExpress12.409s (-25.3% 🟢)13.024s (-23.5% 🟢)0.615s71.01x
🐘 PostgresExpress12.470s (-11.0% 🟢)13.019s (-10.8% 🟢)0.549s71.01x
💻 LocalNext.js (Turbopack)13.589s14.027s0.438s71.10x
🐘 PostgresNext.js (Turbopack)13.730s14.021s0.291s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express32.317s (-73.3% 🟢)34.350s (-72.2% 🟢)2.033s31.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.157s (-22.3% 🟢)2.006s (~)0.848s151.00x
🐘 PostgresNitro1.175s (-7.8% 🟢)2.008s (~)0.833s151.01x
🐘 PostgresExpress1.175s (-6.7% 🟢)2.007s (~)0.831s151.02x
🐘 PostgresNext.js (Turbopack)1.253s2.075s0.822s151.08x
💻 LocalNitro1.256s (-23.0% 🟢)2.005s (-3.3%)0.749s151.08x
💻 LocalNext.js (Turbopack)1.308s2.006s0.698s151.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.806s (-1.9%)4.468s (-3.4%)1.662s71.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.247s (-47.0% 🟢)2.009s (-33.2% 🟢)0.763s151.00x
🐘 PostgresExpress1.279s (-45.8% 🟢)2.007s (-33.3% 🟢)0.728s151.03x
🐘 PostgresNext.js (Turbopack)1.463s2.074s0.611s151.17x
💻 LocalExpress1.611s (-45.4% 🟢)2.006s (-41.9% 🟢)0.394s151.29x
💻 LocalNitro1.716s (-45.4% 🟢)2.006s (-48.4% 🟢)0.290s151.38x
💻 LocalNext.js (Turbopack)1.781s2.007s0.226s151.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.608s (~)5.581s (+9.2% 🔺)1.972s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.365s (-60.8% 🟢)2.008s (-49.9% 🟢)0.643s151.00x
🐘 PostgresExpress1.400s (-59.8% 🟢)2.006s (-50.0% 🟢)0.607s151.03x
🐘 PostgresNext.js (Turbopack)1.675s2.076s0.401s151.23x
💻 LocalExpress3.866s (-53.6% 🟢)4.296s (-52.4% 🟢)0.430s72.83x
💻 LocalNitro4.404s (-47.3% 🟢)5.012s (-44.4% 🟢)0.608s63.23x
💻 LocalNext.js (Turbopack)4.956s5.513s0.556s63.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.234s (+23.4% 🔺)6.789s (+10.8% 🔺)1.555s51.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.188s (-5.5% 🟢)2.009s (~)0.821s151.00x
🐘 PostgresNitro1.194s (-5.0% 🟢)2.009s (~)0.815s151.01x
🐘 PostgresNext.js (Turbopack)1.235s2.007s0.772s151.04x
💻 LocalNext.js (Turbopack)1.353s2.006s0.653s151.14x
💻 LocalNitro1.514s (-18.8% 🟢)2.006s (-14.3% 🟢)0.491s151.27x
💻 LocalExpress1.528s (-19.3% 🟢)2.006s (-15.1% 🟢)0.477s151.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.799s (+8.4% 🔺)4.196s (-3.5%)1.397s81.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.239s (-47.0% 🟢)2.009s (-33.3% 🟢)0.769s151.00x
🐘 PostgresExpress1.275s (-45.5% 🟢)2.008s (-33.3% 🟢)0.733s151.03x
🐘 PostgresNext.js (Turbopack)1.422s2.076s0.654s151.15x
💻 LocalNext.js (Turbopack)2.009s2.591s0.582s121.62x
💻 LocalNitro2.016s (-34.2% 🟢)2.592s (-33.3% 🟢)0.576s121.63x
💻 LocalExpress2.104s (-32.8% 🟢)2.507s (-33.4% 🟢)0.402s121.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.787s (+18.6% 🔺)5.467s (+14.1% 🔺)1.680s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.400s (-59.8% 🟢)2.008s (-49.9% 🟢)0.608s151.00x
🐘 PostgresExpress1.430s (-59.1% 🟢)2.010s (-49.9% 🟢)0.579s151.02x
🐘 PostgresNext.js (Turbopack)1.708s2.155s0.447s141.22x
💻 LocalExpress4.399s (-50.0% 🟢)5.181s (-44.1% 🟢)0.781s63.14x
💻 LocalNitro5.309s (-41.9% 🟢)5.848s (-41.7% 🟢)0.539s63.79x
💻 LocalNext.js (Turbopack)5.551s6.017s0.466s53.97x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.609s (-28.2% 🟢)6.579s (-19.6% 🟢)1.971s51.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.543s (-33.8% 🟢)1.007s (~)0.464s601.00x
💻 LocalExpress0.572s (-41.9% 🟢)1.004s (-6.7% 🟢)0.433s601.05x
🐘 PostgresExpress0.582s (-30.7% 🟢)1.041s (+1.8%)0.459s581.07x
💻 LocalNitro0.589s (-39.9% 🟢)1.005s (-8.1% 🟢)0.416s601.09x
🐘 PostgresNext.js (Turbopack)0.811s1.007s0.195s601.49x
💻 LocalNext.js (Turbopack)0.858s1.021s0.164s591.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.578s (-70.7% 🟢)7.244s (-66.0% 🟢)1.666s91.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.305s (-32.3% 🟢)2.029s (-3.4%)0.724s451.00x
🐘 PostgresExpress1.377s (-30.4% 🟢)2.029s (-10.1% 🟢)0.653s451.05x
💻 LocalExpress1.450s (-51.9% 🟢)2.006s (-44.1% 🟢)0.555s451.11x
💻 LocalNitro1.491s (-50.9% 🟢)2.006s (-46.6% 🟢)0.514s451.14x
🐘 PostgresNext.js (Turbopack)1.940s2.124s0.184s431.49x
💻 LocalNext.js (Turbopack)2.089s2.975s0.886s311.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.101s (-56.3% 🟢)17.599s (-52.2% 🟢)2.498s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.592s (-36.8% 🟢)3.058s (-33.6% 🟢)0.466s401.00x
🐘 PostgresExpress2.707s (-32.2% 🟢)3.085s (-29.4% 🟢)0.379s391.04x
💻 LocalExpress3.126s (-66.1% 🟢)3.735s (-62.7% 🟢)0.610s331.21x
💻 LocalNitro3.280s (-64.7% 🟢)3.944s (-60.6% 🟢)0.664s311.27x
🐘 PostgresNext.js (Turbopack)3.742s4.009s0.267s301.44x
💻 LocalNext.js (Turbopack)4.226s5.010s0.784s241.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express28.945s (-77.7% 🟢)31.551s (-76.1% 🟢)2.606s41.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.217s (-23.4% 🟢)1.006s (~)0.789s601.00x
🐘 PostgresExpress0.230s (-18.5% 🟢)1.006s (~)0.776s601.06x
🐘 PostgresNext.js (Turbopack)0.258s1.006s0.748s601.19x
💻 LocalExpress0.441s (-21.2% 🟢)1.021s (+1.7%)0.580s592.03x
💻 LocalNitro0.444s (-26.6% 🟢)1.004s (-1.7%)0.561s602.04x
💻 LocalNext.js (Turbopack)0.627s1.056s0.429s582.89x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.245s (+14.9% 🔺)4.082s (+12.2% 🔺)1.836s151.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.330s (-33.5% 🟢)1.006s (~)0.676s901.00x
🐘 PostgresExpress0.365s (-28.4% 🟢)1.007s (~)0.642s901.11x
🐘 PostgresNext.js (Turbopack)0.468s1.006s0.538s901.42x
💻 LocalExpress1.990s (-20.8% 🟢)2.494s (-17.1% 🟢)0.504s376.03x
💻 LocalNitro2.196s (-13.5% 🟢)2.766s (-8.1% 🟢)0.571s336.65x
💻 LocalNext.js (Turbopack)2.254s2.884s0.630s326.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.494s (+80.4% 🔺)7.214s (+50.1% 🔺)1.720s131.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.654s (-17.2% 🟢)1.006s (~)0.351s1201.00x
🐘 PostgresExpress0.701s (-14.4% 🟢)1.006s (-1.1%)0.305s1201.07x
🐘 PostgresNext.js (Turbopack)0.943s1.351s0.408s901.44x
💻 LocalExpress8.549s (-23.6% 🟢)9.097s (-23.8% 🟢)0.548s1413.07x
💻 LocalNitro9.450s (-15.6% 🟢)10.196s (-12.6% 🟢)0.746s1214.44x
💻 LocalNext.js (Turbopack)10.151s11.028s0.877s1115.52x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express12.410s (+67.2% 🔺)14.751s (+59.6% 🔺)2.340s91.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.149s (+477.2% 🔺)2.004s (+99.5% 🔺)0.010s (-16.5% 🟢)2.017s (+98.1% 🔺)0.868s101.00x
🐘 PostgresExpress1.161s (+465.8% 🔺)2.000s (+100.3% 🔺)0.001s (-25.0% 🟢)2.011s (+98.8% 🔺)0.850s101.01x
💻 LocalNitro1.162s (+443.6% 🔺)2.005s (+99.6% 🔺)0.011s (-13.6% 🟢)2.018s (+98.0% 🔺)0.856s101.01x
🐘 PostgresNitro1.162s (+466.8% 🔺)2.002s (+100.3% 🔺)0.001s (-26.7% 🟢)2.011s (+98.8% 🔺)0.849s101.01x
💻 LocalNext.js (Turbopack)1.203s2.004s0.010s2.018s0.815s101.05x
🐘 PostgresNext.js (Turbopack)1.227s2.001s0.001s2.011s0.784s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.143s (-14.4% 🟢)3.297s (-19.4% 🟢)1.808s (+88.1% 🔺)5.581s (~)3.437s101.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.562s (+150.3% 🔺)2.002s (+98.9% 🔺)0.004s (-11.3% 🟢)2.025s (+98.1% 🔺)0.463s301.00x
💻 LocalNitro1.565s (+86.6% 🔺)2.009s (+98.5% 🔺)0.010s (+6.0% 🔺)2.021s (+81.1% 🔺)0.456s301.00x
🐘 PostgresExpress1.602s (+154.3% 🔺)2.006s (+99.3% 🔺)0.004s (+0.9%)2.028s (+98.2% 🔺)0.425s301.03x
💻 LocalNext.js (Turbopack)1.708s2.008s0.010s2.021s0.312s301.09x
🐘 PostgresNext.js (Turbopack)1.743s2.009s0.004s2.024s0.281s301.12x
💻 LocalExpress1.756s (+131.9% 🔺)2.011s (+95.4% 🔺)0.009s (-1.7%)2.201s (+111.6% 🔺)0.445s281.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.788s (-11.0% 🟢)7.424s (-7.3% 🟢)0.461s (+12.7% 🔺)8.392s (-5.0% 🟢)2.604s81.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.691s (-28.7% 🟢)1.030s (-17.5% 🟢)0.000s (+24.1% 🔺)1.042s (-17.2% 🟢)0.351s581.00x
🐘 PostgresExpress0.725s (-24.5% 🟢)1.048s (-18.0% 🟢)0.000s (+21.1% 🔺)1.060s (-18.8% 🟢)0.335s571.05x
🐘 PostgresNext.js (Turbopack)0.802s1.072s0.000s1.079s0.277s561.16x
💻 LocalExpress1.330s (+8.6% 🔺)2.012s (~)0.000s (+40.0% 🔺)2.014s (~)0.684s301.92x
💻 LocalNitro1.428s (+16.8% 🔺)2.013s (~)0.000s (+33.3% 🔺)2.015s (~)0.587s302.07x
💻 LocalNext.js (Turbopack)1.482s2.013s0.000s2.016s0.534s302.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.411s (-8.8% 🟢)4.624s (-9.4% 🟢)0.000s (-100.0% 🟢)5.192s (-6.1% 🟢)1.781s121.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.460s (-18.5% 🟢)2.100s (-1.9%)0.000s (+93.1% 🔺)2.126s (-2.2%)0.666s291.00x
🐘 PostgresNext.js (Turbopack)1.551s2.144s0.000s2.152s0.601s281.06x
🐘 PostgresExpress1.625s (-8.3% 🟢)2.220s (+1.9%)0.000s (+Infinity% 🔺)2.233s (+1.5%)0.608s271.11x
💻 LocalNext.js (Turbopack)2.868s3.412s0.001s3.421s0.553s181.96x
💻 LocalExpress2.971s (-14.3% 🟢)3.607s (-10.6% 🟢)0.001s (-11.8% 🟢)3.615s (-10.4% 🟢)0.644s172.03x
💻 LocalNitro3.163s (-6.6% 🟢)3.902s (-3.2%)0.001s (+64.1% 🔺)3.905s (-3.2%)0.743s162.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.232s (+14.0% 🔺)6.901s (+14.6% 🔺)0.007s (+Infinity% 🔺)7.496s (+16.1% 🔺)2.264s91.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress14/21
🐘 PostgresNitro19/21
▲ VercelExpress21/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres13/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres18/21
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
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production96402151179
✅ 💻 Local Development161502191834
✅ 📦 Local Production161502191834
✅ 🐘 Local Postgres161502191834
✅ 📋 Other7410176917
Total6550010487598

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro105026
✅ example105026
✅ express105026
✅ fastify105026
✅ hono105026
✅ nitro105026
✅ nuxt105026
✅ sveltekit12407
✅ vite105026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable106025
✅ e2e-local-dev-tanstack-start-106025
✅ e2e-local-postgres-nest-stable106025
✅ e2e-local-postgres-tanstack-start-106025
✅ e2e-local-prod-nest-stable106025
✅ e2e-local-prod-tanstack-start-106025
✅ e2e-vercel-prod-tanstack-start105026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: cancelled
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: failure

Check the workflow run for details.

@pranaygp
pranaygp marked this pull request as ready for review May 29, 2026 22:02
@pranaygp
pranaygp requested a review from ijjk as a code ownerMay 29, 2026 22:02
CopilotAI review requested due to automatic review settings May 29, 2026 22:02
@pranaygp
pranaygp requested a review from a team as a code ownerMay 29, 2026 22:02

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the canonical workflow execution and webhook endpoints from /.well-known/workflow/v1/ to /.well-known/workflow/v2/. The combined flow handler at v2 now serves both workflow and step queue messages (the separate v1/step route is no longer emitted). The webhook endpoint is also moved to v2, while /.well-known/workflow/v1/webhook/:token remains supported as a compatibility alias across all integrations. The v1 directory continues to host manifest.json and webhook compatibility resources, and builders proactively clean up stale v1 execution artifacts from prior builds.

Changes:

  • Update all queue clients, builders, framework integrations, and tests to use /.well-known/workflow/v2/flow and /.well-known/workflow/v2/webhook/:token.
  • Preserve /.well-known/workflow/v1/webhook/:token as a compatibility route in Next, Nitro, Nest, Sveltekit, Astro, BOA, and standalone builds.
  • Clean stale v1 flow/step/config.json/manifest.json artifacts on each build/boot to avoid cached v1 outputs leaking into v5 deployments.

Reviewed changes

Copilot reviewed 46 out of 46 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
.changeset/workflow-v2-routes.mdNew changeset noting the v2 route migration for all affected packages.
.github/workflows/tests.yml, .github/workflows/e2e-community-world.ymlUpdate CI dev-test config paths to v2 generated routes.
AGENTS.mdDocument that execution routes are now v2; v1 retains manifest/webhook compatibility.
docs/content/docs/v5/**Documentation updated for v2 paths and v1 webhook compatibility (getting-started, how-it-works, hooks, webhooks, api-reference, changelog).
packages/astro/src/builder.tsGenerate to v2 dir, remove stale v1 flow.js/step.js, route v1 webhook to v2 handler, keep manifest in v1.
packages/builders/src/base-builder.tsComment updated to v2 webhook path.
packages/builders/src/standalone.tsRemove stale v1 flow.mjs/step.mjs; build both v2 and v1 webhook bundles; manifest stays in v1.
packages/builders/src/vercel-build-output-api.tsClean v1 flow.func/step.func/webhook; emit v2 flow/webhook funcs; add Build Output route rewrite from v1 webhook to v2.
packages/cli/src/commands/health.ts, packages/cli/src/lib/config/workflow-config.tsUse v2 paths; rename steps bundle to __step_registrations.mjs.
packages/core/e2e/{e2e,local-build}.test.tsTests target v2 endpoints; one webhook test retained on v1 to validate compatibility.
packages/core/src/{create-hook,workflow/create-hook,runtime/world-init}.tsWebhook URL/doc strings updated to v2.
packages/nest/src/workflow.controller.ts, packages/nest/README.mdController exposes v2 flow + v2 webhook + v1 legacy webhook (delegating to v2).
packages/next/src/builder-deferred.ts, builder-eager.ts, builder.ts, index.test.tsGenerate to v2; write/copy webhook stubs for both v1 and v2; cleanup stale v1 routes/config; update deferred entries; tighten watch-mode invariant.
packages/nitro/src/{index,vite}.ts, index.test.tsRegister both v1 and v2 webhook virtual handlers; v2 flow handler; functionRules updated; middleware matcher widened.
packages/sveltekit/src/{builder,index}.tsGenerate to v2; build both v1 and v2 webhook routes; cleanup stale v1 flow/step; manifest stays in v1; .vc-config path updated to v2.
packages/utils/src/get-port.ts, get-port.test.tsProbe endpoint updated to v2.
packages/world-local/src/queue.ts, packages/world-postgres/src/queue.ts, queue.test.ts, README.md, HOW_IT_WORKS.mdRoute all step and workflow queue messages to the v2 flow endpoint.
packages/world-testing/{package.json,src/server.mts,scripts/generate-well-known-dts.mjs}Import v2 flow handler; generate v2 flow/webhook + v1 webhook dts stubs; copy both v1 and v2 mjs into dist.
scripts/create-test-matrix.mjsDEV test config paths updated to v2.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Request Changes — branch is too stale; merging as-is reverts at least three landed PRs

The architectural direction is sound: moving the combined execution endpoint to /v2/flow while keeping the webhook + manifest on /v1 is the right call for v5 (the v4-stable URL contract stays intact, the v5-only behavioral change gets its own path). The PR description's reasoning matches the v5 spec. Approving that direction.

However, the branch is dated May 26 (base b0d0561af) and was last touched June 5 without a rebase. Several PRs landed on main after the base, and the codex diff against current main shows those changes being deleted. Until the branch is rebased and the regressions are vetted, this is unsafe to merge.

Regressions caused by stale base

1. V8 regex stack overflow fix (#930886fe3, Peter, May 27) — reverted

packages/next/src/builder-deferred.tsextractBundleSourceFiles would crash with RangeError: Maximum call stack size exceeded at RegExpStringIterator.next on bundles with multi-MB inline base64 sourcemaps. Peter replaced the matchAll(/...[A-Za-z0-9+/=]+.../g) with a literal-prefix scan + manual base64 alphabet loop. This PR's diff puts the broken regex back:

- // Extract inline base64 sourcemaps via string scanning. A previous- // implementation used `bundleContents.matchAll(/...[A-Za-z0-9+/=]+.../g)`- // which overflows V8's regex stack ...- // [60-line scan loop]+ const sourceMapMatches = bundleContents.matchAll(+ /\/\/# sourceMappingURL=data:application\/json[^,]*;base64,([A-Za-z0-9+/=]+)/g+ );

This was added specifically because inline sourcemaps (#1799) became universal across workspace packages and the bundles got large enough to trip V8's irregexp recursion. The crash was tied to a separate branch where it surfaced first, but the underlying hazard is general — every Next builder run is now vulnerable to it.

2. Nitro dashboard handler (#2110, June 2) — reverted

packages/nitro/src/index.ts loses ~75 lines: the entire addDashboardHandler() function, the addDashboardHandler(nitro) call in dev mode, and the createRequire/pathToFileURL imports it needs. /_workflow dev UI dashboard goes away.

Verified: git show origin/main:packages/nitro/src/index.ts | grep -c addDashboardHandler = 2; git show pr-2154:packages/nitro/src/index.ts | grep -c addDashboardHandler = 0.

3. Lazy step route imports (#2263, JJ, June 5) — reverted

packages/next/src/builder-deferred.ts loses 263 lines that JJ added: createDeferredFlowRoute, createDeferredStepSideEffectImports, getDeferredRouteImportSpecifier, resolveDeferredRouteImportFilePath, resolvePackageSourceDistFilePathForRouteImport, findPackageRootForRouteImportSource, createDeferredStepManifest, resolveBuiltInStepFilesForManifest, mergeWorkflowManifest. The replacement is a single createCombinedBundle() call.

It's plausible that createCombinedBundle actually subsumes what those helpers were doing (the base builder already implements the combined-bundle pattern used by sveltekit/nitro/nest/eager-next), and JJ's PR may have been an interim approach. But the codex diff doesn't make that case — it just deletes the helpers. The accompanying packages/next/src/builder-deferred.test.ts (137 lines added by #2263) isn't touched, so any tests that referenced the deleted helpers will break. And whatever bug #2263 was fixing ("lazy step route imports") may resurface depending on how createCombinedBundle differs.

4. Lockfile / version churn

packages/world-testing/package.json reverts:

  • @hono/node-server 1.19.13 → 1.19.9 (downgrade)
  • hono 4.12.21 → 4.12.3 (downgrade)
  • own version 5.0.0-beta.12 → 5.0.0-beta.7
  • 5 CHANGELOG.md entries removed (beta.8 through beta.12)

These are all stale-branch artifacts from being forked before recent version bumps and dependency updates landed. They'll resolve on rebase, but they're a useful signal for how far behind this branch is.

Status check evidence

The PR's commit e20540c6e ("Keep webhook route on v1", June 5) was never run through CI — only Vercel Agent Review, DCO, Socket, and preview deploys ran on it. The earlier commit d4ef02406 (May 29) ran the full suite with E2E Required Check: failure and Unit Tests (windows-latest): failure. Even if those are flaky, no CI evidence currently exists that the branch in its current state builds, lints, and tests on Linux. mergeStateStatus: DIRTY / mergeable: CONFLICTING confirms there's at least one merge conflict (docs/content/docs/v5/changelog/eager-processing.mdx).

Architectural concerns (separate from staleness)

Workflow-server coordination

The Vercel workflow-server (out of this repo) is what calls into the user app at /v1/flow / /v1/step today. If this PR ships and the user app stops exposing /v1/flow and /v1/step, dispatches from workflow-server will 404 unless workflow-server already knows to:

  1. Dispatch to /v2/flow for new-spec deployments, AND
  2. Fall back to /v1/flow + /v1/step for older deployments that haven't redeployed with the v2 SDK.

The PR doesn't say which workflow-server version is required, and there's no smoke test exercising a mixed-version scenario. Please confirm:

  • Workflow-server already dispatches to /v2/flow for v5-spec deployments
  • Either workflow-server retains /v1/flow + /v1/step fallback during rollout, OR all v5 deployments get re-built before this lands
  • The Vercel beta-channel rollout sequencing is documented somewhere

If the dispatch logic is already version-aware (e.g. driven by manifest contents the workflow-server reads), saying so in the PR description would be enough.

Patch bump?

12 packages all get patch bumps for what is effectively a public-route relocation. On the beta channel patch doesn't matter (changesets always rolls beta.N), but if this ever has to be backported (the PR description says it won't be), patch would be the wrong semver. Since the PR explicitly says no backport, this is fine, but worth a sentence: "Patch is acceptable on the v5/beta channel; this route change is a v5 spec implementation detail, not a public API change."

Things to verify after rebase

Once rebased onto current main:

  1. Re-confirm createCombinedBundle produces equivalent output to createDeferredFlowRoute for the deferred-builder path. The key thing JJ's PR #2263 was solving (per the title — "Fix Next lazy step route imports") needs to either be preserved by createCombinedBundle or explicitly handled separately.
  2. Re-verify extractBundleSourceFiles keeps the string-scan implementation (not the regex).
  3. Re-verify addDashboardHandler stays in packages/nitro/src/index.ts.
  4. Run pnpm turbo run build --filter='!./workbench/*' from a clean state.
  5. Re-run E2E (especially nextjs-webpack dev, which was the canary for the V8 crash).

What I verified locally

  • Checked out PR head onto current main merge base; confirmed the three regressions above via git show against origin/main
  • Confirmed the changeset is appropriately scoped to packages with real changes (modulo the docs file which is in changeset ignore)
  • The route-prefix migration itself (paths in builders, tests, docs, CLI, get-port probe) is consistent across the 38 files — /v2/flow everywhere, /v1/webhook everywhere, /v1/manifest.json everywhere

Bottom line

The direction is right and most of the route-rename mechanics look correct. The blocker is the staleness — this PR was generated by a codex agent from a May 26 branch and the agent didn't notice that meaningful code on main got deleted in the process. Rebase, re-run CI, and re-verify the three reverts are restored.

Holding the approve until the rebase shows green and confirms the three referenced PRs survive.

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.

3 participants

@pranaygp@TooTallNate
, '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('^' + ".*" + ' [codex] Migrate workflow execution routes to v2 by pranaygp · Pull Request #2154 · vercel/workflow · GitHub
Skip to content

[codex] Migrate workflow execution routes to v2 - #2154

Open
pranaygp wants to merge 2 commits into
mainfrom
pranaygp/codex/workflow-v2-routes
Open

[codex] Migrate workflow execution routes to v2#2154
pranaygp wants to merge 2 commits into
mainfrom
pranaygp/codex/workflow-v2-routes

Conversation

@pranaygp

@pranaygppranaygp commented May 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move the canonical combined execution endpoint from /.well-known/workflow/v1/flow to /.well-known/workflow/v2/flow and stop emitting the separate v1 step route.
  • Keep the webhook endpoint at /.well-known/workflow/v1/webhook and the public manifest under /.well-known/workflow/v1 across supported integrations and build targets.
  • Remove stale v1 flow/step generated artifacts at build time and update active v5 documentation, route tests, matrices, and changesets.

Why

Workflow v5 uses the combined flow handler, so the execution route has a materially different contract from the v4 split flow/step model and moves to v2. The webhook route did not materially change, so it remains on v1 rather than introducing an unnecessary webhook URL migration.

Backporting

Do not backport this PR to stable: this changes the v5/main execution route contract and does not apply to the v4 stable surface.

Validation

  • pnpm build
  • Focused Biome formatting and error-level lint checks for changed TypeScript/JavaScript files
  • pnpm vitest run packages/next/src/index.test.ts packages/nitro/src/index.test.ts packages/world-postgres/src/queue.test.ts packages/world-local/src/queue.test.ts
  • pnpm vitest run packages/utils/src/get-port.test.ts -t \"identify workflow server|respect custom timeout|handle concurrent getWorkflowPort|return single port without probing\"
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/example
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/nextjs-turbopack
  • pnpm build in workbench/sveltekit and workbench/astro
  • Verified generated outputs contain v2/flow, v1/webhook, and no v2/webhook route

@vercel

vercelBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e20540c

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

This PR includes changesets to release 21 packages
NameType
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/corePatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/sveltekitPatch
@workflow/utilsPatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-testingPatch
workflowPatch
@workflow/rollupPatch
@workflow/vitePatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/nuxtPatch
@workflow/errorsPatch
@workflow/world-vercelPatch

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

@github-actions

github-actionsBot commented May 29, 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
💻 Local🥇 Nitro0.038s (-11.6% 🟢)1.006s (~)0.968s101.00x
💻 LocalExpress0.043s (-3.2%)1.005s (~)0.962s101.13x
🐘 PostgresNitro0.059s (-38.0% 🟢)1.012s (-3.0%)0.953s101.55x
💻 LocalNext.js (Turbopack)0.059s1.006s0.946s101.55x
🐘 PostgresExpress0.068s (+17.9% 🔺)1.012s (~)0.943s101.80x
🐘 PostgresNext.js (Turbopack)0.069s1.012s0.943s101.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.337s (+43.0% 🔺)2.430s (+13.8% 🔺)2.093s101.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-3.2%)2.006s (~)0.917s101.00x
🐘 PostgresNitro1.101s (-3.4%)2.009s (~)0.908s101.01x
💻 LocalNitro1.110s (-1.9%)2.006s (~)0.896s101.02x
🐘 PostgresExpress1.112s (-3.0%)2.010s (~)0.898s101.02x
💻 LocalNext.js (Turbopack)1.127s2.007s0.880s101.04x
🐘 PostgresNext.js (Turbopack)1.137s2.008s0.871s101.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.907s (+1.7%)4.032s (+5.9% 🔺)2.125s101.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.482s (-4.2%)11.022s (~)0.540s31.00x
💻 LocalExpress10.511s (-3.8%)11.021s (~)0.510s31.00x
🐘 PostgresNitro10.520s (-3.2%)11.014s (~)0.495s31.00x
🐘 PostgresExpress10.577s (-3.5%)11.015s (~)0.438s31.01x
💻 LocalNext.js (Turbopack)10.771s11.021s0.250s31.03x
🐘 PostgresNext.js (Turbopack)10.852s11.021s0.169s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.111s (-16.9% 🟢)16.261s (-18.8% 🟢)2.149s21.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.728s (-8.3% 🟢)14.026s (-6.7% 🟢)0.298s51.00x
🐘 PostgresNitro13.748s (-5.8% 🟢)14.021s (-6.7% 🟢)0.272s51.00x
🐘 PostgresExpress13.773s (-5.6% 🟢)14.020s (-6.7% 🟢)0.247s51.00x
💻 LocalNitro13.776s (-8.5% 🟢)14.028s (-12.5% 🟢)0.251s51.00x
💻 LocalNext.js (Turbopack)14.335s15.029s0.694s41.04x
🐘 PostgresNext.js (Turbopack)14.552s15.019s0.467s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express25.710s (-48.9% 🟢)27.665s (-47.4% 🟢)1.955s31.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.325s (-11.8% 🟢)13.016s (-9.0% 🟢)0.691s71.00x
💻 LocalNitro12.387s (-26.2% 🟢)13.025s (-23.5% 🟢)0.638s71.01x
💻 LocalExpress12.409s (-25.3% 🟢)13.024s (-23.5% 🟢)0.615s71.01x
🐘 PostgresExpress12.470s (-11.0% 🟢)13.019s (-10.8% 🟢)0.549s71.01x
💻 LocalNext.js (Turbopack)13.589s14.027s0.438s71.10x
🐘 PostgresNext.js (Turbopack)13.730s14.021s0.291s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express32.317s (-73.3% 🟢)34.350s (-72.2% 🟢)2.033s31.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.157s (-22.3% 🟢)2.006s (~)0.848s151.00x
🐘 PostgresNitro1.175s (-7.8% 🟢)2.008s (~)0.833s151.01x
🐘 PostgresExpress1.175s (-6.7% 🟢)2.007s (~)0.831s151.02x
🐘 PostgresNext.js (Turbopack)1.253s2.075s0.822s151.08x
💻 LocalNitro1.256s (-23.0% 🟢)2.005s (-3.3%)0.749s151.08x
💻 LocalNext.js (Turbopack)1.308s2.006s0.698s151.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.806s (-1.9%)4.468s (-3.4%)1.662s71.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.247s (-47.0% 🟢)2.009s (-33.2% 🟢)0.763s151.00x
🐘 PostgresExpress1.279s (-45.8% 🟢)2.007s (-33.3% 🟢)0.728s151.03x
🐘 PostgresNext.js (Turbopack)1.463s2.074s0.611s151.17x
💻 LocalExpress1.611s (-45.4% 🟢)2.006s (-41.9% 🟢)0.394s151.29x
💻 LocalNitro1.716s (-45.4% 🟢)2.006s (-48.4% 🟢)0.290s151.38x
💻 LocalNext.js (Turbopack)1.781s2.007s0.226s151.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.608s (~)5.581s (+9.2% 🔺)1.972s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.365s (-60.8% 🟢)2.008s (-49.9% 🟢)0.643s151.00x
🐘 PostgresExpress1.400s (-59.8% 🟢)2.006s (-50.0% 🟢)0.607s151.03x
🐘 PostgresNext.js (Turbopack)1.675s2.076s0.401s151.23x
💻 LocalExpress3.866s (-53.6% 🟢)4.296s (-52.4% 🟢)0.430s72.83x
💻 LocalNitro4.404s (-47.3% 🟢)5.012s (-44.4% 🟢)0.608s63.23x
💻 LocalNext.js (Turbopack)4.956s5.513s0.556s63.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.234s (+23.4% 🔺)6.789s (+10.8% 🔺)1.555s51.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.188s (-5.5% 🟢)2.009s (~)0.821s151.00x
🐘 PostgresNitro1.194s (-5.0% 🟢)2.009s (~)0.815s151.01x
🐘 PostgresNext.js (Turbopack)1.235s2.007s0.772s151.04x
💻 LocalNext.js (Turbopack)1.353s2.006s0.653s151.14x
💻 LocalNitro1.514s (-18.8% 🟢)2.006s (-14.3% 🟢)0.491s151.27x
💻 LocalExpress1.528s (-19.3% 🟢)2.006s (-15.1% 🟢)0.477s151.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.799s (+8.4% 🔺)4.196s (-3.5%)1.397s81.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.239s (-47.0% 🟢)2.009s (-33.3% 🟢)0.769s151.00x
🐘 PostgresExpress1.275s (-45.5% 🟢)2.008s (-33.3% 🟢)0.733s151.03x
🐘 PostgresNext.js (Turbopack)1.422s2.076s0.654s151.15x
💻 LocalNext.js (Turbopack)2.009s2.591s0.582s121.62x
💻 LocalNitro2.016s (-34.2% 🟢)2.592s (-33.3% 🟢)0.576s121.63x
💻 LocalExpress2.104s (-32.8% 🟢)2.507s (-33.4% 🟢)0.402s121.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.787s (+18.6% 🔺)5.467s (+14.1% 🔺)1.680s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.400s (-59.8% 🟢)2.008s (-49.9% 🟢)0.608s151.00x
🐘 PostgresExpress1.430s (-59.1% 🟢)2.010s (-49.9% 🟢)0.579s151.02x
🐘 PostgresNext.js (Turbopack)1.708s2.155s0.447s141.22x
💻 LocalExpress4.399s (-50.0% 🟢)5.181s (-44.1% 🟢)0.781s63.14x
💻 LocalNitro5.309s (-41.9% 🟢)5.848s (-41.7% 🟢)0.539s63.79x
💻 LocalNext.js (Turbopack)5.551s6.017s0.466s53.97x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.609s (-28.2% 🟢)6.579s (-19.6% 🟢)1.971s51.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.543s (-33.8% 🟢)1.007s (~)0.464s601.00x
💻 LocalExpress0.572s (-41.9% 🟢)1.004s (-6.7% 🟢)0.433s601.05x
🐘 PostgresExpress0.582s (-30.7% 🟢)1.041s (+1.8%)0.459s581.07x
💻 LocalNitro0.589s (-39.9% 🟢)1.005s (-8.1% 🟢)0.416s601.09x
🐘 PostgresNext.js (Turbopack)0.811s1.007s0.195s601.49x
💻 LocalNext.js (Turbopack)0.858s1.021s0.164s591.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.578s (-70.7% 🟢)7.244s (-66.0% 🟢)1.666s91.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.305s (-32.3% 🟢)2.029s (-3.4%)0.724s451.00x
🐘 PostgresExpress1.377s (-30.4% 🟢)2.029s (-10.1% 🟢)0.653s451.05x
💻 LocalExpress1.450s (-51.9% 🟢)2.006s (-44.1% 🟢)0.555s451.11x
💻 LocalNitro1.491s (-50.9% 🟢)2.006s (-46.6% 🟢)0.514s451.14x
🐘 PostgresNext.js (Turbopack)1.940s2.124s0.184s431.49x
💻 LocalNext.js (Turbopack)2.089s2.975s0.886s311.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.101s (-56.3% 🟢)17.599s (-52.2% 🟢)2.498s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.592s (-36.8% 🟢)3.058s (-33.6% 🟢)0.466s401.00x
🐘 PostgresExpress2.707s (-32.2% 🟢)3.085s (-29.4% 🟢)0.379s391.04x
💻 LocalExpress3.126s (-66.1% 🟢)3.735s (-62.7% 🟢)0.610s331.21x
💻 LocalNitro3.280s (-64.7% 🟢)3.944s (-60.6% 🟢)0.664s311.27x
🐘 PostgresNext.js (Turbopack)3.742s4.009s0.267s301.44x
💻 LocalNext.js (Turbopack)4.226s5.010s0.784s241.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express28.945s (-77.7% 🟢)31.551s (-76.1% 🟢)2.606s41.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.217s (-23.4% 🟢)1.006s (~)0.789s601.00x
🐘 PostgresExpress0.230s (-18.5% 🟢)1.006s (~)0.776s601.06x
🐘 PostgresNext.js (Turbopack)0.258s1.006s0.748s601.19x
💻 LocalExpress0.441s (-21.2% 🟢)1.021s (+1.7%)0.580s592.03x
💻 LocalNitro0.444s (-26.6% 🟢)1.004s (-1.7%)0.561s602.04x
💻 LocalNext.js (Turbopack)0.627s1.056s0.429s582.89x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.245s (+14.9% 🔺)4.082s (+12.2% 🔺)1.836s151.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.330s (-33.5% 🟢)1.006s (~)0.676s901.00x
🐘 PostgresExpress0.365s (-28.4% 🟢)1.007s (~)0.642s901.11x
🐘 PostgresNext.js (Turbopack)0.468s1.006s0.538s901.42x
💻 LocalExpress1.990s (-20.8% 🟢)2.494s (-17.1% 🟢)0.504s376.03x
💻 LocalNitro2.196s (-13.5% 🟢)2.766s (-8.1% 🟢)0.571s336.65x
💻 LocalNext.js (Turbopack)2.254s2.884s0.630s326.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.494s (+80.4% 🔺)7.214s (+50.1% 🔺)1.720s131.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.654s (-17.2% 🟢)1.006s (~)0.351s1201.00x
🐘 PostgresExpress0.701s (-14.4% 🟢)1.006s (-1.1%)0.305s1201.07x
🐘 PostgresNext.js (Turbopack)0.943s1.351s0.408s901.44x
💻 LocalExpress8.549s (-23.6% 🟢)9.097s (-23.8% 🟢)0.548s1413.07x
💻 LocalNitro9.450s (-15.6% 🟢)10.196s (-12.6% 🟢)0.746s1214.44x
💻 LocalNext.js (Turbopack)10.151s11.028s0.877s1115.52x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express12.410s (+67.2% 🔺)14.751s (+59.6% 🔺)2.340s91.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.149s (+477.2% 🔺)2.004s (+99.5% 🔺)0.010s (-16.5% 🟢)2.017s (+98.1% 🔺)0.868s101.00x
🐘 PostgresExpress1.161s (+465.8% 🔺)2.000s (+100.3% 🔺)0.001s (-25.0% 🟢)2.011s (+98.8% 🔺)0.850s101.01x
💻 LocalNitro1.162s (+443.6% 🔺)2.005s (+99.6% 🔺)0.011s (-13.6% 🟢)2.018s (+98.0% 🔺)0.856s101.01x
🐘 PostgresNitro1.162s (+466.8% 🔺)2.002s (+100.3% 🔺)0.001s (-26.7% 🟢)2.011s (+98.8% 🔺)0.849s101.01x
💻 LocalNext.js (Turbopack)1.203s2.004s0.010s2.018s0.815s101.05x
🐘 PostgresNext.js (Turbopack)1.227s2.001s0.001s2.011s0.784s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.143s (-14.4% 🟢)3.297s (-19.4% 🟢)1.808s (+88.1% 🔺)5.581s (~)3.437s101.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.562s (+150.3% 🔺)2.002s (+98.9% 🔺)0.004s (-11.3% 🟢)2.025s (+98.1% 🔺)0.463s301.00x
💻 LocalNitro1.565s (+86.6% 🔺)2.009s (+98.5% 🔺)0.010s (+6.0% 🔺)2.021s (+81.1% 🔺)0.456s301.00x
🐘 PostgresExpress1.602s (+154.3% 🔺)2.006s (+99.3% 🔺)0.004s (+0.9%)2.028s (+98.2% 🔺)0.425s301.03x
💻 LocalNext.js (Turbopack)1.708s2.008s0.010s2.021s0.312s301.09x
🐘 PostgresNext.js (Turbopack)1.743s2.009s0.004s2.024s0.281s301.12x
💻 LocalExpress1.756s (+131.9% 🔺)2.011s (+95.4% 🔺)0.009s (-1.7%)2.201s (+111.6% 🔺)0.445s281.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.788s (-11.0% 🟢)7.424s (-7.3% 🟢)0.461s (+12.7% 🔺)8.392s (-5.0% 🟢)2.604s81.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.691s (-28.7% 🟢)1.030s (-17.5% 🟢)0.000s (+24.1% 🔺)1.042s (-17.2% 🟢)0.351s581.00x
🐘 PostgresExpress0.725s (-24.5% 🟢)1.048s (-18.0% 🟢)0.000s (+21.1% 🔺)1.060s (-18.8% 🟢)0.335s571.05x
🐘 PostgresNext.js (Turbopack)0.802s1.072s0.000s1.079s0.277s561.16x
💻 LocalExpress1.330s (+8.6% 🔺)2.012s (~)0.000s (+40.0% 🔺)2.014s (~)0.684s301.92x
💻 LocalNitro1.428s (+16.8% 🔺)2.013s (~)0.000s (+33.3% 🔺)2.015s (~)0.587s302.07x
💻 LocalNext.js (Turbopack)1.482s2.013s0.000s2.016s0.534s302.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.411s (-8.8% 🟢)4.624s (-9.4% 🟢)0.000s (-100.0% 🟢)5.192s (-6.1% 🟢)1.781s121.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.460s (-18.5% 🟢)2.100s (-1.9%)0.000s (+93.1% 🔺)2.126s (-2.2%)0.666s291.00x
🐘 PostgresNext.js (Turbopack)1.551s2.144s0.000s2.152s0.601s281.06x
🐘 PostgresExpress1.625s (-8.3% 🟢)2.220s (+1.9%)0.000s (+Infinity% 🔺)2.233s (+1.5%)0.608s271.11x
💻 LocalNext.js (Turbopack)2.868s3.412s0.001s3.421s0.553s181.96x
💻 LocalExpress2.971s (-14.3% 🟢)3.607s (-10.6% 🟢)0.001s (-11.8% 🟢)3.615s (-10.4% 🟢)0.644s172.03x
💻 LocalNitro3.163s (-6.6% 🟢)3.902s (-3.2%)0.001s (+64.1% 🔺)3.905s (-3.2%)0.743s162.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.232s (+14.0% 🔺)6.901s (+14.6% 🔺)0.007s (+Infinity% 🔺)7.496s (+16.1% 🔺)2.264s91.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress14/21
🐘 PostgresNitro19/21
▲ VercelExpress21/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres13/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres18/21
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
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production96402151179
✅ 💻 Local Development161502191834
✅ 📦 Local Production161502191834
✅ 🐘 Local Postgres161502191834
✅ 📋 Other7410176917
Total6550010487598

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro105026
✅ example105026
✅ express105026
✅ fastify105026
✅ hono105026
✅ nitro105026
✅ nuxt105026
✅ sveltekit12407
✅ vite105026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable106025
✅ e2e-local-dev-tanstack-start-106025
✅ e2e-local-postgres-nest-stable106025
✅ e2e-local-postgres-tanstack-start-106025
✅ e2e-local-prod-nest-stable106025
✅ e2e-local-prod-tanstack-start-106025
✅ e2e-vercel-prod-tanstack-start105026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: cancelled
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: failure

Check the workflow run for details.

@pranaygp
pranaygp marked this pull request as ready for review May 29, 2026 22:02
@pranaygp
pranaygp requested a review from ijjk as a code ownerMay 29, 2026 22:02
CopilotAI review requested due to automatic review settings May 29, 2026 22:02
@pranaygp
pranaygp requested a review from a team as a code ownerMay 29, 2026 22:02

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the canonical workflow execution and webhook endpoints from /.well-known/workflow/v1/ to /.well-known/workflow/v2/. The combined flow handler at v2 now serves both workflow and step queue messages (the separate v1/step route is no longer emitted). The webhook endpoint is also moved to v2, while /.well-known/workflow/v1/webhook/:token remains supported as a compatibility alias across all integrations. The v1 directory continues to host manifest.json and webhook compatibility resources, and builders proactively clean up stale v1 execution artifacts from prior builds.

Changes:

  • Update all queue clients, builders, framework integrations, and tests to use /.well-known/workflow/v2/flow and /.well-known/workflow/v2/webhook/:token.
  • Preserve /.well-known/workflow/v1/webhook/:token as a compatibility route in Next, Nitro, Nest, Sveltekit, Astro, BOA, and standalone builds.
  • Clean stale v1 flow/step/config.json/manifest.json artifacts on each build/boot to avoid cached v1 outputs leaking into v5 deployments.

Reviewed changes

Copilot reviewed 46 out of 46 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
.changeset/workflow-v2-routes.mdNew changeset noting the v2 route migration for all affected packages.
.github/workflows/tests.yml, .github/workflows/e2e-community-world.ymlUpdate CI dev-test config paths to v2 generated routes.
AGENTS.mdDocument that execution routes are now v2; v1 retains manifest/webhook compatibility.
docs/content/docs/v5/**Documentation updated for v2 paths and v1 webhook compatibility (getting-started, how-it-works, hooks, webhooks, api-reference, changelog).
packages/astro/src/builder.tsGenerate to v2 dir, remove stale v1 flow.js/step.js, route v1 webhook to v2 handler, keep manifest in v1.
packages/builders/src/base-builder.tsComment updated to v2 webhook path.
packages/builders/src/standalone.tsRemove stale v1 flow.mjs/step.mjs; build both v2 and v1 webhook bundles; manifest stays in v1.
packages/builders/src/vercel-build-output-api.tsClean v1 flow.func/step.func/webhook; emit v2 flow/webhook funcs; add Build Output route rewrite from v1 webhook to v2.
packages/cli/src/commands/health.ts, packages/cli/src/lib/config/workflow-config.tsUse v2 paths; rename steps bundle to __step_registrations.mjs.
packages/core/e2e/{e2e,local-build}.test.tsTests target v2 endpoints; one webhook test retained on v1 to validate compatibility.
packages/core/src/{create-hook,workflow/create-hook,runtime/world-init}.tsWebhook URL/doc strings updated to v2.
packages/nest/src/workflow.controller.ts, packages/nest/README.mdController exposes v2 flow + v2 webhook + v1 legacy webhook (delegating to v2).
packages/next/src/builder-deferred.ts, builder-eager.ts, builder.ts, index.test.tsGenerate to v2; write/copy webhook stubs for both v1 and v2; cleanup stale v1 routes/config; update deferred entries; tighten watch-mode invariant.
packages/nitro/src/{index,vite}.ts, index.test.tsRegister both v1 and v2 webhook virtual handlers; v2 flow handler; functionRules updated; middleware matcher widened.
packages/sveltekit/src/{builder,index}.tsGenerate to v2; build both v1 and v2 webhook routes; cleanup stale v1 flow/step; manifest stays in v1; .vc-config path updated to v2.
packages/utils/src/get-port.ts, get-port.test.tsProbe endpoint updated to v2.
packages/world-local/src/queue.ts, packages/world-postgres/src/queue.ts, queue.test.ts, README.md, HOW_IT_WORKS.mdRoute all step and workflow queue messages to the v2 flow endpoint.
packages/world-testing/{package.json,src/server.mts,scripts/generate-well-known-dts.mjs}Import v2 flow handler; generate v2 flow/webhook + v1 webhook dts stubs; copy both v1 and v2 mjs into dist.
scripts/create-test-matrix.mjsDEV test config paths updated to v2.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Request Changes — branch is too stale; merging as-is reverts at least three landed PRs

The architectural direction is sound: moving the combined execution endpoint to /v2/flow while keeping the webhook + manifest on /v1 is the right call for v5 (the v4-stable URL contract stays intact, the v5-only behavioral change gets its own path). The PR description's reasoning matches the v5 spec. Approving that direction.

However, the branch is dated May 26 (base b0d0561af) and was last touched June 5 without a rebase. Several PRs landed on main after the base, and the codex diff against current main shows those changes being deleted. Until the branch is rebased and the regressions are vetted, this is unsafe to merge.

Regressions caused by stale base

1. V8 regex stack overflow fix (#930886fe3, Peter, May 27) — reverted

packages/next/src/builder-deferred.tsextractBundleSourceFiles would crash with RangeError: Maximum call stack size exceeded at RegExpStringIterator.next on bundles with multi-MB inline base64 sourcemaps. Peter replaced the matchAll(/...[A-Za-z0-9+/=]+.../g) with a literal-prefix scan + manual base64 alphabet loop. This PR's diff puts the broken regex back:

- // Extract inline base64 sourcemaps via string scanning. A previous- // implementation used `bundleContents.matchAll(/...[A-Za-z0-9+/=]+.../g)`- // which overflows V8's regex stack ...- // [60-line scan loop]+ const sourceMapMatches = bundleContents.matchAll(+ /\/\/# sourceMappingURL=data:application\/json[^,]*;base64,([A-Za-z0-9+/=]+)/g+ );

This was added specifically because inline sourcemaps (#1799) became universal across workspace packages and the bundles got large enough to trip V8's irregexp recursion. The crash was tied to a separate branch where it surfaced first, but the underlying hazard is general — every Next builder run is now vulnerable to it.

2. Nitro dashboard handler (#2110, June 2) — reverted

packages/nitro/src/index.ts loses ~75 lines: the entire addDashboardHandler() function, the addDashboardHandler(nitro) call in dev mode, and the createRequire/pathToFileURL imports it needs. /_workflow dev UI dashboard goes away.

Verified: git show origin/main:packages/nitro/src/index.ts | grep -c addDashboardHandler = 2; git show pr-2154:packages/nitro/src/index.ts | grep -c addDashboardHandler = 0.

3. Lazy step route imports (#2263, JJ, June 5) — reverted

packages/next/src/builder-deferred.ts loses 263 lines that JJ added: createDeferredFlowRoute, createDeferredStepSideEffectImports, getDeferredRouteImportSpecifier, resolveDeferredRouteImportFilePath, resolvePackageSourceDistFilePathForRouteImport, findPackageRootForRouteImportSource, createDeferredStepManifest, resolveBuiltInStepFilesForManifest, mergeWorkflowManifest. The replacement is a single createCombinedBundle() call.

It's plausible that createCombinedBundle actually subsumes what those helpers were doing (the base builder already implements the combined-bundle pattern used by sveltekit/nitro/nest/eager-next), and JJ's PR may have been an interim approach. But the codex diff doesn't make that case — it just deletes the helpers. The accompanying packages/next/src/builder-deferred.test.ts (137 lines added by #2263) isn't touched, so any tests that referenced the deleted helpers will break. And whatever bug #2263 was fixing ("lazy step route imports") may resurface depending on how createCombinedBundle differs.

4. Lockfile / version churn

packages/world-testing/package.json reverts:

  • @hono/node-server 1.19.13 → 1.19.9 (downgrade)
  • hono 4.12.21 → 4.12.3 (downgrade)
  • own version 5.0.0-beta.12 → 5.0.0-beta.7
  • 5 CHANGELOG.md entries removed (beta.8 through beta.12)

These are all stale-branch artifacts from being forked before recent version bumps and dependency updates landed. They'll resolve on rebase, but they're a useful signal for how far behind this branch is.

Status check evidence

The PR's commit e20540c6e ("Keep webhook route on v1", June 5) was never run through CI — only Vercel Agent Review, DCO, Socket, and preview deploys ran on it. The earlier commit d4ef02406 (May 29) ran the full suite with E2E Required Check: failure and Unit Tests (windows-latest): failure. Even if those are flaky, no CI evidence currently exists that the branch in its current state builds, lints, and tests on Linux. mergeStateStatus: DIRTY / mergeable: CONFLICTING confirms there's at least one merge conflict (docs/content/docs/v5/changelog/eager-processing.mdx).

Architectural concerns (separate from staleness)

Workflow-server coordination

The Vercel workflow-server (out of this repo) is what calls into the user app at /v1/flow / /v1/step today. If this PR ships and the user app stops exposing /v1/flow and /v1/step, dispatches from workflow-server will 404 unless workflow-server already knows to:

  1. Dispatch to /v2/flow for new-spec deployments, AND
  2. Fall back to /v1/flow + /v1/step for older deployments that haven't redeployed with the v2 SDK.

The PR doesn't say which workflow-server version is required, and there's no smoke test exercising a mixed-version scenario. Please confirm:

  • Workflow-server already dispatches to /v2/flow for v5-spec deployments
  • Either workflow-server retains /v1/flow + /v1/step fallback during rollout, OR all v5 deployments get re-built before this lands
  • The Vercel beta-channel rollout sequencing is documented somewhere

If the dispatch logic is already version-aware (e.g. driven by manifest contents the workflow-server reads), saying so in the PR description would be enough.

Patch bump?

12 packages all get patch bumps for what is effectively a public-route relocation. On the beta channel patch doesn't matter (changesets always rolls beta.N), but if this ever has to be backported (the PR description says it won't be), patch would be the wrong semver. Since the PR explicitly says no backport, this is fine, but worth a sentence: "Patch is acceptable on the v5/beta channel; this route change is a v5 spec implementation detail, not a public API change."

Things to verify after rebase

Once rebased onto current main:

  1. Re-confirm createCombinedBundle produces equivalent output to createDeferredFlowRoute for the deferred-builder path. The key thing JJ's PR #2263 was solving (per the title — "Fix Next lazy step route imports") needs to either be preserved by createCombinedBundle or explicitly handled separately.
  2. Re-verify extractBundleSourceFiles keeps the string-scan implementation (not the regex).
  3. Re-verify addDashboardHandler stays in packages/nitro/src/index.ts.
  4. Run pnpm turbo run build --filter='!./workbench/*' from a clean state.
  5. Re-run E2E (especially nextjs-webpack dev, which was the canary for the V8 crash).

What I verified locally

  • Checked out PR head onto current main merge base; confirmed the three regressions above via git show against origin/main
  • Confirmed the changeset is appropriately scoped to packages with real changes (modulo the docs file which is in changeset ignore)
  • The route-prefix migration itself (paths in builders, tests, docs, CLI, get-port probe) is consistent across the 38 files — /v2/flow everywhere, /v1/webhook everywhere, /v1/manifest.json everywhere

Bottom line

The direction is right and most of the route-rename mechanics look correct. The blocker is the staleness — this PR was generated by a codex agent from a May 26 branch and the agent didn't notice that meaningful code on main got deleted in the process. Rebase, re-run CI, and re-verify the three reverts are restored.

Holding the approve until the rebase shows green and confirms the three referenced PRs survive.

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.

3 participants

@pranaygp@TooTallNate
, '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" + ' [codex] Migrate workflow execution routes to v2 by pranaygp · Pull Request #2154 · vercel/workflow · GitHub
Skip to content

[codex] Migrate workflow execution routes to v2 - #2154

Open
pranaygp wants to merge 2 commits into
mainfrom
pranaygp/codex/workflow-v2-routes
Open

[codex] Migrate workflow execution routes to v2#2154
pranaygp wants to merge 2 commits into
mainfrom
pranaygp/codex/workflow-v2-routes

Conversation

@pranaygp

@pranaygppranaygp commented May 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move the canonical combined execution endpoint from /.well-known/workflow/v1/flow to /.well-known/workflow/v2/flow and stop emitting the separate v1 step route.
  • Keep the webhook endpoint at /.well-known/workflow/v1/webhook and the public manifest under /.well-known/workflow/v1 across supported integrations and build targets.
  • Remove stale v1 flow/step generated artifacts at build time and update active v5 documentation, route tests, matrices, and changesets.

Why

Workflow v5 uses the combined flow handler, so the execution route has a materially different contract from the v4 split flow/step model and moves to v2. The webhook route did not materially change, so it remains on v1 rather than introducing an unnecessary webhook URL migration.

Backporting

Do not backport this PR to stable: this changes the v5/main execution route contract and does not apply to the v4 stable surface.

Validation

  • pnpm build
  • Focused Biome formatting and error-level lint checks for changed TypeScript/JavaScript files
  • pnpm vitest run packages/next/src/index.test.ts packages/nitro/src/index.test.ts packages/world-postgres/src/queue.test.ts packages/world-local/src/queue.test.ts
  • pnpm vitest run packages/utils/src/get-port.test.ts -t \"identify workflow server|respect custom timeout|handle concurrent getWorkflowPort|return single port without probing\"
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/example
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/nextjs-turbopack
  • pnpm build in workbench/sveltekit and workbench/astro
  • Verified generated outputs contain v2/flow, v1/webhook, and no v2/webhook route

@vercel

vercelBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e20540c

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

This PR includes changesets to release 21 packages
NameType
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/corePatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/sveltekitPatch
@workflow/utilsPatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-testingPatch
workflowPatch
@workflow/rollupPatch
@workflow/vitePatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/nuxtPatch
@workflow/errorsPatch
@workflow/world-vercelPatch

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

@github-actions

github-actionsBot commented May 29, 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
💻 Local🥇 Nitro0.038s (-11.6% 🟢)1.006s (~)0.968s101.00x
💻 LocalExpress0.043s (-3.2%)1.005s (~)0.962s101.13x
🐘 PostgresNitro0.059s (-38.0% 🟢)1.012s (-3.0%)0.953s101.55x
💻 LocalNext.js (Turbopack)0.059s1.006s0.946s101.55x
🐘 PostgresExpress0.068s (+17.9% 🔺)1.012s (~)0.943s101.80x
🐘 PostgresNext.js (Turbopack)0.069s1.012s0.943s101.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.337s (+43.0% 🔺)2.430s (+13.8% 🔺)2.093s101.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-3.2%)2.006s (~)0.917s101.00x
🐘 PostgresNitro1.101s (-3.4%)2.009s (~)0.908s101.01x
💻 LocalNitro1.110s (-1.9%)2.006s (~)0.896s101.02x
🐘 PostgresExpress1.112s (-3.0%)2.010s (~)0.898s101.02x
💻 LocalNext.js (Turbopack)1.127s2.007s0.880s101.04x
🐘 PostgresNext.js (Turbopack)1.137s2.008s0.871s101.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.907s (+1.7%)4.032s (+5.9% 🔺)2.125s101.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.482s (-4.2%)11.022s (~)0.540s31.00x
💻 LocalExpress10.511s (-3.8%)11.021s (~)0.510s31.00x
🐘 PostgresNitro10.520s (-3.2%)11.014s (~)0.495s31.00x
🐘 PostgresExpress10.577s (-3.5%)11.015s (~)0.438s31.01x
💻 LocalNext.js (Turbopack)10.771s11.021s0.250s31.03x
🐘 PostgresNext.js (Turbopack)10.852s11.021s0.169s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.111s (-16.9% 🟢)16.261s (-18.8% 🟢)2.149s21.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.728s (-8.3% 🟢)14.026s (-6.7% 🟢)0.298s51.00x
🐘 PostgresNitro13.748s (-5.8% 🟢)14.021s (-6.7% 🟢)0.272s51.00x
🐘 PostgresExpress13.773s (-5.6% 🟢)14.020s (-6.7% 🟢)0.247s51.00x
💻 LocalNitro13.776s (-8.5% 🟢)14.028s (-12.5% 🟢)0.251s51.00x
💻 LocalNext.js (Turbopack)14.335s15.029s0.694s41.04x
🐘 PostgresNext.js (Turbopack)14.552s15.019s0.467s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express25.710s (-48.9% 🟢)27.665s (-47.4% 🟢)1.955s31.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.325s (-11.8% 🟢)13.016s (-9.0% 🟢)0.691s71.00x
💻 LocalNitro12.387s (-26.2% 🟢)13.025s (-23.5% 🟢)0.638s71.01x
💻 LocalExpress12.409s (-25.3% 🟢)13.024s (-23.5% 🟢)0.615s71.01x
🐘 PostgresExpress12.470s (-11.0% 🟢)13.019s (-10.8% 🟢)0.549s71.01x
💻 LocalNext.js (Turbopack)13.589s14.027s0.438s71.10x
🐘 PostgresNext.js (Turbopack)13.730s14.021s0.291s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express32.317s (-73.3% 🟢)34.350s (-72.2% 🟢)2.033s31.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.157s (-22.3% 🟢)2.006s (~)0.848s151.00x
🐘 PostgresNitro1.175s (-7.8% 🟢)2.008s (~)0.833s151.01x
🐘 PostgresExpress1.175s (-6.7% 🟢)2.007s (~)0.831s151.02x
🐘 PostgresNext.js (Turbopack)1.253s2.075s0.822s151.08x
💻 LocalNitro1.256s (-23.0% 🟢)2.005s (-3.3%)0.749s151.08x
💻 LocalNext.js (Turbopack)1.308s2.006s0.698s151.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.806s (-1.9%)4.468s (-3.4%)1.662s71.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.247s (-47.0% 🟢)2.009s (-33.2% 🟢)0.763s151.00x
🐘 PostgresExpress1.279s (-45.8% 🟢)2.007s (-33.3% 🟢)0.728s151.03x
🐘 PostgresNext.js (Turbopack)1.463s2.074s0.611s151.17x
💻 LocalExpress1.611s (-45.4% 🟢)2.006s (-41.9% 🟢)0.394s151.29x
💻 LocalNitro1.716s (-45.4% 🟢)2.006s (-48.4% 🟢)0.290s151.38x
💻 LocalNext.js (Turbopack)1.781s2.007s0.226s151.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.608s (~)5.581s (+9.2% 🔺)1.972s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.365s (-60.8% 🟢)2.008s (-49.9% 🟢)0.643s151.00x
🐘 PostgresExpress1.400s (-59.8% 🟢)2.006s (-50.0% 🟢)0.607s151.03x
🐘 PostgresNext.js (Turbopack)1.675s2.076s0.401s151.23x
💻 LocalExpress3.866s (-53.6% 🟢)4.296s (-52.4% 🟢)0.430s72.83x
💻 LocalNitro4.404s (-47.3% 🟢)5.012s (-44.4% 🟢)0.608s63.23x
💻 LocalNext.js (Turbopack)4.956s5.513s0.556s63.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.234s (+23.4% 🔺)6.789s (+10.8% 🔺)1.555s51.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.188s (-5.5% 🟢)2.009s (~)0.821s151.00x
🐘 PostgresNitro1.194s (-5.0% 🟢)2.009s (~)0.815s151.01x
🐘 PostgresNext.js (Turbopack)1.235s2.007s0.772s151.04x
💻 LocalNext.js (Turbopack)1.353s2.006s0.653s151.14x
💻 LocalNitro1.514s (-18.8% 🟢)2.006s (-14.3% 🟢)0.491s151.27x
💻 LocalExpress1.528s (-19.3% 🟢)2.006s (-15.1% 🟢)0.477s151.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.799s (+8.4% 🔺)4.196s (-3.5%)1.397s81.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.239s (-47.0% 🟢)2.009s (-33.3% 🟢)0.769s151.00x
🐘 PostgresExpress1.275s (-45.5% 🟢)2.008s (-33.3% 🟢)0.733s151.03x
🐘 PostgresNext.js (Turbopack)1.422s2.076s0.654s151.15x
💻 LocalNext.js (Turbopack)2.009s2.591s0.582s121.62x
💻 LocalNitro2.016s (-34.2% 🟢)2.592s (-33.3% 🟢)0.576s121.63x
💻 LocalExpress2.104s (-32.8% 🟢)2.507s (-33.4% 🟢)0.402s121.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.787s (+18.6% 🔺)5.467s (+14.1% 🔺)1.680s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.400s (-59.8% 🟢)2.008s (-49.9% 🟢)0.608s151.00x
🐘 PostgresExpress1.430s (-59.1% 🟢)2.010s (-49.9% 🟢)0.579s151.02x
🐘 PostgresNext.js (Turbopack)1.708s2.155s0.447s141.22x
💻 LocalExpress4.399s (-50.0% 🟢)5.181s (-44.1% 🟢)0.781s63.14x
💻 LocalNitro5.309s (-41.9% 🟢)5.848s (-41.7% 🟢)0.539s63.79x
💻 LocalNext.js (Turbopack)5.551s6.017s0.466s53.97x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.609s (-28.2% 🟢)6.579s (-19.6% 🟢)1.971s51.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.543s (-33.8% 🟢)1.007s (~)0.464s601.00x
💻 LocalExpress0.572s (-41.9% 🟢)1.004s (-6.7% 🟢)0.433s601.05x
🐘 PostgresExpress0.582s (-30.7% 🟢)1.041s (+1.8%)0.459s581.07x
💻 LocalNitro0.589s (-39.9% 🟢)1.005s (-8.1% 🟢)0.416s601.09x
🐘 PostgresNext.js (Turbopack)0.811s1.007s0.195s601.49x
💻 LocalNext.js (Turbopack)0.858s1.021s0.164s591.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.578s (-70.7% 🟢)7.244s (-66.0% 🟢)1.666s91.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.305s (-32.3% 🟢)2.029s (-3.4%)0.724s451.00x
🐘 PostgresExpress1.377s (-30.4% 🟢)2.029s (-10.1% 🟢)0.653s451.05x
💻 LocalExpress1.450s (-51.9% 🟢)2.006s (-44.1% 🟢)0.555s451.11x
💻 LocalNitro1.491s (-50.9% 🟢)2.006s (-46.6% 🟢)0.514s451.14x
🐘 PostgresNext.js (Turbopack)1.940s2.124s0.184s431.49x
💻 LocalNext.js (Turbopack)2.089s2.975s0.886s311.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.101s (-56.3% 🟢)17.599s (-52.2% 🟢)2.498s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.592s (-36.8% 🟢)3.058s (-33.6% 🟢)0.466s401.00x
🐘 PostgresExpress2.707s (-32.2% 🟢)3.085s (-29.4% 🟢)0.379s391.04x
💻 LocalExpress3.126s (-66.1% 🟢)3.735s (-62.7% 🟢)0.610s331.21x
💻 LocalNitro3.280s (-64.7% 🟢)3.944s (-60.6% 🟢)0.664s311.27x
🐘 PostgresNext.js (Turbopack)3.742s4.009s0.267s301.44x
💻 LocalNext.js (Turbopack)4.226s5.010s0.784s241.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express28.945s (-77.7% 🟢)31.551s (-76.1% 🟢)2.606s41.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.217s (-23.4% 🟢)1.006s (~)0.789s601.00x
🐘 PostgresExpress0.230s (-18.5% 🟢)1.006s (~)0.776s601.06x
🐘 PostgresNext.js (Turbopack)0.258s1.006s0.748s601.19x
💻 LocalExpress0.441s (-21.2% 🟢)1.021s (+1.7%)0.580s592.03x
💻 LocalNitro0.444s (-26.6% 🟢)1.004s (-1.7%)0.561s602.04x
💻 LocalNext.js (Turbopack)0.627s1.056s0.429s582.89x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.245s (+14.9% 🔺)4.082s (+12.2% 🔺)1.836s151.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.330s (-33.5% 🟢)1.006s (~)0.676s901.00x
🐘 PostgresExpress0.365s (-28.4% 🟢)1.007s (~)0.642s901.11x
🐘 PostgresNext.js (Turbopack)0.468s1.006s0.538s901.42x
💻 LocalExpress1.990s (-20.8% 🟢)2.494s (-17.1% 🟢)0.504s376.03x
💻 LocalNitro2.196s (-13.5% 🟢)2.766s (-8.1% 🟢)0.571s336.65x
💻 LocalNext.js (Turbopack)2.254s2.884s0.630s326.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.494s (+80.4% 🔺)7.214s (+50.1% 🔺)1.720s131.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.654s (-17.2% 🟢)1.006s (~)0.351s1201.00x
🐘 PostgresExpress0.701s (-14.4% 🟢)1.006s (-1.1%)0.305s1201.07x
🐘 PostgresNext.js (Turbopack)0.943s1.351s0.408s901.44x
💻 LocalExpress8.549s (-23.6% 🟢)9.097s (-23.8% 🟢)0.548s1413.07x
💻 LocalNitro9.450s (-15.6% 🟢)10.196s (-12.6% 🟢)0.746s1214.44x
💻 LocalNext.js (Turbopack)10.151s11.028s0.877s1115.52x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express12.410s (+67.2% 🔺)14.751s (+59.6% 🔺)2.340s91.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.149s (+477.2% 🔺)2.004s (+99.5% 🔺)0.010s (-16.5% 🟢)2.017s (+98.1% 🔺)0.868s101.00x
🐘 PostgresExpress1.161s (+465.8% 🔺)2.000s (+100.3% 🔺)0.001s (-25.0% 🟢)2.011s (+98.8% 🔺)0.850s101.01x
💻 LocalNitro1.162s (+443.6% 🔺)2.005s (+99.6% 🔺)0.011s (-13.6% 🟢)2.018s (+98.0% 🔺)0.856s101.01x
🐘 PostgresNitro1.162s (+466.8% 🔺)2.002s (+100.3% 🔺)0.001s (-26.7% 🟢)2.011s (+98.8% 🔺)0.849s101.01x
💻 LocalNext.js (Turbopack)1.203s2.004s0.010s2.018s0.815s101.05x
🐘 PostgresNext.js (Turbopack)1.227s2.001s0.001s2.011s0.784s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.143s (-14.4% 🟢)3.297s (-19.4% 🟢)1.808s (+88.1% 🔺)5.581s (~)3.437s101.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.562s (+150.3% 🔺)2.002s (+98.9% 🔺)0.004s (-11.3% 🟢)2.025s (+98.1% 🔺)0.463s301.00x
💻 LocalNitro1.565s (+86.6% 🔺)2.009s (+98.5% 🔺)0.010s (+6.0% 🔺)2.021s (+81.1% 🔺)0.456s301.00x
🐘 PostgresExpress1.602s (+154.3% 🔺)2.006s (+99.3% 🔺)0.004s (+0.9%)2.028s (+98.2% 🔺)0.425s301.03x
💻 LocalNext.js (Turbopack)1.708s2.008s0.010s2.021s0.312s301.09x
🐘 PostgresNext.js (Turbopack)1.743s2.009s0.004s2.024s0.281s301.12x
💻 LocalExpress1.756s (+131.9% 🔺)2.011s (+95.4% 🔺)0.009s (-1.7%)2.201s (+111.6% 🔺)0.445s281.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.788s (-11.0% 🟢)7.424s (-7.3% 🟢)0.461s (+12.7% 🔺)8.392s (-5.0% 🟢)2.604s81.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.691s (-28.7% 🟢)1.030s (-17.5% 🟢)0.000s (+24.1% 🔺)1.042s (-17.2% 🟢)0.351s581.00x
🐘 PostgresExpress0.725s (-24.5% 🟢)1.048s (-18.0% 🟢)0.000s (+21.1% 🔺)1.060s (-18.8% 🟢)0.335s571.05x
🐘 PostgresNext.js (Turbopack)0.802s1.072s0.000s1.079s0.277s561.16x
💻 LocalExpress1.330s (+8.6% 🔺)2.012s (~)0.000s (+40.0% 🔺)2.014s (~)0.684s301.92x
💻 LocalNitro1.428s (+16.8% 🔺)2.013s (~)0.000s (+33.3% 🔺)2.015s (~)0.587s302.07x
💻 LocalNext.js (Turbopack)1.482s2.013s0.000s2.016s0.534s302.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.411s (-8.8% 🟢)4.624s (-9.4% 🟢)0.000s (-100.0% 🟢)5.192s (-6.1% 🟢)1.781s121.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.460s (-18.5% 🟢)2.100s (-1.9%)0.000s (+93.1% 🔺)2.126s (-2.2%)0.666s291.00x
🐘 PostgresNext.js (Turbopack)1.551s2.144s0.000s2.152s0.601s281.06x
🐘 PostgresExpress1.625s (-8.3% 🟢)2.220s (+1.9%)0.000s (+Infinity% 🔺)2.233s (+1.5%)0.608s271.11x
💻 LocalNext.js (Turbopack)2.868s3.412s0.001s3.421s0.553s181.96x
💻 LocalExpress2.971s (-14.3% 🟢)3.607s (-10.6% 🟢)0.001s (-11.8% 🟢)3.615s (-10.4% 🟢)0.644s172.03x
💻 LocalNitro3.163s (-6.6% 🟢)3.902s (-3.2%)0.001s (+64.1% 🔺)3.905s (-3.2%)0.743s162.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.232s (+14.0% 🔺)6.901s (+14.6% 🔺)0.007s (+Infinity% 🔺)7.496s (+16.1% 🔺)2.264s91.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress14/21
🐘 PostgresNitro19/21
▲ VercelExpress21/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres13/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres18/21
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
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production96402151179
✅ 💻 Local Development161502191834
✅ 📦 Local Production161502191834
✅ 🐘 Local Postgres161502191834
✅ 📋 Other7410176917
Total6550010487598

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro105026
✅ example105026
✅ express105026
✅ fastify105026
✅ hono105026
✅ nitro105026
✅ nuxt105026
✅ sveltekit12407
✅ vite105026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable106025
✅ e2e-local-dev-tanstack-start-106025
✅ e2e-local-postgres-nest-stable106025
✅ e2e-local-postgres-tanstack-start-106025
✅ e2e-local-prod-nest-stable106025
✅ e2e-local-prod-tanstack-start-106025
✅ e2e-vercel-prod-tanstack-start105026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: cancelled
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: failure

Check the workflow run for details.

@pranaygp
pranaygp marked this pull request as ready for review May 29, 2026 22:02
@pranaygp
pranaygp requested a review from ijjk as a code ownerMay 29, 2026 22:02
CopilotAI review requested due to automatic review settings May 29, 2026 22:02
@pranaygp
pranaygp requested a review from a team as a code ownerMay 29, 2026 22:02

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the canonical workflow execution and webhook endpoints from /.well-known/workflow/v1/ to /.well-known/workflow/v2/. The combined flow handler at v2 now serves both workflow and step queue messages (the separate v1/step route is no longer emitted). The webhook endpoint is also moved to v2, while /.well-known/workflow/v1/webhook/:token remains supported as a compatibility alias across all integrations. The v1 directory continues to host manifest.json and webhook compatibility resources, and builders proactively clean up stale v1 execution artifacts from prior builds.

Changes:

  • Update all queue clients, builders, framework integrations, and tests to use /.well-known/workflow/v2/flow and /.well-known/workflow/v2/webhook/:token.
  • Preserve /.well-known/workflow/v1/webhook/:token as a compatibility route in Next, Nitro, Nest, Sveltekit, Astro, BOA, and standalone builds.
  • Clean stale v1 flow/step/config.json/manifest.json artifacts on each build/boot to avoid cached v1 outputs leaking into v5 deployments.

Reviewed changes

Copilot reviewed 46 out of 46 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
.changeset/workflow-v2-routes.mdNew changeset noting the v2 route migration for all affected packages.
.github/workflows/tests.yml, .github/workflows/e2e-community-world.ymlUpdate CI dev-test config paths to v2 generated routes.
AGENTS.mdDocument that execution routes are now v2; v1 retains manifest/webhook compatibility.
docs/content/docs/v5/**Documentation updated for v2 paths and v1 webhook compatibility (getting-started, how-it-works, hooks, webhooks, api-reference, changelog).
packages/astro/src/builder.tsGenerate to v2 dir, remove stale v1 flow.js/step.js, route v1 webhook to v2 handler, keep manifest in v1.
packages/builders/src/base-builder.tsComment updated to v2 webhook path.
packages/builders/src/standalone.tsRemove stale v1 flow.mjs/step.mjs; build both v2 and v1 webhook bundles; manifest stays in v1.
packages/builders/src/vercel-build-output-api.tsClean v1 flow.func/step.func/webhook; emit v2 flow/webhook funcs; add Build Output route rewrite from v1 webhook to v2.
packages/cli/src/commands/health.ts, packages/cli/src/lib/config/workflow-config.tsUse v2 paths; rename steps bundle to __step_registrations.mjs.
packages/core/e2e/{e2e,local-build}.test.tsTests target v2 endpoints; one webhook test retained on v1 to validate compatibility.
packages/core/src/{create-hook,workflow/create-hook,runtime/world-init}.tsWebhook URL/doc strings updated to v2.
packages/nest/src/workflow.controller.ts, packages/nest/README.mdController exposes v2 flow + v2 webhook + v1 legacy webhook (delegating to v2).
packages/next/src/builder-deferred.ts, builder-eager.ts, builder.ts, index.test.tsGenerate to v2; write/copy webhook stubs for both v1 and v2; cleanup stale v1 routes/config; update deferred entries; tighten watch-mode invariant.
packages/nitro/src/{index,vite}.ts, index.test.tsRegister both v1 and v2 webhook virtual handlers; v2 flow handler; functionRules updated; middleware matcher widened.
packages/sveltekit/src/{builder,index}.tsGenerate to v2; build both v1 and v2 webhook routes; cleanup stale v1 flow/step; manifest stays in v1; .vc-config path updated to v2.
packages/utils/src/get-port.ts, get-port.test.tsProbe endpoint updated to v2.
packages/world-local/src/queue.ts, packages/world-postgres/src/queue.ts, queue.test.ts, README.md, HOW_IT_WORKS.mdRoute all step and workflow queue messages to the v2 flow endpoint.
packages/world-testing/{package.json,src/server.mts,scripts/generate-well-known-dts.mjs}Import v2 flow handler; generate v2 flow/webhook + v1 webhook dts stubs; copy both v1 and v2 mjs into dist.
scripts/create-test-matrix.mjsDEV test config paths updated to v2.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Request Changes — branch is too stale; merging as-is reverts at least three landed PRs

The architectural direction is sound: moving the combined execution endpoint to /v2/flow while keeping the webhook + manifest on /v1 is the right call for v5 (the v4-stable URL contract stays intact, the v5-only behavioral change gets its own path). The PR description's reasoning matches the v5 spec. Approving that direction.

However, the branch is dated May 26 (base b0d0561af) and was last touched June 5 without a rebase. Several PRs landed on main after the base, and the codex diff against current main shows those changes being deleted. Until the branch is rebased and the regressions are vetted, this is unsafe to merge.

Regressions caused by stale base

1. V8 regex stack overflow fix (#930886fe3, Peter, May 27) — reverted

packages/next/src/builder-deferred.tsextractBundleSourceFiles would crash with RangeError: Maximum call stack size exceeded at RegExpStringIterator.next on bundles with multi-MB inline base64 sourcemaps. Peter replaced the matchAll(/...[A-Za-z0-9+/=]+.../g) with a literal-prefix scan + manual base64 alphabet loop. This PR's diff puts the broken regex back:

- // Extract inline base64 sourcemaps via string scanning. A previous- // implementation used `bundleContents.matchAll(/...[A-Za-z0-9+/=]+.../g)`- // which overflows V8's regex stack ...- // [60-line scan loop]+ const sourceMapMatches = bundleContents.matchAll(+ /\/\/# sourceMappingURL=data:application\/json[^,]*;base64,([A-Za-z0-9+/=]+)/g+ );

This was added specifically because inline sourcemaps (#1799) became universal across workspace packages and the bundles got large enough to trip V8's irregexp recursion. The crash was tied to a separate branch where it surfaced first, but the underlying hazard is general — every Next builder run is now vulnerable to it.

2. Nitro dashboard handler (#2110, June 2) — reverted

packages/nitro/src/index.ts loses ~75 lines: the entire addDashboardHandler() function, the addDashboardHandler(nitro) call in dev mode, and the createRequire/pathToFileURL imports it needs. /_workflow dev UI dashboard goes away.

Verified: git show origin/main:packages/nitro/src/index.ts | grep -c addDashboardHandler = 2; git show pr-2154:packages/nitro/src/index.ts | grep -c addDashboardHandler = 0.

3. Lazy step route imports (#2263, JJ, June 5) — reverted

packages/next/src/builder-deferred.ts loses 263 lines that JJ added: createDeferredFlowRoute, createDeferredStepSideEffectImports, getDeferredRouteImportSpecifier, resolveDeferredRouteImportFilePath, resolvePackageSourceDistFilePathForRouteImport, findPackageRootForRouteImportSource, createDeferredStepManifest, resolveBuiltInStepFilesForManifest, mergeWorkflowManifest. The replacement is a single createCombinedBundle() call.

It's plausible that createCombinedBundle actually subsumes what those helpers were doing (the base builder already implements the combined-bundle pattern used by sveltekit/nitro/nest/eager-next), and JJ's PR may have been an interim approach. But the codex diff doesn't make that case — it just deletes the helpers. The accompanying packages/next/src/builder-deferred.test.ts (137 lines added by #2263) isn't touched, so any tests that referenced the deleted helpers will break. And whatever bug #2263 was fixing ("lazy step route imports") may resurface depending on how createCombinedBundle differs.

4. Lockfile / version churn

packages/world-testing/package.json reverts:

  • @hono/node-server 1.19.13 → 1.19.9 (downgrade)
  • hono 4.12.21 → 4.12.3 (downgrade)
  • own version 5.0.0-beta.12 → 5.0.0-beta.7
  • 5 CHANGELOG.md entries removed (beta.8 through beta.12)

These are all stale-branch artifacts from being forked before recent version bumps and dependency updates landed. They'll resolve on rebase, but they're a useful signal for how far behind this branch is.

Status check evidence

The PR's commit e20540c6e ("Keep webhook route on v1", June 5) was never run through CI — only Vercel Agent Review, DCO, Socket, and preview deploys ran on it. The earlier commit d4ef02406 (May 29) ran the full suite with E2E Required Check: failure and Unit Tests (windows-latest): failure. Even if those are flaky, no CI evidence currently exists that the branch in its current state builds, lints, and tests on Linux. mergeStateStatus: DIRTY / mergeable: CONFLICTING confirms there's at least one merge conflict (docs/content/docs/v5/changelog/eager-processing.mdx).

Architectural concerns (separate from staleness)

Workflow-server coordination

The Vercel workflow-server (out of this repo) is what calls into the user app at /v1/flow / /v1/step today. If this PR ships and the user app stops exposing /v1/flow and /v1/step, dispatches from workflow-server will 404 unless workflow-server already knows to:

  1. Dispatch to /v2/flow for new-spec deployments, AND
  2. Fall back to /v1/flow + /v1/step for older deployments that haven't redeployed with the v2 SDK.

The PR doesn't say which workflow-server version is required, and there's no smoke test exercising a mixed-version scenario. Please confirm:

  • Workflow-server already dispatches to /v2/flow for v5-spec deployments
  • Either workflow-server retains /v1/flow + /v1/step fallback during rollout, OR all v5 deployments get re-built before this lands
  • The Vercel beta-channel rollout sequencing is documented somewhere

If the dispatch logic is already version-aware (e.g. driven by manifest contents the workflow-server reads), saying so in the PR description would be enough.

Patch bump?

12 packages all get patch bumps for what is effectively a public-route relocation. On the beta channel patch doesn't matter (changesets always rolls beta.N), but if this ever has to be backported (the PR description says it won't be), patch would be the wrong semver. Since the PR explicitly says no backport, this is fine, but worth a sentence: "Patch is acceptable on the v5/beta channel; this route change is a v5 spec implementation detail, not a public API change."

Things to verify after rebase

Once rebased onto current main:

  1. Re-confirm createCombinedBundle produces equivalent output to createDeferredFlowRoute for the deferred-builder path. The key thing JJ's PR #2263 was solving (per the title — "Fix Next lazy step route imports") needs to either be preserved by createCombinedBundle or explicitly handled separately.
  2. Re-verify extractBundleSourceFiles keeps the string-scan implementation (not the regex).
  3. Re-verify addDashboardHandler stays in packages/nitro/src/index.ts.
  4. Run pnpm turbo run build --filter='!./workbench/*' from a clean state.
  5. Re-run E2E (especially nextjs-webpack dev, which was the canary for the V8 crash).

What I verified locally

  • Checked out PR head onto current main merge base; confirmed the three regressions above via git show against origin/main
  • Confirmed the changeset is appropriately scoped to packages with real changes (modulo the docs file which is in changeset ignore)
  • The route-prefix migration itself (paths in builders, tests, docs, CLI, get-port probe) is consistent across the 38 files — /v2/flow everywhere, /v1/webhook everywhere, /v1/manifest.json everywhere

Bottom line

The direction is right and most of the route-rename mechanics look correct. The blocker is the staleness — this PR was generated by a codex agent from a May 26 branch and the agent didn't notice that meaningful code on main got deleted in the process. Rebase, re-run CI, and re-verify the three reverts are restored.

Holding the approve until the rebase shows green and confirms the three referenced PRs survive.

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.

3 participants

@pranaygp@TooTallNate
, '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('^' + ".*" + ' [codex] Migrate workflow execution routes to v2 by pranaygp · Pull Request #2154 · vercel/workflow · GitHub
Skip to content

[codex] Migrate workflow execution routes to v2 - #2154

Open
pranaygp wants to merge 2 commits into
mainfrom
pranaygp/codex/workflow-v2-routes
Open

[codex] Migrate workflow execution routes to v2#2154
pranaygp wants to merge 2 commits into
mainfrom
pranaygp/codex/workflow-v2-routes

Conversation

@pranaygp

@pranaygppranaygp commented May 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move the canonical combined execution endpoint from /.well-known/workflow/v1/flow to /.well-known/workflow/v2/flow and stop emitting the separate v1 step route.
  • Keep the webhook endpoint at /.well-known/workflow/v1/webhook and the public manifest under /.well-known/workflow/v1 across supported integrations and build targets.
  • Remove stale v1 flow/step generated artifacts at build time and update active v5 documentation, route tests, matrices, and changesets.

Why

Workflow v5 uses the combined flow handler, so the execution route has a materially different contract from the v4 split flow/step model and moves to v2. The webhook route did not materially change, so it remains on v1 rather than introducing an unnecessary webhook URL migration.

Backporting

Do not backport this PR to stable: this changes the v5/main execution route contract and does not apply to the v4 stable surface.

Validation

  • pnpm build
  • Focused Biome formatting and error-level lint checks for changed TypeScript/JavaScript files
  • pnpm vitest run packages/next/src/index.test.ts packages/nitro/src/index.test.ts packages/world-postgres/src/queue.test.ts packages/world-local/src/queue.test.ts
  • pnpm vitest run packages/utils/src/get-port.test.ts -t \"identify workflow server|respect custom timeout|handle concurrent getWorkflowPort|return single port without probing\"
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/example
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/nextjs-turbopack
  • pnpm build in workbench/sveltekit and workbench/astro
  • Verified generated outputs contain v2/flow, v1/webhook, and no v2/webhook route

@vercel

vercelBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e20540c

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

This PR includes changesets to release 21 packages
NameType
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/corePatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/sveltekitPatch
@workflow/utilsPatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-testingPatch
workflowPatch
@workflow/rollupPatch
@workflow/vitePatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/nuxtPatch
@workflow/errorsPatch
@workflow/world-vercelPatch

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

@github-actions

github-actionsBot commented May 29, 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
💻 Local🥇 Nitro0.038s (-11.6% 🟢)1.006s (~)0.968s101.00x
💻 LocalExpress0.043s (-3.2%)1.005s (~)0.962s101.13x
🐘 PostgresNitro0.059s (-38.0% 🟢)1.012s (-3.0%)0.953s101.55x
💻 LocalNext.js (Turbopack)0.059s1.006s0.946s101.55x
🐘 PostgresExpress0.068s (+17.9% 🔺)1.012s (~)0.943s101.80x
🐘 PostgresNext.js (Turbopack)0.069s1.012s0.943s101.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.337s (+43.0% 🔺)2.430s (+13.8% 🔺)2.093s101.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-3.2%)2.006s (~)0.917s101.00x
🐘 PostgresNitro1.101s (-3.4%)2.009s (~)0.908s101.01x
💻 LocalNitro1.110s (-1.9%)2.006s (~)0.896s101.02x
🐘 PostgresExpress1.112s (-3.0%)2.010s (~)0.898s101.02x
💻 LocalNext.js (Turbopack)1.127s2.007s0.880s101.04x
🐘 PostgresNext.js (Turbopack)1.137s2.008s0.871s101.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.907s (+1.7%)4.032s (+5.9% 🔺)2.125s101.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.482s (-4.2%)11.022s (~)0.540s31.00x
💻 LocalExpress10.511s (-3.8%)11.021s (~)0.510s31.00x
🐘 PostgresNitro10.520s (-3.2%)11.014s (~)0.495s31.00x
🐘 PostgresExpress10.577s (-3.5%)11.015s (~)0.438s31.01x
💻 LocalNext.js (Turbopack)10.771s11.021s0.250s31.03x
🐘 PostgresNext.js (Turbopack)10.852s11.021s0.169s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.111s (-16.9% 🟢)16.261s (-18.8% 🟢)2.149s21.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.728s (-8.3% 🟢)14.026s (-6.7% 🟢)0.298s51.00x
🐘 PostgresNitro13.748s (-5.8% 🟢)14.021s (-6.7% 🟢)0.272s51.00x
🐘 PostgresExpress13.773s (-5.6% 🟢)14.020s (-6.7% 🟢)0.247s51.00x
💻 LocalNitro13.776s (-8.5% 🟢)14.028s (-12.5% 🟢)0.251s51.00x
💻 LocalNext.js (Turbopack)14.335s15.029s0.694s41.04x
🐘 PostgresNext.js (Turbopack)14.552s15.019s0.467s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express25.710s (-48.9% 🟢)27.665s (-47.4% 🟢)1.955s31.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.325s (-11.8% 🟢)13.016s (-9.0% 🟢)0.691s71.00x
💻 LocalNitro12.387s (-26.2% 🟢)13.025s (-23.5% 🟢)0.638s71.01x
💻 LocalExpress12.409s (-25.3% 🟢)13.024s (-23.5% 🟢)0.615s71.01x
🐘 PostgresExpress12.470s (-11.0% 🟢)13.019s (-10.8% 🟢)0.549s71.01x
💻 LocalNext.js (Turbopack)13.589s14.027s0.438s71.10x
🐘 PostgresNext.js (Turbopack)13.730s14.021s0.291s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express32.317s (-73.3% 🟢)34.350s (-72.2% 🟢)2.033s31.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.157s (-22.3% 🟢)2.006s (~)0.848s151.00x
🐘 PostgresNitro1.175s (-7.8% 🟢)2.008s (~)0.833s151.01x
🐘 PostgresExpress1.175s (-6.7% 🟢)2.007s (~)0.831s151.02x
🐘 PostgresNext.js (Turbopack)1.253s2.075s0.822s151.08x
💻 LocalNitro1.256s (-23.0% 🟢)2.005s (-3.3%)0.749s151.08x
💻 LocalNext.js (Turbopack)1.308s2.006s0.698s151.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.806s (-1.9%)4.468s (-3.4%)1.662s71.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.247s (-47.0% 🟢)2.009s (-33.2% 🟢)0.763s151.00x
🐘 PostgresExpress1.279s (-45.8% 🟢)2.007s (-33.3% 🟢)0.728s151.03x
🐘 PostgresNext.js (Turbopack)1.463s2.074s0.611s151.17x
💻 LocalExpress1.611s (-45.4% 🟢)2.006s (-41.9% 🟢)0.394s151.29x
💻 LocalNitro1.716s (-45.4% 🟢)2.006s (-48.4% 🟢)0.290s151.38x
💻 LocalNext.js (Turbopack)1.781s2.007s0.226s151.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.608s (~)5.581s (+9.2% 🔺)1.972s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.365s (-60.8% 🟢)2.008s (-49.9% 🟢)0.643s151.00x
🐘 PostgresExpress1.400s (-59.8% 🟢)2.006s (-50.0% 🟢)0.607s151.03x
🐘 PostgresNext.js (Turbopack)1.675s2.076s0.401s151.23x
💻 LocalExpress3.866s (-53.6% 🟢)4.296s (-52.4% 🟢)0.430s72.83x
💻 LocalNitro4.404s (-47.3% 🟢)5.012s (-44.4% 🟢)0.608s63.23x
💻 LocalNext.js (Turbopack)4.956s5.513s0.556s63.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.234s (+23.4% 🔺)6.789s (+10.8% 🔺)1.555s51.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.188s (-5.5% 🟢)2.009s (~)0.821s151.00x
🐘 PostgresNitro1.194s (-5.0% 🟢)2.009s (~)0.815s151.01x
🐘 PostgresNext.js (Turbopack)1.235s2.007s0.772s151.04x
💻 LocalNext.js (Turbopack)1.353s2.006s0.653s151.14x
💻 LocalNitro1.514s (-18.8% 🟢)2.006s (-14.3% 🟢)0.491s151.27x
💻 LocalExpress1.528s (-19.3% 🟢)2.006s (-15.1% 🟢)0.477s151.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.799s (+8.4% 🔺)4.196s (-3.5%)1.397s81.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.239s (-47.0% 🟢)2.009s (-33.3% 🟢)0.769s151.00x
🐘 PostgresExpress1.275s (-45.5% 🟢)2.008s (-33.3% 🟢)0.733s151.03x
🐘 PostgresNext.js (Turbopack)1.422s2.076s0.654s151.15x
💻 LocalNext.js (Turbopack)2.009s2.591s0.582s121.62x
💻 LocalNitro2.016s (-34.2% 🟢)2.592s (-33.3% 🟢)0.576s121.63x
💻 LocalExpress2.104s (-32.8% 🟢)2.507s (-33.4% 🟢)0.402s121.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.787s (+18.6% 🔺)5.467s (+14.1% 🔺)1.680s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.400s (-59.8% 🟢)2.008s (-49.9% 🟢)0.608s151.00x
🐘 PostgresExpress1.430s (-59.1% 🟢)2.010s (-49.9% 🟢)0.579s151.02x
🐘 PostgresNext.js (Turbopack)1.708s2.155s0.447s141.22x
💻 LocalExpress4.399s (-50.0% 🟢)5.181s (-44.1% 🟢)0.781s63.14x
💻 LocalNitro5.309s (-41.9% 🟢)5.848s (-41.7% 🟢)0.539s63.79x
💻 LocalNext.js (Turbopack)5.551s6.017s0.466s53.97x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.609s (-28.2% 🟢)6.579s (-19.6% 🟢)1.971s51.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.543s (-33.8% 🟢)1.007s (~)0.464s601.00x
💻 LocalExpress0.572s (-41.9% 🟢)1.004s (-6.7% 🟢)0.433s601.05x
🐘 PostgresExpress0.582s (-30.7% 🟢)1.041s (+1.8%)0.459s581.07x
💻 LocalNitro0.589s (-39.9% 🟢)1.005s (-8.1% 🟢)0.416s601.09x
🐘 PostgresNext.js (Turbopack)0.811s1.007s0.195s601.49x
💻 LocalNext.js (Turbopack)0.858s1.021s0.164s591.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.578s (-70.7% 🟢)7.244s (-66.0% 🟢)1.666s91.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.305s (-32.3% 🟢)2.029s (-3.4%)0.724s451.00x
🐘 PostgresExpress1.377s (-30.4% 🟢)2.029s (-10.1% 🟢)0.653s451.05x
💻 LocalExpress1.450s (-51.9% 🟢)2.006s (-44.1% 🟢)0.555s451.11x
💻 LocalNitro1.491s (-50.9% 🟢)2.006s (-46.6% 🟢)0.514s451.14x
🐘 PostgresNext.js (Turbopack)1.940s2.124s0.184s431.49x
💻 LocalNext.js (Turbopack)2.089s2.975s0.886s311.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.101s (-56.3% 🟢)17.599s (-52.2% 🟢)2.498s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.592s (-36.8% 🟢)3.058s (-33.6% 🟢)0.466s401.00x
🐘 PostgresExpress2.707s (-32.2% 🟢)3.085s (-29.4% 🟢)0.379s391.04x
💻 LocalExpress3.126s (-66.1% 🟢)3.735s (-62.7% 🟢)0.610s331.21x
💻 LocalNitro3.280s (-64.7% 🟢)3.944s (-60.6% 🟢)0.664s311.27x
🐘 PostgresNext.js (Turbopack)3.742s4.009s0.267s301.44x
💻 LocalNext.js (Turbopack)4.226s5.010s0.784s241.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express28.945s (-77.7% 🟢)31.551s (-76.1% 🟢)2.606s41.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.217s (-23.4% 🟢)1.006s (~)0.789s601.00x
🐘 PostgresExpress0.230s (-18.5% 🟢)1.006s (~)0.776s601.06x
🐘 PostgresNext.js (Turbopack)0.258s1.006s0.748s601.19x
💻 LocalExpress0.441s (-21.2% 🟢)1.021s (+1.7%)0.580s592.03x
💻 LocalNitro0.444s (-26.6% 🟢)1.004s (-1.7%)0.561s602.04x
💻 LocalNext.js (Turbopack)0.627s1.056s0.429s582.89x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.245s (+14.9% 🔺)4.082s (+12.2% 🔺)1.836s151.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.330s (-33.5% 🟢)1.006s (~)0.676s901.00x
🐘 PostgresExpress0.365s (-28.4% 🟢)1.007s (~)0.642s901.11x
🐘 PostgresNext.js (Turbopack)0.468s1.006s0.538s901.42x
💻 LocalExpress1.990s (-20.8% 🟢)2.494s (-17.1% 🟢)0.504s376.03x
💻 LocalNitro2.196s (-13.5% 🟢)2.766s (-8.1% 🟢)0.571s336.65x
💻 LocalNext.js (Turbopack)2.254s2.884s0.630s326.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.494s (+80.4% 🔺)7.214s (+50.1% 🔺)1.720s131.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.654s (-17.2% 🟢)1.006s (~)0.351s1201.00x
🐘 PostgresExpress0.701s (-14.4% 🟢)1.006s (-1.1%)0.305s1201.07x
🐘 PostgresNext.js (Turbopack)0.943s1.351s0.408s901.44x
💻 LocalExpress8.549s (-23.6% 🟢)9.097s (-23.8% 🟢)0.548s1413.07x
💻 LocalNitro9.450s (-15.6% 🟢)10.196s (-12.6% 🟢)0.746s1214.44x
💻 LocalNext.js (Turbopack)10.151s11.028s0.877s1115.52x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express12.410s (+67.2% 🔺)14.751s (+59.6% 🔺)2.340s91.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.149s (+477.2% 🔺)2.004s (+99.5% 🔺)0.010s (-16.5% 🟢)2.017s (+98.1% 🔺)0.868s101.00x
🐘 PostgresExpress1.161s (+465.8% 🔺)2.000s (+100.3% 🔺)0.001s (-25.0% 🟢)2.011s (+98.8% 🔺)0.850s101.01x
💻 LocalNitro1.162s (+443.6% 🔺)2.005s (+99.6% 🔺)0.011s (-13.6% 🟢)2.018s (+98.0% 🔺)0.856s101.01x
🐘 PostgresNitro1.162s (+466.8% 🔺)2.002s (+100.3% 🔺)0.001s (-26.7% 🟢)2.011s (+98.8% 🔺)0.849s101.01x
💻 LocalNext.js (Turbopack)1.203s2.004s0.010s2.018s0.815s101.05x
🐘 PostgresNext.js (Turbopack)1.227s2.001s0.001s2.011s0.784s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.143s (-14.4% 🟢)3.297s (-19.4% 🟢)1.808s (+88.1% 🔺)5.581s (~)3.437s101.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.562s (+150.3% 🔺)2.002s (+98.9% 🔺)0.004s (-11.3% 🟢)2.025s (+98.1% 🔺)0.463s301.00x
💻 LocalNitro1.565s (+86.6% 🔺)2.009s (+98.5% 🔺)0.010s (+6.0% 🔺)2.021s (+81.1% 🔺)0.456s301.00x
🐘 PostgresExpress1.602s (+154.3% 🔺)2.006s (+99.3% 🔺)0.004s (+0.9%)2.028s (+98.2% 🔺)0.425s301.03x
💻 LocalNext.js (Turbopack)1.708s2.008s0.010s2.021s0.312s301.09x
🐘 PostgresNext.js (Turbopack)1.743s2.009s0.004s2.024s0.281s301.12x
💻 LocalExpress1.756s (+131.9% 🔺)2.011s (+95.4% 🔺)0.009s (-1.7%)2.201s (+111.6% 🔺)0.445s281.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.788s (-11.0% 🟢)7.424s (-7.3% 🟢)0.461s (+12.7% 🔺)8.392s (-5.0% 🟢)2.604s81.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.691s (-28.7% 🟢)1.030s (-17.5% 🟢)0.000s (+24.1% 🔺)1.042s (-17.2% 🟢)0.351s581.00x
🐘 PostgresExpress0.725s (-24.5% 🟢)1.048s (-18.0% 🟢)0.000s (+21.1% 🔺)1.060s (-18.8% 🟢)0.335s571.05x
🐘 PostgresNext.js (Turbopack)0.802s1.072s0.000s1.079s0.277s561.16x
💻 LocalExpress1.330s (+8.6% 🔺)2.012s (~)0.000s (+40.0% 🔺)2.014s (~)0.684s301.92x
💻 LocalNitro1.428s (+16.8% 🔺)2.013s (~)0.000s (+33.3% 🔺)2.015s (~)0.587s302.07x
💻 LocalNext.js (Turbopack)1.482s2.013s0.000s2.016s0.534s302.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.411s (-8.8% 🟢)4.624s (-9.4% 🟢)0.000s (-100.0% 🟢)5.192s (-6.1% 🟢)1.781s121.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.460s (-18.5% 🟢)2.100s (-1.9%)0.000s (+93.1% 🔺)2.126s (-2.2%)0.666s291.00x
🐘 PostgresNext.js (Turbopack)1.551s2.144s0.000s2.152s0.601s281.06x
🐘 PostgresExpress1.625s (-8.3% 🟢)2.220s (+1.9%)0.000s (+Infinity% 🔺)2.233s (+1.5%)0.608s271.11x
💻 LocalNext.js (Turbopack)2.868s3.412s0.001s3.421s0.553s181.96x
💻 LocalExpress2.971s (-14.3% 🟢)3.607s (-10.6% 🟢)0.001s (-11.8% 🟢)3.615s (-10.4% 🟢)0.644s172.03x
💻 LocalNitro3.163s (-6.6% 🟢)3.902s (-3.2%)0.001s (+64.1% 🔺)3.905s (-3.2%)0.743s162.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.232s (+14.0% 🔺)6.901s (+14.6% 🔺)0.007s (+Infinity% 🔺)7.496s (+16.1% 🔺)2.264s91.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress14/21
🐘 PostgresNitro19/21
▲ VercelExpress21/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres13/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres18/21
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
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production96402151179
✅ 💻 Local Development161502191834
✅ 📦 Local Production161502191834
✅ 🐘 Local Postgres161502191834
✅ 📋 Other7410176917
Total6550010487598

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro105026
✅ example105026
✅ express105026
✅ fastify105026
✅ hono105026
✅ nitro105026
✅ nuxt105026
✅ sveltekit12407
✅ vite105026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable106025
✅ e2e-local-dev-tanstack-start-106025
✅ e2e-local-postgres-nest-stable106025
✅ e2e-local-postgres-tanstack-start-106025
✅ e2e-local-prod-nest-stable106025
✅ e2e-local-prod-tanstack-start-106025
✅ e2e-vercel-prod-tanstack-start105026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: cancelled
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: failure

Check the workflow run for details.

@pranaygp
pranaygp marked this pull request as ready for review May 29, 2026 22:02
@pranaygp
pranaygp requested a review from ijjk as a code ownerMay 29, 2026 22:02
CopilotAI review requested due to automatic review settings May 29, 2026 22:02
@pranaygp
pranaygp requested a review from a team as a code ownerMay 29, 2026 22:02

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the canonical workflow execution and webhook endpoints from /.well-known/workflow/v1/ to /.well-known/workflow/v2/. The combined flow handler at v2 now serves both workflow and step queue messages (the separate v1/step route is no longer emitted). The webhook endpoint is also moved to v2, while /.well-known/workflow/v1/webhook/:token remains supported as a compatibility alias across all integrations. The v1 directory continues to host manifest.json and webhook compatibility resources, and builders proactively clean up stale v1 execution artifacts from prior builds.

Changes:

  • Update all queue clients, builders, framework integrations, and tests to use /.well-known/workflow/v2/flow and /.well-known/workflow/v2/webhook/:token.
  • Preserve /.well-known/workflow/v1/webhook/:token as a compatibility route in Next, Nitro, Nest, Sveltekit, Astro, BOA, and standalone builds.
  • Clean stale v1 flow/step/config.json/manifest.json artifacts on each build/boot to avoid cached v1 outputs leaking into v5 deployments.

Reviewed changes

Copilot reviewed 46 out of 46 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
.changeset/workflow-v2-routes.mdNew changeset noting the v2 route migration for all affected packages.
.github/workflows/tests.yml, .github/workflows/e2e-community-world.ymlUpdate CI dev-test config paths to v2 generated routes.
AGENTS.mdDocument that execution routes are now v2; v1 retains manifest/webhook compatibility.
docs/content/docs/v5/**Documentation updated for v2 paths and v1 webhook compatibility (getting-started, how-it-works, hooks, webhooks, api-reference, changelog).
packages/astro/src/builder.tsGenerate to v2 dir, remove stale v1 flow.js/step.js, route v1 webhook to v2 handler, keep manifest in v1.
packages/builders/src/base-builder.tsComment updated to v2 webhook path.
packages/builders/src/standalone.tsRemove stale v1 flow.mjs/step.mjs; build both v2 and v1 webhook bundles; manifest stays in v1.
packages/builders/src/vercel-build-output-api.tsClean v1 flow.func/step.func/webhook; emit v2 flow/webhook funcs; add Build Output route rewrite from v1 webhook to v2.
packages/cli/src/commands/health.ts, packages/cli/src/lib/config/workflow-config.tsUse v2 paths; rename steps bundle to __step_registrations.mjs.
packages/core/e2e/{e2e,local-build}.test.tsTests target v2 endpoints; one webhook test retained on v1 to validate compatibility.
packages/core/src/{create-hook,workflow/create-hook,runtime/world-init}.tsWebhook URL/doc strings updated to v2.
packages/nest/src/workflow.controller.ts, packages/nest/README.mdController exposes v2 flow + v2 webhook + v1 legacy webhook (delegating to v2).
packages/next/src/builder-deferred.ts, builder-eager.ts, builder.ts, index.test.tsGenerate to v2; write/copy webhook stubs for both v1 and v2; cleanup stale v1 routes/config; update deferred entries; tighten watch-mode invariant.
packages/nitro/src/{index,vite}.ts, index.test.tsRegister both v1 and v2 webhook virtual handlers; v2 flow handler; functionRules updated; middleware matcher widened.
packages/sveltekit/src/{builder,index}.tsGenerate to v2; build both v1 and v2 webhook routes; cleanup stale v1 flow/step; manifest stays in v1; .vc-config path updated to v2.
packages/utils/src/get-port.ts, get-port.test.tsProbe endpoint updated to v2.
packages/world-local/src/queue.ts, packages/world-postgres/src/queue.ts, queue.test.ts, README.md, HOW_IT_WORKS.mdRoute all step and workflow queue messages to the v2 flow endpoint.
packages/world-testing/{package.json,src/server.mts,scripts/generate-well-known-dts.mjs}Import v2 flow handler; generate v2 flow/webhook + v1 webhook dts stubs; copy both v1 and v2 mjs into dist.
scripts/create-test-matrix.mjsDEV test config paths updated to v2.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Request Changes — branch is too stale; merging as-is reverts at least three landed PRs

The architectural direction is sound: moving the combined execution endpoint to /v2/flow while keeping the webhook + manifest on /v1 is the right call for v5 (the v4-stable URL contract stays intact, the v5-only behavioral change gets its own path). The PR description's reasoning matches the v5 spec. Approving that direction.

However, the branch is dated May 26 (base b0d0561af) and was last touched June 5 without a rebase. Several PRs landed on main after the base, and the codex diff against current main shows those changes being deleted. Until the branch is rebased and the regressions are vetted, this is unsafe to merge.

Regressions caused by stale base

1. V8 regex stack overflow fix (#930886fe3, Peter, May 27) — reverted

packages/next/src/builder-deferred.tsextractBundleSourceFiles would crash with RangeError: Maximum call stack size exceeded at RegExpStringIterator.next on bundles with multi-MB inline base64 sourcemaps. Peter replaced the matchAll(/...[A-Za-z0-9+/=]+.../g) with a literal-prefix scan + manual base64 alphabet loop. This PR's diff puts the broken regex back:

- // Extract inline base64 sourcemaps via string scanning. A previous- // implementation used `bundleContents.matchAll(/...[A-Za-z0-9+/=]+.../g)`- // which overflows V8's regex stack ...- // [60-line scan loop]+ const sourceMapMatches = bundleContents.matchAll(+ /\/\/# sourceMappingURL=data:application\/json[^,]*;base64,([A-Za-z0-9+/=]+)/g+ );

This was added specifically because inline sourcemaps (#1799) became universal across workspace packages and the bundles got large enough to trip V8's irregexp recursion. The crash was tied to a separate branch where it surfaced first, but the underlying hazard is general — every Next builder run is now vulnerable to it.

2. Nitro dashboard handler (#2110, June 2) — reverted

packages/nitro/src/index.ts loses ~75 lines: the entire addDashboardHandler() function, the addDashboardHandler(nitro) call in dev mode, and the createRequire/pathToFileURL imports it needs. /_workflow dev UI dashboard goes away.

Verified: git show origin/main:packages/nitro/src/index.ts | grep -c addDashboardHandler = 2; git show pr-2154:packages/nitro/src/index.ts | grep -c addDashboardHandler = 0.

3. Lazy step route imports (#2263, JJ, June 5) — reverted

packages/next/src/builder-deferred.ts loses 263 lines that JJ added: createDeferredFlowRoute, createDeferredStepSideEffectImports, getDeferredRouteImportSpecifier, resolveDeferredRouteImportFilePath, resolvePackageSourceDistFilePathForRouteImport, findPackageRootForRouteImportSource, createDeferredStepManifest, resolveBuiltInStepFilesForManifest, mergeWorkflowManifest. The replacement is a single createCombinedBundle() call.

It's plausible that createCombinedBundle actually subsumes what those helpers were doing (the base builder already implements the combined-bundle pattern used by sveltekit/nitro/nest/eager-next), and JJ's PR may have been an interim approach. But the codex diff doesn't make that case — it just deletes the helpers. The accompanying packages/next/src/builder-deferred.test.ts (137 lines added by #2263) isn't touched, so any tests that referenced the deleted helpers will break. And whatever bug #2263 was fixing ("lazy step route imports") may resurface depending on how createCombinedBundle differs.

4. Lockfile / version churn

packages/world-testing/package.json reverts:

  • @hono/node-server 1.19.13 → 1.19.9 (downgrade)
  • hono 4.12.21 → 4.12.3 (downgrade)
  • own version 5.0.0-beta.12 → 5.0.0-beta.7
  • 5 CHANGELOG.md entries removed (beta.8 through beta.12)

These are all stale-branch artifacts from being forked before recent version bumps and dependency updates landed. They'll resolve on rebase, but they're a useful signal for how far behind this branch is.

Status check evidence

The PR's commit e20540c6e ("Keep webhook route on v1", June 5) was never run through CI — only Vercel Agent Review, DCO, Socket, and preview deploys ran on it. The earlier commit d4ef02406 (May 29) ran the full suite with E2E Required Check: failure and Unit Tests (windows-latest): failure. Even if those are flaky, no CI evidence currently exists that the branch in its current state builds, lints, and tests on Linux. mergeStateStatus: DIRTY / mergeable: CONFLICTING confirms there's at least one merge conflict (docs/content/docs/v5/changelog/eager-processing.mdx).

Architectural concerns (separate from staleness)

Workflow-server coordination

The Vercel workflow-server (out of this repo) is what calls into the user app at /v1/flow / /v1/step today. If this PR ships and the user app stops exposing /v1/flow and /v1/step, dispatches from workflow-server will 404 unless workflow-server already knows to:

  1. Dispatch to /v2/flow for new-spec deployments, AND
  2. Fall back to /v1/flow + /v1/step for older deployments that haven't redeployed with the v2 SDK.

The PR doesn't say which workflow-server version is required, and there's no smoke test exercising a mixed-version scenario. Please confirm:

  • Workflow-server already dispatches to /v2/flow for v5-spec deployments
  • Either workflow-server retains /v1/flow + /v1/step fallback during rollout, OR all v5 deployments get re-built before this lands
  • The Vercel beta-channel rollout sequencing is documented somewhere

If the dispatch logic is already version-aware (e.g. driven by manifest contents the workflow-server reads), saying so in the PR description would be enough.

Patch bump?

12 packages all get patch bumps for what is effectively a public-route relocation. On the beta channel patch doesn't matter (changesets always rolls beta.N), but if this ever has to be backported (the PR description says it won't be), patch would be the wrong semver. Since the PR explicitly says no backport, this is fine, but worth a sentence: "Patch is acceptable on the v5/beta channel; this route change is a v5 spec implementation detail, not a public API change."

Things to verify after rebase

Once rebased onto current main:

  1. Re-confirm createCombinedBundle produces equivalent output to createDeferredFlowRoute for the deferred-builder path. The key thing JJ's PR #2263 was solving (per the title — "Fix Next lazy step route imports") needs to either be preserved by createCombinedBundle or explicitly handled separately.
  2. Re-verify extractBundleSourceFiles keeps the string-scan implementation (not the regex).
  3. Re-verify addDashboardHandler stays in packages/nitro/src/index.ts.
  4. Run pnpm turbo run build --filter='!./workbench/*' from a clean state.
  5. Re-run E2E (especially nextjs-webpack dev, which was the canary for the V8 crash).

What I verified locally

  • Checked out PR head onto current main merge base; confirmed the three regressions above via git show against origin/main
  • Confirmed the changeset is appropriately scoped to packages with real changes (modulo the docs file which is in changeset ignore)
  • The route-prefix migration itself (paths in builders, tests, docs, CLI, get-port probe) is consistent across the 38 files — /v2/flow everywhere, /v1/webhook everywhere, /v1/manifest.json everywhere

Bottom line

The direction is right and most of the route-rename mechanics look correct. The blocker is the staleness — this PR was generated by a codex agent from a May 26 branch and the agent didn't notice that meaningful code on main got deleted in the process. Rebase, re-run CI, and re-verify the three reverts are restored.

Holding the approve until the rebase shows green and confirms the three referenced PRs survive.

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.

3 participants

@pranaygp@TooTallNate
, '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('^' + ".*" + ' [codex] Migrate workflow execution routes to v2 by pranaygp · Pull Request #2154 · vercel/workflow · GitHub
Skip to content

[codex] Migrate workflow execution routes to v2 - #2154

Open
pranaygp wants to merge 2 commits into
mainfrom
pranaygp/codex/workflow-v2-routes
Open

[codex] Migrate workflow execution routes to v2#2154
pranaygp wants to merge 2 commits into
mainfrom
pranaygp/codex/workflow-v2-routes

Conversation

@pranaygp

@pranaygppranaygp commented May 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move the canonical combined execution endpoint from /.well-known/workflow/v1/flow to /.well-known/workflow/v2/flow and stop emitting the separate v1 step route.
  • Keep the webhook endpoint at /.well-known/workflow/v1/webhook and the public manifest under /.well-known/workflow/v1 across supported integrations and build targets.
  • Remove stale v1 flow/step generated artifacts at build time and update active v5 documentation, route tests, matrices, and changesets.

Why

Workflow v5 uses the combined flow handler, so the execution route has a materially different contract from the v4 split flow/step model and moves to v2. The webhook route did not materially change, so it remains on v1 rather than introducing an unnecessary webhook URL migration.

Backporting

Do not backport this PR to stable: this changes the v5/main execution route contract and does not apply to the v4 stable surface.

Validation

  • pnpm build
  • Focused Biome formatting and error-level lint checks for changed TypeScript/JavaScript files
  • pnpm vitest run packages/next/src/index.test.ts packages/nitro/src/index.test.ts packages/world-postgres/src/queue.test.ts packages/world-local/src/queue.test.ts
  • pnpm vitest run packages/utils/src/get-port.test.ts -t \"identify workflow server|respect custom timeout|handle concurrent getWorkflowPort|return single port without probing\"
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/example
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/nextjs-turbopack
  • pnpm build in workbench/sveltekit and workbench/astro
  • Verified generated outputs contain v2/flow, v1/webhook, and no v2/webhook route

@vercel

vercelBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e20540c

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

This PR includes changesets to release 21 packages
NameType
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/corePatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/sveltekitPatch
@workflow/utilsPatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-testingPatch
workflowPatch
@workflow/rollupPatch
@workflow/vitePatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/nuxtPatch
@workflow/errorsPatch
@workflow/world-vercelPatch

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

@github-actions

github-actionsBot commented May 29, 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
💻 Local🥇 Nitro0.038s (-11.6% 🟢)1.006s (~)0.968s101.00x
💻 LocalExpress0.043s (-3.2%)1.005s (~)0.962s101.13x
🐘 PostgresNitro0.059s (-38.0% 🟢)1.012s (-3.0%)0.953s101.55x
💻 LocalNext.js (Turbopack)0.059s1.006s0.946s101.55x
🐘 PostgresExpress0.068s (+17.9% 🔺)1.012s (~)0.943s101.80x
🐘 PostgresNext.js (Turbopack)0.069s1.012s0.943s101.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.337s (+43.0% 🔺)2.430s (+13.8% 🔺)2.093s101.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-3.2%)2.006s (~)0.917s101.00x
🐘 PostgresNitro1.101s (-3.4%)2.009s (~)0.908s101.01x
💻 LocalNitro1.110s (-1.9%)2.006s (~)0.896s101.02x
🐘 PostgresExpress1.112s (-3.0%)2.010s (~)0.898s101.02x
💻 LocalNext.js (Turbopack)1.127s2.007s0.880s101.04x
🐘 PostgresNext.js (Turbopack)1.137s2.008s0.871s101.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.907s (+1.7%)4.032s (+5.9% 🔺)2.125s101.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.482s (-4.2%)11.022s (~)0.540s31.00x
💻 LocalExpress10.511s (-3.8%)11.021s (~)0.510s31.00x
🐘 PostgresNitro10.520s (-3.2%)11.014s (~)0.495s31.00x
🐘 PostgresExpress10.577s (-3.5%)11.015s (~)0.438s31.01x
💻 LocalNext.js (Turbopack)10.771s11.021s0.250s31.03x
🐘 PostgresNext.js (Turbopack)10.852s11.021s0.169s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.111s (-16.9% 🟢)16.261s (-18.8% 🟢)2.149s21.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.728s (-8.3% 🟢)14.026s (-6.7% 🟢)0.298s51.00x
🐘 PostgresNitro13.748s (-5.8% 🟢)14.021s (-6.7% 🟢)0.272s51.00x
🐘 PostgresExpress13.773s (-5.6% 🟢)14.020s (-6.7% 🟢)0.247s51.00x
💻 LocalNitro13.776s (-8.5% 🟢)14.028s (-12.5% 🟢)0.251s51.00x
💻 LocalNext.js (Turbopack)14.335s15.029s0.694s41.04x
🐘 PostgresNext.js (Turbopack)14.552s15.019s0.467s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express25.710s (-48.9% 🟢)27.665s (-47.4% 🟢)1.955s31.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.325s (-11.8% 🟢)13.016s (-9.0% 🟢)0.691s71.00x
💻 LocalNitro12.387s (-26.2% 🟢)13.025s (-23.5% 🟢)0.638s71.01x
💻 LocalExpress12.409s (-25.3% 🟢)13.024s (-23.5% 🟢)0.615s71.01x
🐘 PostgresExpress12.470s (-11.0% 🟢)13.019s (-10.8% 🟢)0.549s71.01x
💻 LocalNext.js (Turbopack)13.589s14.027s0.438s71.10x
🐘 PostgresNext.js (Turbopack)13.730s14.021s0.291s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express32.317s (-73.3% 🟢)34.350s (-72.2% 🟢)2.033s31.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.157s (-22.3% 🟢)2.006s (~)0.848s151.00x
🐘 PostgresNitro1.175s (-7.8% 🟢)2.008s (~)0.833s151.01x
🐘 PostgresExpress1.175s (-6.7% 🟢)2.007s (~)0.831s151.02x
🐘 PostgresNext.js (Turbopack)1.253s2.075s0.822s151.08x
💻 LocalNitro1.256s (-23.0% 🟢)2.005s (-3.3%)0.749s151.08x
💻 LocalNext.js (Turbopack)1.308s2.006s0.698s151.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.806s (-1.9%)4.468s (-3.4%)1.662s71.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.247s (-47.0% 🟢)2.009s (-33.2% 🟢)0.763s151.00x
🐘 PostgresExpress1.279s (-45.8% 🟢)2.007s (-33.3% 🟢)0.728s151.03x
🐘 PostgresNext.js (Turbopack)1.463s2.074s0.611s151.17x
💻 LocalExpress1.611s (-45.4% 🟢)2.006s (-41.9% 🟢)0.394s151.29x
💻 LocalNitro1.716s (-45.4% 🟢)2.006s (-48.4% 🟢)0.290s151.38x
💻 LocalNext.js (Turbopack)1.781s2.007s0.226s151.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.608s (~)5.581s (+9.2% 🔺)1.972s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.365s (-60.8% 🟢)2.008s (-49.9% 🟢)0.643s151.00x
🐘 PostgresExpress1.400s (-59.8% 🟢)2.006s (-50.0% 🟢)0.607s151.03x
🐘 PostgresNext.js (Turbopack)1.675s2.076s0.401s151.23x
💻 LocalExpress3.866s (-53.6% 🟢)4.296s (-52.4% 🟢)0.430s72.83x
💻 LocalNitro4.404s (-47.3% 🟢)5.012s (-44.4% 🟢)0.608s63.23x
💻 LocalNext.js (Turbopack)4.956s5.513s0.556s63.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.234s (+23.4% 🔺)6.789s (+10.8% 🔺)1.555s51.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.188s (-5.5% 🟢)2.009s (~)0.821s151.00x
🐘 PostgresNitro1.194s (-5.0% 🟢)2.009s (~)0.815s151.01x
🐘 PostgresNext.js (Turbopack)1.235s2.007s0.772s151.04x
💻 LocalNext.js (Turbopack)1.353s2.006s0.653s151.14x
💻 LocalNitro1.514s (-18.8% 🟢)2.006s (-14.3% 🟢)0.491s151.27x
💻 LocalExpress1.528s (-19.3% 🟢)2.006s (-15.1% 🟢)0.477s151.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.799s (+8.4% 🔺)4.196s (-3.5%)1.397s81.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.239s (-47.0% 🟢)2.009s (-33.3% 🟢)0.769s151.00x
🐘 PostgresExpress1.275s (-45.5% 🟢)2.008s (-33.3% 🟢)0.733s151.03x
🐘 PostgresNext.js (Turbopack)1.422s2.076s0.654s151.15x
💻 LocalNext.js (Turbopack)2.009s2.591s0.582s121.62x
💻 LocalNitro2.016s (-34.2% 🟢)2.592s (-33.3% 🟢)0.576s121.63x
💻 LocalExpress2.104s (-32.8% 🟢)2.507s (-33.4% 🟢)0.402s121.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.787s (+18.6% 🔺)5.467s (+14.1% 🔺)1.680s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.400s (-59.8% 🟢)2.008s (-49.9% 🟢)0.608s151.00x
🐘 PostgresExpress1.430s (-59.1% 🟢)2.010s (-49.9% 🟢)0.579s151.02x
🐘 PostgresNext.js (Turbopack)1.708s2.155s0.447s141.22x
💻 LocalExpress4.399s (-50.0% 🟢)5.181s (-44.1% 🟢)0.781s63.14x
💻 LocalNitro5.309s (-41.9% 🟢)5.848s (-41.7% 🟢)0.539s63.79x
💻 LocalNext.js (Turbopack)5.551s6.017s0.466s53.97x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.609s (-28.2% 🟢)6.579s (-19.6% 🟢)1.971s51.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.543s (-33.8% 🟢)1.007s (~)0.464s601.00x
💻 LocalExpress0.572s (-41.9% 🟢)1.004s (-6.7% 🟢)0.433s601.05x
🐘 PostgresExpress0.582s (-30.7% 🟢)1.041s (+1.8%)0.459s581.07x
💻 LocalNitro0.589s (-39.9% 🟢)1.005s (-8.1% 🟢)0.416s601.09x
🐘 PostgresNext.js (Turbopack)0.811s1.007s0.195s601.49x
💻 LocalNext.js (Turbopack)0.858s1.021s0.164s591.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.578s (-70.7% 🟢)7.244s (-66.0% 🟢)1.666s91.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.305s (-32.3% 🟢)2.029s (-3.4%)0.724s451.00x
🐘 PostgresExpress1.377s (-30.4% 🟢)2.029s (-10.1% 🟢)0.653s451.05x
💻 LocalExpress1.450s (-51.9% 🟢)2.006s (-44.1% 🟢)0.555s451.11x
💻 LocalNitro1.491s (-50.9% 🟢)2.006s (-46.6% 🟢)0.514s451.14x
🐘 PostgresNext.js (Turbopack)1.940s2.124s0.184s431.49x
💻 LocalNext.js (Turbopack)2.089s2.975s0.886s311.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.101s (-56.3% 🟢)17.599s (-52.2% 🟢)2.498s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.592s (-36.8% 🟢)3.058s (-33.6% 🟢)0.466s401.00x
🐘 PostgresExpress2.707s (-32.2% 🟢)3.085s (-29.4% 🟢)0.379s391.04x
💻 LocalExpress3.126s (-66.1% 🟢)3.735s (-62.7% 🟢)0.610s331.21x
💻 LocalNitro3.280s (-64.7% 🟢)3.944s (-60.6% 🟢)0.664s311.27x
🐘 PostgresNext.js (Turbopack)3.742s4.009s0.267s301.44x
💻 LocalNext.js (Turbopack)4.226s5.010s0.784s241.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express28.945s (-77.7% 🟢)31.551s (-76.1% 🟢)2.606s41.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.217s (-23.4% 🟢)1.006s (~)0.789s601.00x
🐘 PostgresExpress0.230s (-18.5% 🟢)1.006s (~)0.776s601.06x
🐘 PostgresNext.js (Turbopack)0.258s1.006s0.748s601.19x
💻 LocalExpress0.441s (-21.2% 🟢)1.021s (+1.7%)0.580s592.03x
💻 LocalNitro0.444s (-26.6% 🟢)1.004s (-1.7%)0.561s602.04x
💻 LocalNext.js (Turbopack)0.627s1.056s0.429s582.89x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.245s (+14.9% 🔺)4.082s (+12.2% 🔺)1.836s151.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.330s (-33.5% 🟢)1.006s (~)0.676s901.00x
🐘 PostgresExpress0.365s (-28.4% 🟢)1.007s (~)0.642s901.11x
🐘 PostgresNext.js (Turbopack)0.468s1.006s0.538s901.42x
💻 LocalExpress1.990s (-20.8% 🟢)2.494s (-17.1% 🟢)0.504s376.03x
💻 LocalNitro2.196s (-13.5% 🟢)2.766s (-8.1% 🟢)0.571s336.65x
💻 LocalNext.js (Turbopack)2.254s2.884s0.630s326.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.494s (+80.4% 🔺)7.214s (+50.1% 🔺)1.720s131.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.654s (-17.2% 🟢)1.006s (~)0.351s1201.00x
🐘 PostgresExpress0.701s (-14.4% 🟢)1.006s (-1.1%)0.305s1201.07x
🐘 PostgresNext.js (Turbopack)0.943s1.351s0.408s901.44x
💻 LocalExpress8.549s (-23.6% 🟢)9.097s (-23.8% 🟢)0.548s1413.07x
💻 LocalNitro9.450s (-15.6% 🟢)10.196s (-12.6% 🟢)0.746s1214.44x
💻 LocalNext.js (Turbopack)10.151s11.028s0.877s1115.52x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express12.410s (+67.2% 🔺)14.751s (+59.6% 🔺)2.340s91.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.149s (+477.2% 🔺)2.004s (+99.5% 🔺)0.010s (-16.5% 🟢)2.017s (+98.1% 🔺)0.868s101.00x
🐘 PostgresExpress1.161s (+465.8% 🔺)2.000s (+100.3% 🔺)0.001s (-25.0% 🟢)2.011s (+98.8% 🔺)0.850s101.01x
💻 LocalNitro1.162s (+443.6% 🔺)2.005s (+99.6% 🔺)0.011s (-13.6% 🟢)2.018s (+98.0% 🔺)0.856s101.01x
🐘 PostgresNitro1.162s (+466.8% 🔺)2.002s (+100.3% 🔺)0.001s (-26.7% 🟢)2.011s (+98.8% 🔺)0.849s101.01x
💻 LocalNext.js (Turbopack)1.203s2.004s0.010s2.018s0.815s101.05x
🐘 PostgresNext.js (Turbopack)1.227s2.001s0.001s2.011s0.784s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.143s (-14.4% 🟢)3.297s (-19.4% 🟢)1.808s (+88.1% 🔺)5.581s (~)3.437s101.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.562s (+150.3% 🔺)2.002s (+98.9% 🔺)0.004s (-11.3% 🟢)2.025s (+98.1% 🔺)0.463s301.00x
💻 LocalNitro1.565s (+86.6% 🔺)2.009s (+98.5% 🔺)0.010s (+6.0% 🔺)2.021s (+81.1% 🔺)0.456s301.00x
🐘 PostgresExpress1.602s (+154.3% 🔺)2.006s (+99.3% 🔺)0.004s (+0.9%)2.028s (+98.2% 🔺)0.425s301.03x
💻 LocalNext.js (Turbopack)1.708s2.008s0.010s2.021s0.312s301.09x
🐘 PostgresNext.js (Turbopack)1.743s2.009s0.004s2.024s0.281s301.12x
💻 LocalExpress1.756s (+131.9% 🔺)2.011s (+95.4% 🔺)0.009s (-1.7%)2.201s (+111.6% 🔺)0.445s281.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.788s (-11.0% 🟢)7.424s (-7.3% 🟢)0.461s (+12.7% 🔺)8.392s (-5.0% 🟢)2.604s81.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.691s (-28.7% 🟢)1.030s (-17.5% 🟢)0.000s (+24.1% 🔺)1.042s (-17.2% 🟢)0.351s581.00x
🐘 PostgresExpress0.725s (-24.5% 🟢)1.048s (-18.0% 🟢)0.000s (+21.1% 🔺)1.060s (-18.8% 🟢)0.335s571.05x
🐘 PostgresNext.js (Turbopack)0.802s1.072s0.000s1.079s0.277s561.16x
💻 LocalExpress1.330s (+8.6% 🔺)2.012s (~)0.000s (+40.0% 🔺)2.014s (~)0.684s301.92x
💻 LocalNitro1.428s (+16.8% 🔺)2.013s (~)0.000s (+33.3% 🔺)2.015s (~)0.587s302.07x
💻 LocalNext.js (Turbopack)1.482s2.013s0.000s2.016s0.534s302.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.411s (-8.8% 🟢)4.624s (-9.4% 🟢)0.000s (-100.0% 🟢)5.192s (-6.1% 🟢)1.781s121.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.460s (-18.5% 🟢)2.100s (-1.9%)0.000s (+93.1% 🔺)2.126s (-2.2%)0.666s291.00x
🐘 PostgresNext.js (Turbopack)1.551s2.144s0.000s2.152s0.601s281.06x
🐘 PostgresExpress1.625s (-8.3% 🟢)2.220s (+1.9%)0.000s (+Infinity% 🔺)2.233s (+1.5%)0.608s271.11x
💻 LocalNext.js (Turbopack)2.868s3.412s0.001s3.421s0.553s181.96x
💻 LocalExpress2.971s (-14.3% 🟢)3.607s (-10.6% 🟢)0.001s (-11.8% 🟢)3.615s (-10.4% 🟢)0.644s172.03x
💻 LocalNitro3.163s (-6.6% 🟢)3.902s (-3.2%)0.001s (+64.1% 🔺)3.905s (-3.2%)0.743s162.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.232s (+14.0% 🔺)6.901s (+14.6% 🔺)0.007s (+Infinity% 🔺)7.496s (+16.1% 🔺)2.264s91.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress14/21
🐘 PostgresNitro19/21
▲ VercelExpress21/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres13/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres18/21
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
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production96402151179
✅ 💻 Local Development161502191834
✅ 📦 Local Production161502191834
✅ 🐘 Local Postgres161502191834
✅ 📋 Other7410176917
Total6550010487598

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro105026
✅ example105026
✅ express105026
✅ fastify105026
✅ hono105026
✅ nitro105026
✅ nuxt105026
✅ sveltekit12407
✅ vite105026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable106025
✅ e2e-local-dev-tanstack-start-106025
✅ e2e-local-postgres-nest-stable106025
✅ e2e-local-postgres-tanstack-start-106025
✅ e2e-local-prod-nest-stable106025
✅ e2e-local-prod-tanstack-start-106025
✅ e2e-vercel-prod-tanstack-start105026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: cancelled
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: failure

Check the workflow run for details.

@pranaygp
pranaygp marked this pull request as ready for review May 29, 2026 22:02
@pranaygp
pranaygp requested a review from ijjk as a code ownerMay 29, 2026 22:02
CopilotAI review requested due to automatic review settings May 29, 2026 22:02
@pranaygp
pranaygp requested a review from a team as a code ownerMay 29, 2026 22:02

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the canonical workflow execution and webhook endpoints from /.well-known/workflow/v1/ to /.well-known/workflow/v2/. The combined flow handler at v2 now serves both workflow and step queue messages (the separate v1/step route is no longer emitted). The webhook endpoint is also moved to v2, while /.well-known/workflow/v1/webhook/:token remains supported as a compatibility alias across all integrations. The v1 directory continues to host manifest.json and webhook compatibility resources, and builders proactively clean up stale v1 execution artifacts from prior builds.

Changes:

  • Update all queue clients, builders, framework integrations, and tests to use /.well-known/workflow/v2/flow and /.well-known/workflow/v2/webhook/:token.
  • Preserve /.well-known/workflow/v1/webhook/:token as a compatibility route in Next, Nitro, Nest, Sveltekit, Astro, BOA, and standalone builds.
  • Clean stale v1 flow/step/config.json/manifest.json artifacts on each build/boot to avoid cached v1 outputs leaking into v5 deployments.

Reviewed changes

Copilot reviewed 46 out of 46 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
.changeset/workflow-v2-routes.mdNew changeset noting the v2 route migration for all affected packages.
.github/workflows/tests.yml, .github/workflows/e2e-community-world.ymlUpdate CI dev-test config paths to v2 generated routes.
AGENTS.mdDocument that execution routes are now v2; v1 retains manifest/webhook compatibility.
docs/content/docs/v5/**Documentation updated for v2 paths and v1 webhook compatibility (getting-started, how-it-works, hooks, webhooks, api-reference, changelog).
packages/astro/src/builder.tsGenerate to v2 dir, remove stale v1 flow.js/step.js, route v1 webhook to v2 handler, keep manifest in v1.
packages/builders/src/base-builder.tsComment updated to v2 webhook path.
packages/builders/src/standalone.tsRemove stale v1 flow.mjs/step.mjs; build both v2 and v1 webhook bundles; manifest stays in v1.
packages/builders/src/vercel-build-output-api.tsClean v1 flow.func/step.func/webhook; emit v2 flow/webhook funcs; add Build Output route rewrite from v1 webhook to v2.
packages/cli/src/commands/health.ts, packages/cli/src/lib/config/workflow-config.tsUse v2 paths; rename steps bundle to __step_registrations.mjs.
packages/core/e2e/{e2e,local-build}.test.tsTests target v2 endpoints; one webhook test retained on v1 to validate compatibility.
packages/core/src/{create-hook,workflow/create-hook,runtime/world-init}.tsWebhook URL/doc strings updated to v2.
packages/nest/src/workflow.controller.ts, packages/nest/README.mdController exposes v2 flow + v2 webhook + v1 legacy webhook (delegating to v2).
packages/next/src/builder-deferred.ts, builder-eager.ts, builder.ts, index.test.tsGenerate to v2; write/copy webhook stubs for both v1 and v2; cleanup stale v1 routes/config; update deferred entries; tighten watch-mode invariant.
packages/nitro/src/{index,vite}.ts, index.test.tsRegister both v1 and v2 webhook virtual handlers; v2 flow handler; functionRules updated; middleware matcher widened.
packages/sveltekit/src/{builder,index}.tsGenerate to v2; build both v1 and v2 webhook routes; cleanup stale v1 flow/step; manifest stays in v1; .vc-config path updated to v2.
packages/utils/src/get-port.ts, get-port.test.tsProbe endpoint updated to v2.
packages/world-local/src/queue.ts, packages/world-postgres/src/queue.ts, queue.test.ts, README.md, HOW_IT_WORKS.mdRoute all step and workflow queue messages to the v2 flow endpoint.
packages/world-testing/{package.json,src/server.mts,scripts/generate-well-known-dts.mjs}Import v2 flow handler; generate v2 flow/webhook + v1 webhook dts stubs; copy both v1 and v2 mjs into dist.
scripts/create-test-matrix.mjsDEV test config paths updated to v2.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Request Changes — branch is too stale; merging as-is reverts at least three landed PRs

The architectural direction is sound: moving the combined execution endpoint to /v2/flow while keeping the webhook + manifest on /v1 is the right call for v5 (the v4-stable URL contract stays intact, the v5-only behavioral change gets its own path). The PR description's reasoning matches the v5 spec. Approving that direction.

However, the branch is dated May 26 (base b0d0561af) and was last touched June 5 without a rebase. Several PRs landed on main after the base, and the codex diff against current main shows those changes being deleted. Until the branch is rebased and the regressions are vetted, this is unsafe to merge.

Regressions caused by stale base

1. V8 regex stack overflow fix (#930886fe3, Peter, May 27) — reverted

packages/next/src/builder-deferred.tsextractBundleSourceFiles would crash with RangeError: Maximum call stack size exceeded at RegExpStringIterator.next on bundles with multi-MB inline base64 sourcemaps. Peter replaced the matchAll(/...[A-Za-z0-9+/=]+.../g) with a literal-prefix scan + manual base64 alphabet loop. This PR's diff puts the broken regex back:

- // Extract inline base64 sourcemaps via string scanning. A previous- // implementation used `bundleContents.matchAll(/...[A-Za-z0-9+/=]+.../g)`- // which overflows V8's regex stack ...- // [60-line scan loop]+ const sourceMapMatches = bundleContents.matchAll(+ /\/\/# sourceMappingURL=data:application\/json[^,]*;base64,([A-Za-z0-9+/=]+)/g+ );

This was added specifically because inline sourcemaps (#1799) became universal across workspace packages and the bundles got large enough to trip V8's irregexp recursion. The crash was tied to a separate branch where it surfaced first, but the underlying hazard is general — every Next builder run is now vulnerable to it.

2. Nitro dashboard handler (#2110, June 2) — reverted

packages/nitro/src/index.ts loses ~75 lines: the entire addDashboardHandler() function, the addDashboardHandler(nitro) call in dev mode, and the createRequire/pathToFileURL imports it needs. /_workflow dev UI dashboard goes away.

Verified: git show origin/main:packages/nitro/src/index.ts | grep -c addDashboardHandler = 2; git show pr-2154:packages/nitro/src/index.ts | grep -c addDashboardHandler = 0.

3. Lazy step route imports (#2263, JJ, June 5) — reverted

packages/next/src/builder-deferred.ts loses 263 lines that JJ added: createDeferredFlowRoute, createDeferredStepSideEffectImports, getDeferredRouteImportSpecifier, resolveDeferredRouteImportFilePath, resolvePackageSourceDistFilePathForRouteImport, findPackageRootForRouteImportSource, createDeferredStepManifest, resolveBuiltInStepFilesForManifest, mergeWorkflowManifest. The replacement is a single createCombinedBundle() call.

It's plausible that createCombinedBundle actually subsumes what those helpers were doing (the base builder already implements the combined-bundle pattern used by sveltekit/nitro/nest/eager-next), and JJ's PR may have been an interim approach. But the codex diff doesn't make that case — it just deletes the helpers. The accompanying packages/next/src/builder-deferred.test.ts (137 lines added by #2263) isn't touched, so any tests that referenced the deleted helpers will break. And whatever bug #2263 was fixing ("lazy step route imports") may resurface depending on how createCombinedBundle differs.

4. Lockfile / version churn

packages/world-testing/package.json reverts:

  • @hono/node-server 1.19.13 → 1.19.9 (downgrade)
  • hono 4.12.21 → 4.12.3 (downgrade)
  • own version 5.0.0-beta.12 → 5.0.0-beta.7
  • 5 CHANGELOG.md entries removed (beta.8 through beta.12)

These are all stale-branch artifacts from being forked before recent version bumps and dependency updates landed. They'll resolve on rebase, but they're a useful signal for how far behind this branch is.

Status check evidence

The PR's commit e20540c6e ("Keep webhook route on v1", June 5) was never run through CI — only Vercel Agent Review, DCO, Socket, and preview deploys ran on it. The earlier commit d4ef02406 (May 29) ran the full suite with E2E Required Check: failure and Unit Tests (windows-latest): failure. Even if those are flaky, no CI evidence currently exists that the branch in its current state builds, lints, and tests on Linux. mergeStateStatus: DIRTY / mergeable: CONFLICTING confirms there's at least one merge conflict (docs/content/docs/v5/changelog/eager-processing.mdx).

Architectural concerns (separate from staleness)

Workflow-server coordination

The Vercel workflow-server (out of this repo) is what calls into the user app at /v1/flow / /v1/step today. If this PR ships and the user app stops exposing /v1/flow and /v1/step, dispatches from workflow-server will 404 unless workflow-server already knows to:

  1. Dispatch to /v2/flow for new-spec deployments, AND
  2. Fall back to /v1/flow + /v1/step for older deployments that haven't redeployed with the v2 SDK.

The PR doesn't say which workflow-server version is required, and there's no smoke test exercising a mixed-version scenario. Please confirm:

  • Workflow-server already dispatches to /v2/flow for v5-spec deployments
  • Either workflow-server retains /v1/flow + /v1/step fallback during rollout, OR all v5 deployments get re-built before this lands
  • The Vercel beta-channel rollout sequencing is documented somewhere

If the dispatch logic is already version-aware (e.g. driven by manifest contents the workflow-server reads), saying so in the PR description would be enough.

Patch bump?

12 packages all get patch bumps for what is effectively a public-route relocation. On the beta channel patch doesn't matter (changesets always rolls beta.N), but if this ever has to be backported (the PR description says it won't be), patch would be the wrong semver. Since the PR explicitly says no backport, this is fine, but worth a sentence: "Patch is acceptable on the v5/beta channel; this route change is a v5 spec implementation detail, not a public API change."

Things to verify after rebase

Once rebased onto current main:

  1. Re-confirm createCombinedBundle produces equivalent output to createDeferredFlowRoute for the deferred-builder path. The key thing JJ's PR #2263 was solving (per the title — "Fix Next lazy step route imports") needs to either be preserved by createCombinedBundle or explicitly handled separately.
  2. Re-verify extractBundleSourceFiles keeps the string-scan implementation (not the regex).
  3. Re-verify addDashboardHandler stays in packages/nitro/src/index.ts.
  4. Run pnpm turbo run build --filter='!./workbench/*' from a clean state.
  5. Re-run E2E (especially nextjs-webpack dev, which was the canary for the V8 crash).

What I verified locally

  • Checked out PR head onto current main merge base; confirmed the three regressions above via git show against origin/main
  • Confirmed the changeset is appropriately scoped to packages with real changes (modulo the docs file which is in changeset ignore)
  • The route-prefix migration itself (paths in builders, tests, docs, CLI, get-port probe) is consistent across the 38 files — /v2/flow everywhere, /v1/webhook everywhere, /v1/manifest.json everywhere

Bottom line

The direction is right and most of the route-rename mechanics look correct. The blocker is the staleness — this PR was generated by a codex agent from a May 26 branch and the agent didn't notice that meaningful code on main got deleted in the process. Rebase, re-run CI, and re-verify the three reverts are restored.

Holding the approve until the rebase shows green and confirms the three referenced PRs survive.

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.

3 participants

@pranaygp@TooTallNate
, '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); } })(); })(); [codex] Migrate workflow execution routes to v2 by pranaygp · Pull Request #2154 · vercel/workflow · GitHub
Skip to content

[codex] Migrate workflow execution routes to v2 - #2154

Open
pranaygp wants to merge 2 commits into
mainfrom
pranaygp/codex/workflow-v2-routes
Open

[codex] Migrate workflow execution routes to v2#2154
pranaygp wants to merge 2 commits into
mainfrom
pranaygp/codex/workflow-v2-routes

Conversation

@pranaygp

@pranaygppranaygp commented May 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move the canonical combined execution endpoint from /.well-known/workflow/v1/flow to /.well-known/workflow/v2/flow and stop emitting the separate v1 step route.
  • Keep the webhook endpoint at /.well-known/workflow/v1/webhook and the public manifest under /.well-known/workflow/v1 across supported integrations and build targets.
  • Remove stale v1 flow/step generated artifacts at build time and update active v5 documentation, route tests, matrices, and changesets.

Why

Workflow v5 uses the combined flow handler, so the execution route has a materially different contract from the v4 split flow/step model and moves to v2. The webhook route did not materially change, so it remains on v1 rather than introducing an unnecessary webhook URL migration.

Backporting

Do not backport this PR to stable: this changes the v5/main execution route contract and does not apply to the v4 stable surface.

Validation

  • pnpm build
  • Focused Biome formatting and error-level lint checks for changed TypeScript/JavaScript files
  • pnpm vitest run packages/next/src/index.test.ts packages/nitro/src/index.test.ts packages/world-postgres/src/queue.test.ts packages/world-local/src/queue.test.ts
  • pnpm vitest run packages/utils/src/get-port.test.ts -t \"identify workflow server|respect custom timeout|handle concurrent getWorkflowPort|return single port without probing\"
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/example
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/nextjs-turbopack
  • pnpm build in workbench/sveltekit and workbench/astro
  • Verified generated outputs contain v2/flow, v1/webhook, and no v2/webhook route

@vercel

vercelBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e20540c

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

This PR includes changesets to release 21 packages
NameType
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/corePatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/sveltekitPatch
@workflow/utilsPatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-testingPatch
workflowPatch
@workflow/rollupPatch
@workflow/vitePatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/nuxtPatch
@workflow/errorsPatch
@workflow/world-vercelPatch

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

@github-actions

github-actionsBot commented May 29, 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
💻 Local🥇 Nitro0.038s (-11.6% 🟢)1.006s (~)0.968s101.00x
💻 LocalExpress0.043s (-3.2%)1.005s (~)0.962s101.13x
🐘 PostgresNitro0.059s (-38.0% 🟢)1.012s (-3.0%)0.953s101.55x
💻 LocalNext.js (Turbopack)0.059s1.006s0.946s101.55x
🐘 PostgresExpress0.068s (+17.9% 🔺)1.012s (~)0.943s101.80x
🐘 PostgresNext.js (Turbopack)0.069s1.012s0.943s101.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.337s (+43.0% 🔺)2.430s (+13.8% 🔺)2.093s101.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-3.2%)2.006s (~)0.917s101.00x
🐘 PostgresNitro1.101s (-3.4%)2.009s (~)0.908s101.01x
💻 LocalNitro1.110s (-1.9%)2.006s (~)0.896s101.02x
🐘 PostgresExpress1.112s (-3.0%)2.010s (~)0.898s101.02x
💻 LocalNext.js (Turbopack)1.127s2.007s0.880s101.04x
🐘 PostgresNext.js (Turbopack)1.137s2.008s0.871s101.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.907s (+1.7%)4.032s (+5.9% 🔺)2.125s101.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.482s (-4.2%)11.022s (~)0.540s31.00x
💻 LocalExpress10.511s (-3.8%)11.021s (~)0.510s31.00x
🐘 PostgresNitro10.520s (-3.2%)11.014s (~)0.495s31.00x
🐘 PostgresExpress10.577s (-3.5%)11.015s (~)0.438s31.01x
💻 LocalNext.js (Turbopack)10.771s11.021s0.250s31.03x
🐘 PostgresNext.js (Turbopack)10.852s11.021s0.169s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.111s (-16.9% 🟢)16.261s (-18.8% 🟢)2.149s21.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.728s (-8.3% 🟢)14.026s (-6.7% 🟢)0.298s51.00x
🐘 PostgresNitro13.748s (-5.8% 🟢)14.021s (-6.7% 🟢)0.272s51.00x
🐘 PostgresExpress13.773s (-5.6% 🟢)14.020s (-6.7% 🟢)0.247s51.00x
💻 LocalNitro13.776s (-8.5% 🟢)14.028s (-12.5% 🟢)0.251s51.00x
💻 LocalNext.js (Turbopack)14.335s15.029s0.694s41.04x
🐘 PostgresNext.js (Turbopack)14.552s15.019s0.467s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express25.710s (-48.9% 🟢)27.665s (-47.4% 🟢)1.955s31.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.325s (-11.8% 🟢)13.016s (-9.0% 🟢)0.691s71.00x
💻 LocalNitro12.387s (-26.2% 🟢)13.025s (-23.5% 🟢)0.638s71.01x
💻 LocalExpress12.409s (-25.3% 🟢)13.024s (-23.5% 🟢)0.615s71.01x
🐘 PostgresExpress12.470s (-11.0% 🟢)13.019s (-10.8% 🟢)0.549s71.01x
💻 LocalNext.js (Turbopack)13.589s14.027s0.438s71.10x
🐘 PostgresNext.js (Turbopack)13.730s14.021s0.291s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express32.317s (-73.3% 🟢)34.350s (-72.2% 🟢)2.033s31.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.157s (-22.3% 🟢)2.006s (~)0.848s151.00x
🐘 PostgresNitro1.175s (-7.8% 🟢)2.008s (~)0.833s151.01x
🐘 PostgresExpress1.175s (-6.7% 🟢)2.007s (~)0.831s151.02x
🐘 PostgresNext.js (Turbopack)1.253s2.075s0.822s151.08x
💻 LocalNitro1.256s (-23.0% 🟢)2.005s (-3.3%)0.749s151.08x
💻 LocalNext.js (Turbopack)1.308s2.006s0.698s151.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.806s (-1.9%)4.468s (-3.4%)1.662s71.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.247s (-47.0% 🟢)2.009s (-33.2% 🟢)0.763s151.00x
🐘 PostgresExpress1.279s (-45.8% 🟢)2.007s (-33.3% 🟢)0.728s151.03x
🐘 PostgresNext.js (Turbopack)1.463s2.074s0.611s151.17x
💻 LocalExpress1.611s (-45.4% 🟢)2.006s (-41.9% 🟢)0.394s151.29x
💻 LocalNitro1.716s (-45.4% 🟢)2.006s (-48.4% 🟢)0.290s151.38x
💻 LocalNext.js (Turbopack)1.781s2.007s0.226s151.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.608s (~)5.581s (+9.2% 🔺)1.972s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.365s (-60.8% 🟢)2.008s (-49.9% 🟢)0.643s151.00x
🐘 PostgresExpress1.400s (-59.8% 🟢)2.006s (-50.0% 🟢)0.607s151.03x
🐘 PostgresNext.js (Turbopack)1.675s2.076s0.401s151.23x
💻 LocalExpress3.866s (-53.6% 🟢)4.296s (-52.4% 🟢)0.430s72.83x
💻 LocalNitro4.404s (-47.3% 🟢)5.012s (-44.4% 🟢)0.608s63.23x
💻 LocalNext.js (Turbopack)4.956s5.513s0.556s63.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.234s (+23.4% 🔺)6.789s (+10.8% 🔺)1.555s51.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.188s (-5.5% 🟢)2.009s (~)0.821s151.00x
🐘 PostgresNitro1.194s (-5.0% 🟢)2.009s (~)0.815s151.01x
🐘 PostgresNext.js (Turbopack)1.235s2.007s0.772s151.04x
💻 LocalNext.js (Turbopack)1.353s2.006s0.653s151.14x
💻 LocalNitro1.514s (-18.8% 🟢)2.006s (-14.3% 🟢)0.491s151.27x
💻 LocalExpress1.528s (-19.3% 🟢)2.006s (-15.1% 🟢)0.477s151.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.799s (+8.4% 🔺)4.196s (-3.5%)1.397s81.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.239s (-47.0% 🟢)2.009s (-33.3% 🟢)0.769s151.00x
🐘 PostgresExpress1.275s (-45.5% 🟢)2.008s (-33.3% 🟢)0.733s151.03x
🐘 PostgresNext.js (Turbopack)1.422s2.076s0.654s151.15x
💻 LocalNext.js (Turbopack)2.009s2.591s0.582s121.62x
💻 LocalNitro2.016s (-34.2% 🟢)2.592s (-33.3% 🟢)0.576s121.63x
💻 LocalExpress2.104s (-32.8% 🟢)2.507s (-33.4% 🟢)0.402s121.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.787s (+18.6% 🔺)5.467s (+14.1% 🔺)1.680s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.400s (-59.8% 🟢)2.008s (-49.9% 🟢)0.608s151.00x
🐘 PostgresExpress1.430s (-59.1% 🟢)2.010s (-49.9% 🟢)0.579s151.02x
🐘 PostgresNext.js (Turbopack)1.708s2.155s0.447s141.22x
💻 LocalExpress4.399s (-50.0% 🟢)5.181s (-44.1% 🟢)0.781s63.14x
💻 LocalNitro5.309s (-41.9% 🟢)5.848s (-41.7% 🟢)0.539s63.79x
💻 LocalNext.js (Turbopack)5.551s6.017s0.466s53.97x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.609s (-28.2% 🟢)6.579s (-19.6% 🟢)1.971s51.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.543s (-33.8% 🟢)1.007s (~)0.464s601.00x
💻 LocalExpress0.572s (-41.9% 🟢)1.004s (-6.7% 🟢)0.433s601.05x
🐘 PostgresExpress0.582s (-30.7% 🟢)1.041s (+1.8%)0.459s581.07x
💻 LocalNitro0.589s (-39.9% 🟢)1.005s (-8.1% 🟢)0.416s601.09x
🐘 PostgresNext.js (Turbopack)0.811s1.007s0.195s601.49x
💻 LocalNext.js (Turbopack)0.858s1.021s0.164s591.58x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.578s (-70.7% 🟢)7.244s (-66.0% 🟢)1.666s91.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.305s (-32.3% 🟢)2.029s (-3.4%)0.724s451.00x
🐘 PostgresExpress1.377s (-30.4% 🟢)2.029s (-10.1% 🟢)0.653s451.05x
💻 LocalExpress1.450s (-51.9% 🟢)2.006s (-44.1% 🟢)0.555s451.11x
💻 LocalNitro1.491s (-50.9% 🟢)2.006s (-46.6% 🟢)0.514s451.14x
🐘 PostgresNext.js (Turbopack)1.940s2.124s0.184s431.49x
💻 LocalNext.js (Turbopack)2.089s2.975s0.886s311.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express15.101s (-56.3% 🟢)17.599s (-52.2% 🟢)2.498s61.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.592s (-36.8% 🟢)3.058s (-33.6% 🟢)0.466s401.00x
🐘 PostgresExpress2.707s (-32.2% 🟢)3.085s (-29.4% 🟢)0.379s391.04x
💻 LocalExpress3.126s (-66.1% 🟢)3.735s (-62.7% 🟢)0.610s331.21x
💻 LocalNitro3.280s (-64.7% 🟢)3.944s (-60.6% 🟢)0.664s311.27x
🐘 PostgresNext.js (Turbopack)3.742s4.009s0.267s301.44x
💻 LocalNext.js (Turbopack)4.226s5.010s0.784s241.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express28.945s (-77.7% 🟢)31.551s (-76.1% 🟢)2.606s41.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.217s (-23.4% 🟢)1.006s (~)0.789s601.00x
🐘 PostgresExpress0.230s (-18.5% 🟢)1.006s (~)0.776s601.06x
🐘 PostgresNext.js (Turbopack)0.258s1.006s0.748s601.19x
💻 LocalExpress0.441s (-21.2% 🟢)1.021s (+1.7%)0.580s592.03x
💻 LocalNitro0.444s (-26.6% 🟢)1.004s (-1.7%)0.561s602.04x
💻 LocalNext.js (Turbopack)0.627s1.056s0.429s582.89x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.245s (+14.9% 🔺)4.082s (+12.2% 🔺)1.836s151.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.330s (-33.5% 🟢)1.006s (~)0.676s901.00x
🐘 PostgresExpress0.365s (-28.4% 🟢)1.007s (~)0.642s901.11x
🐘 PostgresNext.js (Turbopack)0.468s1.006s0.538s901.42x
💻 LocalExpress1.990s (-20.8% 🟢)2.494s (-17.1% 🟢)0.504s376.03x
💻 LocalNitro2.196s (-13.5% 🟢)2.766s (-8.1% 🟢)0.571s336.65x
💻 LocalNext.js (Turbopack)2.254s2.884s0.630s326.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.494s (+80.4% 🔺)7.214s (+50.1% 🔺)1.720s131.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.654s (-17.2% 🟢)1.006s (~)0.351s1201.00x
🐘 PostgresExpress0.701s (-14.4% 🟢)1.006s (-1.1%)0.305s1201.07x
🐘 PostgresNext.js (Turbopack)0.943s1.351s0.408s901.44x
💻 LocalExpress8.549s (-23.6% 🟢)9.097s (-23.8% 🟢)0.548s1413.07x
💻 LocalNitro9.450s (-15.6% 🟢)10.196s (-12.6% 🟢)0.746s1214.44x
💻 LocalNext.js (Turbopack)10.151s11.028s0.877s1115.52x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express12.410s (+67.2% 🔺)14.751s (+59.6% 🔺)2.340s91.00x
▲ VercelNext.js (Turbopack)⚠️missing----
▲ VercelNitro⚠️missing----

🔍 Observability: Express

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.149s (+477.2% 🔺)2.004s (+99.5% 🔺)0.010s (-16.5% 🟢)2.017s (+98.1% 🔺)0.868s101.00x
🐘 PostgresExpress1.161s (+465.8% 🔺)2.000s (+100.3% 🔺)0.001s (-25.0% 🟢)2.011s (+98.8% 🔺)0.850s101.01x
💻 LocalNitro1.162s (+443.6% 🔺)2.005s (+99.6% 🔺)0.011s (-13.6% 🟢)2.018s (+98.0% 🔺)0.856s101.01x
🐘 PostgresNitro1.162s (+466.8% 🔺)2.002s (+100.3% 🔺)0.001s (-26.7% 🟢)2.011s (+98.8% 🔺)0.849s101.01x
💻 LocalNext.js (Turbopack)1.203s2.004s0.010s2.018s0.815s101.05x
🐘 PostgresNext.js (Turbopack)1.227s2.001s0.001s2.011s0.784s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.143s (-14.4% 🟢)3.297s (-19.4% 🟢)1.808s (+88.1% 🔺)5.581s (~)3.437s101.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.562s (+150.3% 🔺)2.002s (+98.9% 🔺)0.004s (-11.3% 🟢)2.025s (+98.1% 🔺)0.463s301.00x
💻 LocalNitro1.565s (+86.6% 🔺)2.009s (+98.5% 🔺)0.010s (+6.0% 🔺)2.021s (+81.1% 🔺)0.456s301.00x
🐘 PostgresExpress1.602s (+154.3% 🔺)2.006s (+99.3% 🔺)0.004s (+0.9%)2.028s (+98.2% 🔺)0.425s301.03x
💻 LocalNext.js (Turbopack)1.708s2.008s0.010s2.021s0.312s301.09x
🐘 PostgresNext.js (Turbopack)1.743s2.009s0.004s2.024s0.281s301.12x
💻 LocalExpress1.756s (+131.9% 🔺)2.011s (+95.4% 🔺)0.009s (-1.7%)2.201s (+111.6% 🔺)0.445s281.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.788s (-11.0% 🟢)7.424s (-7.3% 🟢)0.461s (+12.7% 🔺)8.392s (-5.0% 🟢)2.604s81.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.691s (-28.7% 🟢)1.030s (-17.5% 🟢)0.000s (+24.1% 🔺)1.042s (-17.2% 🟢)0.351s581.00x
🐘 PostgresExpress0.725s (-24.5% 🟢)1.048s (-18.0% 🟢)0.000s (+21.1% 🔺)1.060s (-18.8% 🟢)0.335s571.05x
🐘 PostgresNext.js (Turbopack)0.802s1.072s0.000s1.079s0.277s561.16x
💻 LocalExpress1.330s (+8.6% 🔺)2.012s (~)0.000s (+40.0% 🔺)2.014s (~)0.684s301.92x
💻 LocalNitro1.428s (+16.8% 🔺)2.013s (~)0.000s (+33.3% 🔺)2.015s (~)0.587s302.07x
💻 LocalNext.js (Turbopack)1.482s2.013s0.000s2.016s0.534s302.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.411s (-8.8% 🟢)4.624s (-9.4% 🟢)0.000s (-100.0% 🟢)5.192s (-6.1% 🟢)1.781s121.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.460s (-18.5% 🟢)2.100s (-1.9%)0.000s (+93.1% 🔺)2.126s (-2.2%)0.666s291.00x
🐘 PostgresNext.js (Turbopack)1.551s2.144s0.000s2.152s0.601s281.06x
🐘 PostgresExpress1.625s (-8.3% 🟢)2.220s (+1.9%)0.000s (+Infinity% 🔺)2.233s (+1.5%)0.608s271.11x
💻 LocalNext.js (Turbopack)2.868s3.412s0.001s3.421s0.553s181.96x
💻 LocalExpress2.971s (-14.3% 🟢)3.607s (-10.6% 🟢)0.001s (-11.8% 🟢)3.615s (-10.4% 🟢)0.644s172.03x
💻 LocalNitro3.163s (-6.6% 🟢)3.902s (-3.2%)0.001s (+64.1% 🔺)3.905s (-3.2%)0.743s162.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.232s (+14.0% 🔺)6.901s (+14.6% 🔺)0.007s (+Infinity% 🔺)7.496s (+16.1% 🔺)2.264s91.00x
▲ VercelNext.js (Turbopack)⚠️missing-----
▲ VercelNitro⚠️missing-----

🔍 Observability: Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress14/21
🐘 PostgresNitro19/21
▲ VercelExpress21/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres13/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres18/21
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
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@github-actions

github-actionsBot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production96402151179
✅ 💻 Local Development161502191834
✅ 📦 Local Production161502191834
✅ 🐘 Local Postgres161502191834
✅ 📋 Other7410176917
Total6550010487598

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro105026
✅ example105026
✅ express105026
✅ fastify105026
✅ hono105026
✅ nitro105026
✅ nuxt105026
✅ sveltekit12407
✅ vite105026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable106025
✅ express-stable106025
✅ fastify-stable106025
✅ hono-stable106025
✅ nextjs-turbopack-canary112019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13100
✅ nextjs-turbopack-stable-lazy-discovery-enabled13100
✅ nextjs-webpack-canary112019
✅ nextjs-webpack-stable-lazy-discovery-disabled13100
✅ nextjs-webpack-stable-lazy-discovery-enabled13100
✅ nitro-stable106025
✅ nuxt-stable106025
✅ sveltekit-stable12506
✅ vite-stable106025
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable106025
✅ e2e-local-dev-tanstack-start-106025
✅ e2e-local-postgres-nest-stable106025
✅ e2e-local-postgres-tanstack-start-106025
✅ e2e-local-prod-nest-stable106025
✅ e2e-local-prod-tanstack-start-106025
✅ e2e-vercel-prod-tanstack-start105026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: cancelled
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: failure

Check the workflow run for details.

@pranaygp
pranaygp marked this pull request as ready for review May 29, 2026 22:02
@pranaygp
pranaygp requested a review from ijjk as a code ownerMay 29, 2026 22:02
CopilotAI review requested due to automatic review settings May 29, 2026 22:02
@pranaygp
pranaygp requested a review from a team as a code ownerMay 29, 2026 22:02

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the canonical workflow execution and webhook endpoints from /.well-known/workflow/v1/ to /.well-known/workflow/v2/. The combined flow handler at v2 now serves both workflow and step queue messages (the separate v1/step route is no longer emitted). The webhook endpoint is also moved to v2, while /.well-known/workflow/v1/webhook/:token remains supported as a compatibility alias across all integrations. The v1 directory continues to host manifest.json and webhook compatibility resources, and builders proactively clean up stale v1 execution artifacts from prior builds.

Changes:

  • Update all queue clients, builders, framework integrations, and tests to use /.well-known/workflow/v2/flow and /.well-known/workflow/v2/webhook/:token.
  • Preserve /.well-known/workflow/v1/webhook/:token as a compatibility route in Next, Nitro, Nest, Sveltekit, Astro, BOA, and standalone builds.
  • Clean stale v1 flow/step/config.json/manifest.json artifacts on each build/boot to avoid cached v1 outputs leaking into v5 deployments.

Reviewed changes

Copilot reviewed 46 out of 46 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
.changeset/workflow-v2-routes.mdNew changeset noting the v2 route migration for all affected packages.
.github/workflows/tests.yml, .github/workflows/e2e-community-world.ymlUpdate CI dev-test config paths to v2 generated routes.
AGENTS.mdDocument that execution routes are now v2; v1 retains manifest/webhook compatibility.
docs/content/docs/v5/**Documentation updated for v2 paths and v1 webhook compatibility (getting-started, how-it-works, hooks, webhooks, api-reference, changelog).
packages/astro/src/builder.tsGenerate to v2 dir, remove stale v1 flow.js/step.js, route v1 webhook to v2 handler, keep manifest in v1.
packages/builders/src/base-builder.tsComment updated to v2 webhook path.
packages/builders/src/standalone.tsRemove stale v1 flow.mjs/step.mjs; build both v2 and v1 webhook bundles; manifest stays in v1.
packages/builders/src/vercel-build-output-api.tsClean v1 flow.func/step.func/webhook; emit v2 flow/webhook funcs; add Build Output route rewrite from v1 webhook to v2.
packages/cli/src/commands/health.ts, packages/cli/src/lib/config/workflow-config.tsUse v2 paths; rename steps bundle to __step_registrations.mjs.
packages/core/e2e/{e2e,local-build}.test.tsTests target v2 endpoints; one webhook test retained on v1 to validate compatibility.
packages/core/src/{create-hook,workflow/create-hook,runtime/world-init}.tsWebhook URL/doc strings updated to v2.
packages/nest/src/workflow.controller.ts, packages/nest/README.mdController exposes v2 flow + v2 webhook + v1 legacy webhook (delegating to v2).
packages/next/src/builder-deferred.ts, builder-eager.ts, builder.ts, index.test.tsGenerate to v2; write/copy webhook stubs for both v1 and v2; cleanup stale v1 routes/config; update deferred entries; tighten watch-mode invariant.
packages/nitro/src/{index,vite}.ts, index.test.tsRegister both v1 and v2 webhook virtual handlers; v2 flow handler; functionRules updated; middleware matcher widened.
packages/sveltekit/src/{builder,index}.tsGenerate to v2; build both v1 and v2 webhook routes; cleanup stale v1 flow/step; manifest stays in v1; .vc-config path updated to v2.
packages/utils/src/get-port.ts, get-port.test.tsProbe endpoint updated to v2.
packages/world-local/src/queue.ts, packages/world-postgres/src/queue.ts, queue.test.ts, README.md, HOW_IT_WORKS.mdRoute all step and workflow queue messages to the v2 flow endpoint.
packages/world-testing/{package.json,src/server.mts,scripts/generate-well-known-dts.mjs}Import v2 flow handler; generate v2 flow/webhook + v1 webhook dts stubs; copy both v1 and v2 mjs into dist.
scripts/create-test-matrix.mjsDEV test config paths updated to v2.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Request Changes — branch is too stale; merging as-is reverts at least three landed PRs

The architectural direction is sound: moving the combined execution endpoint to /v2/flow while keeping the webhook + manifest on /v1 is the right call for v5 (the v4-stable URL contract stays intact, the v5-only behavioral change gets its own path). The PR description's reasoning matches the v5 spec. Approving that direction.

However, the branch is dated May 26 (base b0d0561af) and was last touched June 5 without a rebase. Several PRs landed on main after the base, and the codex diff against current main shows those changes being deleted. Until the branch is rebased and the regressions are vetted, this is unsafe to merge.

Regressions caused by stale base

1. V8 regex stack overflow fix (#930886fe3, Peter, May 27) — reverted

packages/next/src/builder-deferred.tsextractBundleSourceFiles would crash with RangeError: Maximum call stack size exceeded at RegExpStringIterator.next on bundles with multi-MB inline base64 sourcemaps. Peter replaced the matchAll(/...[A-Za-z0-9+/=]+.../g) with a literal-prefix scan + manual base64 alphabet loop. This PR's diff puts the broken regex back:

- // Extract inline base64 sourcemaps via string scanning. A previous- // implementation used `bundleContents.matchAll(/...[A-Za-z0-9+/=]+.../g)`- // which overflows V8's regex stack ...- // [60-line scan loop]+ const sourceMapMatches = bundleContents.matchAll(+ /\/\/# sourceMappingURL=data:application\/json[^,]*;base64,([A-Za-z0-9+/=]+)/g+ );

This was added specifically because inline sourcemaps (#1799) became universal across workspace packages and the bundles got large enough to trip V8's irregexp recursion. The crash was tied to a separate branch where it surfaced first, but the underlying hazard is general — every Next builder run is now vulnerable to it.

2. Nitro dashboard handler (#2110, June 2) — reverted

packages/nitro/src/index.ts loses ~75 lines: the entire addDashboardHandler() function, the addDashboardHandler(nitro) call in dev mode, and the createRequire/pathToFileURL imports it needs. /_workflow dev UI dashboard goes away.

Verified: git show origin/main:packages/nitro/src/index.ts | grep -c addDashboardHandler = 2; git show pr-2154:packages/nitro/src/index.ts | grep -c addDashboardHandler = 0.

3. Lazy step route imports (#2263, JJ, June 5) — reverted

packages/next/src/builder-deferred.ts loses 263 lines that JJ added: createDeferredFlowRoute, createDeferredStepSideEffectImports, getDeferredRouteImportSpecifier, resolveDeferredRouteImportFilePath, resolvePackageSourceDistFilePathForRouteImport, findPackageRootForRouteImportSource, createDeferredStepManifest, resolveBuiltInStepFilesForManifest, mergeWorkflowManifest. The replacement is a single createCombinedBundle() call.

It's plausible that createCombinedBundle actually subsumes what those helpers were doing (the base builder already implements the combined-bundle pattern used by sveltekit/nitro/nest/eager-next), and JJ's PR may have been an interim approach. But the codex diff doesn't make that case — it just deletes the helpers. The accompanying packages/next/src/builder-deferred.test.ts (137 lines added by #2263) isn't touched, so any tests that referenced the deleted helpers will break. And whatever bug #2263 was fixing ("lazy step route imports") may resurface depending on how createCombinedBundle differs.

4. Lockfile / version churn

packages/world-testing/package.json reverts:

  • @hono/node-server 1.19.13 → 1.19.9 (downgrade)
  • hono 4.12.21 → 4.12.3 (downgrade)
  • own version 5.0.0-beta.12 → 5.0.0-beta.7
  • 5 CHANGELOG.md entries removed (beta.8 through beta.12)

These are all stale-branch artifacts from being forked before recent version bumps and dependency updates landed. They'll resolve on rebase, but they're a useful signal for how far behind this branch is.

Status check evidence

The PR's commit e20540c6e ("Keep webhook route on v1", June 5) was never run through CI — only Vercel Agent Review, DCO, Socket, and preview deploys ran on it. The earlier commit d4ef02406 (May 29) ran the full suite with E2E Required Check: failure and Unit Tests (windows-latest): failure. Even if those are flaky, no CI evidence currently exists that the branch in its current state builds, lints, and tests on Linux. mergeStateStatus: DIRTY / mergeable: CONFLICTING confirms there's at least one merge conflict (docs/content/docs/v5/changelog/eager-processing.mdx).

Architectural concerns (separate from staleness)

Workflow-server coordination

The Vercel workflow-server (out of this repo) is what calls into the user app at /v1/flow / /v1/step today. If this PR ships and the user app stops exposing /v1/flow and /v1/step, dispatches from workflow-server will 404 unless workflow-server already knows to:

  1. Dispatch to /v2/flow for new-spec deployments, AND
  2. Fall back to /v1/flow + /v1/step for older deployments that haven't redeployed with the v2 SDK.

The PR doesn't say which workflow-server version is required, and there's no smoke test exercising a mixed-version scenario. Please confirm:

  • Workflow-server already dispatches to /v2/flow for v5-spec deployments
  • Either workflow-server retains /v1/flow + /v1/step fallback during rollout, OR all v5 deployments get re-built before this lands
  • The Vercel beta-channel rollout sequencing is documented somewhere

If the dispatch logic is already version-aware (e.g. driven by manifest contents the workflow-server reads), saying so in the PR description would be enough.

Patch bump?

12 packages all get patch bumps for what is effectively a public-route relocation. On the beta channel patch doesn't matter (changesets always rolls beta.N), but if this ever has to be backported (the PR description says it won't be), patch would be the wrong semver. Since the PR explicitly says no backport, this is fine, but worth a sentence: "Patch is acceptable on the v5/beta channel; this route change is a v5 spec implementation detail, not a public API change."

Things to verify after rebase

Once rebased onto current main:

  1. Re-confirm createCombinedBundle produces equivalent output to createDeferredFlowRoute for the deferred-builder path. The key thing JJ's PR #2263 was solving (per the title — "Fix Next lazy step route imports") needs to either be preserved by createCombinedBundle or explicitly handled separately.
  2. Re-verify extractBundleSourceFiles keeps the string-scan implementation (not the regex).
  3. Re-verify addDashboardHandler stays in packages/nitro/src/index.ts.
  4. Run pnpm turbo run build --filter='!./workbench/*' from a clean state.
  5. Re-run E2E (especially nextjs-webpack dev, which was the canary for the V8 crash).

What I verified locally

  • Checked out PR head onto current main merge base; confirmed the three regressions above via git show against origin/main
  • Confirmed the changeset is appropriately scoped to packages with real changes (modulo the docs file which is in changeset ignore)
  • The route-prefix migration itself (paths in builders, tests, docs, CLI, get-port probe) is consistent across the 38 files — /v2/flow everywhere, /v1/webhook everywhere, /v1/manifest.json everywhere

Bottom line

The direction is right and most of the route-rename mechanics look correct. The blocker is the staleness — this PR was generated by a codex agent from a May 26 branch and the agent didn't notice that meaningful code on main got deleted in the process. Rebase, re-run CI, and re-verify the three reverts are restored.

Holding the approve until the rebase shows green and confirms the three referenced PRs survive.

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.

3 participants

@pranaygp@TooTallNate