Skip to content

refactor(swc-plugin): remove client transform mode, merge into step mode#1686

Draft
TooTallNate wants to merge 2 commits intonr/preserve-step-fn-namesfrom
nr/remove-client-mode
Draft

refactor(swc-plugin): remove client transform mode, merge into step mode#1686
TooTallNate wants to merge 2 commits intonr/preserve-step-fn-namesfrom
nr/remove-client-mode

Conversation

@TooTallNate
Copy link
Copy Markdown
Member

@TooTallNate TooTallNate commented Apr 10, 2026

Summary

  • Remove the client transform mode from the SWC compiler plugin, merging it into step mode
  • The plugin now has 3 modes (Step, Workflow, Detect) instead of 4
  • All integrations that previously used mode: 'client' now use mode: 'step'

Motivation

The client and step modes were nearly identical — both preserved step function bodies, replaced workflow bodies with throw stubs, and emitted the same JSON manifest. The only differences were:

  1. Registration mechanism: client used a simple .stepId property assignment; step used an IIFE with global Map registration
  2. Dead code elimination: client ran DCE; step did not
  3. Object property step call sites: client replaced inline functions with hoisted variable references; step kept the original inline copy

None of these differences were fundamentally necessary. Merging them simplifies the codebase by ~450 lines of Rust and removes 67 test fixture files.

What changed in step mode

  • DCE now runs — removes dead code just like it did in client mode, preserving step bodies and their dependencies
  • Object property steps use hoisted variable references at call sites so .stepId is accessible on the same function object
  • IIFE registration is unchanged — all step functions are registered in the global Map

Changed packages

Package Change
@workflow/swc-plugin Removed Client variant from TransformMode enum, ~450 lines of client-specific match arms
@workflow/next loader.ts now always uses mode: 'step'
@workflow/builders base-builder.ts, apply-swc-transform.ts, swc-esbuild-plugin.ts — removed 'client' from types and mode values
@workflow/cli Removed 'client' from transform command options
@workflow/rollup Changed mode: 'client' to mode: 'step'
@workflow/nest Changed mode: 'client' to mode: 'step'
@workflow/swc-playground-wasm Removed client output from batch transform

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 10, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
❌ ▲ Vercel Production 922 1 67 990
❌ 💻 Local Development 768 54 168 990
✅ 📦 Local Production 898 0 182 1080
✅ 🐘 Local Postgres 898 0 182 1080
❌ 🌍 Community Worlds 133 74 24 231
✅ 📋 Other 228 0 42 270
Total 3847 129 665 4641

❌ Failed Tests

▲ Vercel Production (1 failed)

nextjs-webpack (1 failed):

  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KPAQY4114F0DTWKY4JWQ9DJT | 🔍 observability
💻 Local Development (54 failed)

express-stable (20 failed):

  • DurableAgent e2e core single tool call
  • DurableAgent e2e core multiple sequential tool calls
  • DurableAgent e2e core tool error recovery
  • DurableAgent e2e provider tools mixed provider and function tools
  • DurableAgent e2e experimental_onToolCallStart (GAP) completes but callbacks are not called (GAP)
  • DurableAgent e2e experimental_onToolCallFinish (GAP) completes but callbacks are not called (GAP)
  • DurableAgent e2e multimodal tool results passes through LanguageModelV3ToolResultOutput from tools
  • promiseAllWorkflow | wrun_01KPAQP1ZD5W9MPQCA7ZFPHRMA
  • promiseRaceWorkflow | wrun_01KPAQP6HW92YRXKF6B50SSQDA
  • promiseAnyWorkflow | wrun_01KPAQP8T8NQC0X9W87YGH40Y8
  • webhookWorkflow | wrun_01KPAQQ82RMMX4MBVM94QFS83R
  • fetchWorkflow | wrun_01KPAQTJ7JG7A6MVTZ9PH6X0B3
  • promiseRaceStressTestWorkflow | wrun_01KPAQTMKVF6YVGY50QQB0VXFX
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KPAQY4114F0DTWKY4JWQ9DJT
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KPAR0KXJ1BM5VRAPASD28WYE
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KPAR4VBP7THS6T4F3K90B9WD

fastify-stable (21 failed):

  • DurableAgent e2e core single tool call
  • DurableAgent e2e core multiple sequential tool calls
  • DurableAgent e2e provider tools provider tool identity preserved across step boundaries
  • DurableAgent e2e provider tools mixed provider and function tools
  • DurableAgent e2e instructions string instructions are passed to the model
  • DurableAgent e2e experimental_onStepStart (GAP) completes but callbacks are not called (GAP)
  • hookWorkflow | wrun_01KPAQPMN0QEEATVV2YMK8VD7P
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KPAQQ06BFGDKWJHW7TJ99SPP
  • promiseRaceStressTestWorkflow | wrun_01KPAQTMKVF6YVGY50QQB0VXFX
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KPAQYRN2EFQKH3NDG100PZP4
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KPAR02Q9ZC0MECK75KN9RHX1
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KPAR0KXJ1BM5VRAPASD28WYE
  • runClassSerializationWorkflow - Run instances serialize across workflow/step boundaries | wrun_01KPAR0ZNCVNRTE64M8TZTK3KT
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KPAR2ZC32DX353G76ZFAVHRY
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KPAR38PKBR5JHC00G4DE5DA3
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KPAR4VBP7THS6T4F3K90B9WD

hono-stable (13 failed):

  • DurableAgent e2e core multiple sequential tool calls
  • DurableAgent e2e prepareStep on constructor agent-level prepareStep is called for each LLM step
  • DurableAgent e2e multimodal tool results passes through LanguageModelV3ToolResultOutput from tools
  • workflowAndStepMetadataWorkflow | wrun_01KPAQQZKBYT70TTCF0K9Q1167
  • fetchWorkflow | wrun_01KPAQTJ7JG7A6MVTZ9PH6X0B3
  • promiseRaceStressTestWorkflow | wrun_01KPAQTMKVF6YVGY50QQB0VXFX
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KPAR0KXJ1BM5VRAPASD28WYE
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KPAR4VBP7THS6T4F3K90B9WD
🌍 Community Worlds (74 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KPAQQ06BFGDKWJHW7TJ99SPP
  • webhookWorkflow | wrun_01KPAQQ82RMMX4MBVM94QFS83R
  • fetchWorkflow | wrun_01KPAQTJ7JG7A6MVTZ9PH6X0B3
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KPAQYRN2EFQKH3NDG100PZP4
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KPAR5H1J3HHB46VQTFFAJ0HR

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KPAQQ06BFGDKWJHW7TJ99SPP
  • webhookWorkflow | wrun_01KPAQQ82RMMX4MBVM94QFS83R
  • fetchWorkflow | wrun_01KPAQTJ7JG7A6MVTZ9PH6X0B3
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KPAQYRN2EFQKH3NDG100PZP4
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KPAR5H1J3HHB46VQTFFAJ0HR

turso (60 failed):

  • addTenWorkflow | wrun_01KPAQNTZ000WFVQS6CWRJG75P
  • addTenWorkflow | wrun_01KPAQNTZ000WFVQS6CWRJG75P
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KPAQPQV7CPV7B3VH591RVQ35
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KPAQP1ZD5W9MPQCA7ZFPHRMA
  • promiseRaceWorkflow | wrun_01KPAQP6HW92YRXKF6B50SSQDA
  • promiseAnyWorkflow | wrun_01KPAQP8T8NQC0X9W87YGH40Y8
  • importedStepOnlyWorkflow | wrun_01KPAQQ3CX8B3SMXVNC0FB0P8F
  • hookWorkflow | wrun_01KPAQPMN0QEEATVV2YMK8VD7P
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KPAQQ06BFGDKWJHW7TJ99SPP
  • webhookWorkflow | wrun_01KPAQQ82RMMX4MBVM94QFS83R
  • sleepingWorkflow | wrun_01KPAQQE9AJ1H5B976X3T3F8AE
  • parallelSleepWorkflow | wrun_01KPAQQSZRE9GEFJW8ASBSHJ0X
  • nullByteWorkflow | wrun_01KPAQQXARHGWJ912W1029W42F
  • workflowAndStepMetadataWorkflow | wrun_01KPAQQZKBYT70TTCF0K9Q1167
  • fetchWorkflow | wrun_01KPAQTJ7JG7A6MVTZ9PH6X0B3
  • promiseRaceStressTestWorkflow | wrun_01KPAQTMKVF6YVGY50QQB0VXFX
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KPAQY4114F0DTWKY4JWQ9DJT
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KPAQYRN2EFQKH3NDG100PZP4
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KPAQZECX3M2ECYB0BE0XVMW7
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KPAR02Q9ZC0MECK75KN9RHX1
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KPAR0BTSD7V8PH20WAAD9SJQ
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KPAR0HGWZW7PT6VPSMJFCS1P
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KPAR0KXJ1BM5VRAPASD28WYE
  • runClassSerializationWorkflow - Run instances serialize across workflow/step boundaries | wrun_01KPAR0ZNCVNRTE64M8TZTK3KT
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KPAR1EJR61CXTTGJ6K6P2NFK
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KPAR1MJMA8PVPSD22BB8RVNV
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KPAR1VFBT1EJ8SA3Y65TGDKZ
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KPAR21BVW26T81GMGGAP2QFZ
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KPAR2727KER7WF3NZTC3YGMX
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KPAR2E062Z7GHSYRX46RG316
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KPAR2MRY9BT6331WY586FVKR
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KPAR2ZC32DX353G76ZFAVHRY
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KPAR38PKBR5JHC00G4DE5DA3
  • cancelRun - cancelling a running workflow | wrun_01KPAR3FJA0PNYN91J5753539T
  • cancelRun via CLI - cancelling a running workflow | wrun_01KPAR3S11M7GY5DGPCM19Q8N6
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KPAR465BECTEEJ6RVA11M372
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KPAR4VBP7THS6T4F3K90B9WD
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KPAR55PTR0AV25VA266EZHW4
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KPAR5CH2CM36RF5Z6Q9S71RH
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KPAR5EYPM80E5GGDZNP72MBS
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KPAR5H1J3HHB46VQTFFAJ0HR
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KPAR5NEZPGZJHM10GBFTDRN1

Details by Category

❌ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 83 0 7
✅ example 83 0 7
✅ express 83 0 7
✅ fastify 83 0 7
✅ hono 83 0 7
✅ nextjs-turbopack 88 0 2
❌ nextjs-webpack 87 1 2
✅ nitro 83 0 7
✅ nuxt 83 0 7
✅ sveltekit 83 0 7
✅ vite 83 0 7
❌ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 76 0 14
❌ express-stable 56 20 14
❌ fastify-stable 55 21 14
❌ hono-stable 63 13 14
✅ nextjs-turbopack-canary 63 0 27
✅ nextjs-turbopack-stable 82 0 8
✅ nextjs-webpack-canary 63 0 27
✅ nextjs-webpack-stable 82 0 8
✅ nuxt-stable 76 0 14
✅ sveltekit-stable 76 0 14
✅ vite-stable 76 0 14
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 76 0 14
✅ express-stable 76 0 14
✅ fastify-stable 76 0 14
✅ hono-stable 76 0 14
✅ nextjs-turbopack-canary 63 0 27
✅ nextjs-turbopack-stable 82 0 8
✅ nextjs-webpack-canary 63 0 27
✅ nextjs-webpack-stable 82 0 8
✅ nitro-stable 76 0 14
✅ nuxt-stable 76 0 14
✅ sveltekit-stable 76 0 14
✅ vite-stable 76 0 14
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 76 0 14
✅ express-stable 76 0 14
✅ fastify-stable 76 0 14
✅ hono-stable 76 0 14
✅ nextjs-turbopack-canary 63 0 27
✅ nextjs-turbopack-stable 82 0 8
✅ nextjs-webpack-canary 63 0 27
✅ nextjs-webpack-stable 82 0 8
✅ nitro-stable 76 0 14
✅ nuxt-stable 76 0 14
✅ sveltekit-stable 76 0 14
✅ vite-stable 76 0 14
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 6 0 0
❌ mongodb 56 7 8
✅ redis-dev 6 0 0
❌ redis 56 7 8
✅ turso-dev 6 0 0
❌ turso 3 60 8
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 76 0 14
✅ e2e-local-postgres-nest-stable 76 0 14
✅ e2e-local-prod-nest-stable 76 0 14

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 10, 2026

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 0.043s (+4.9%) 1.006s (~) 0.963s 10 1.00x
💻 Local Nitro 0.045s (+7.5% 🔺) 1.005s (~) 0.960s 10 1.04x
🐘 Postgres Nitro 0.046s (-20.8% 🟢) 1.008s (~) 0.962s 10 1.07x
💻 Local Next.js (Turbopack) 0.047s 1.005s 0.959s 10 1.09x
🐘 Postgres Next.js (Turbopack) 0.054s 1.009s 0.954s 10 1.27x
🐘 Postgres Express 0.063s (+7.0% 🔺) 1.010s (~) 0.947s 10 1.46x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 0.261s (-4.9%) 2.606s (+15.7% 🔺) 2.345s 10 1.00x
▲ Vercel Next.js (Turbopack) 0.261s (-37.7% 🟢) 2.277s (~) 2.016s 10 1.00x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.120s (-2.5%) 2.011s (~) 0.891s 10 1.00x
💻 Local Next.js (Turbopack) 1.124s 2.006s 0.881s 10 1.00x
💻 Local Nitro 1.127s (-0.7%) 2.005s (~) 0.878s 10 1.01x
💻 Local Express 1.132s (~) 2.007s (~) 0.875s 10 1.01x
🐘 Postgres Next.js (Turbopack) 1.136s 2.008s 0.873s 10 1.01x
🐘 Postgres Express 1.140s (-0.9%) 2.010s (~) 0.870s 10 1.02x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 2.145s (+9.4% 🔺) 3.975s (+18.3% 🔺) 1.830s 10 1.00x
▲ Vercel Nitro 2.354s (+24.6% 🔺) 4.157s (+17.1% 🔺) 1.803s 10 1.10x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 10.681s (-2.2%) 11.020s (~) 0.339s 3 1.00x
💻 Local Next.js (Turbopack) 10.796s 11.024s 0.229s 3 1.01x
🐘 Postgres Next.js (Turbopack) 10.809s 11.014s 0.206s 3 1.01x
🐘 Postgres Express 10.881s (~) 11.023s (~) 0.141s 3 1.02x
💻 Local Express 10.934s (~) 11.024s (~) 0.090s 3 1.02x
💻 Local Nitro 10.954s (~) 11.025s (~) 0.071s 3 1.03x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 17.816s (~) 19.347s (+1.0%) 1.531s 2 1.00x
▲ Vercel Next.js (Turbopack) 18.791s (+5.9% 🔺) 21.314s (+11.1% 🔺) 2.523s 2 1.05x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 13.978s (-4.3%) 14.023s (-6.6% 🟢) 0.045s 5 1.00x
🐘 Postgres Next.js (Turbopack) 14.379s 15.021s 0.642s 4 1.03x
🐘 Postgres Express 14.508s (~) 15.024s (~) 0.516s 4 1.04x
💻 Local Next.js (Turbopack) 14.645s 15.031s 0.387s 4 1.05x
💻 Local Nitro 15.004s (~) 15.280s (+1.7%) 0.277s 4 1.07x
💻 Local Express 15.027s (+0.6%) 15.782s (+5.0% 🔺) 0.755s 4 1.08x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 34.047s (+7.5% 🔺) 35.903s (+6.8% 🔺) 1.856s 2 1.00x
▲ Vercel Nitro 34.800s (+13.6% 🔺) 36.812s (+12.0% 🔺) 2.011s 2 1.02x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 12.936s (-8.0% 🟢) 13.161s (-11.5% 🟢) 0.224s 7 1.00x
🐘 Postgres Next.js (Turbopack) 13.915s 14.170s 0.255s 7 1.08x
🐘 Postgres Express 14.010s (+1.9%) 14.595s (+4.1%) 0.585s 7 1.08x
💻 Local Next.js (Turbopack) 15.800s 16.030s 0.229s 6 1.22x
💻 Local Nitro 16.634s (~) 17.030s (~) 0.396s 6 1.29x
💻 Local Express 16.930s (+2.3%) 17.199s (+1.0%) 0.269s 6 1.31x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 56.179s (+1.6%) 57.893s (+2.4%) 1.714s 2 1.00x
▲ Vercel Nitro 59.154s (+11.8% 🔺) 61.270s (+12.0% 🔺) 2.116s 2 1.05x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.199s (-5.7% 🟢) 2.009s (~) 0.809s 15 1.00x
🐘 Postgres Next.js (Turbopack) 1.228s 2.009s 0.781s 15 1.02x
🐘 Postgres Express 1.247s (-1.6%) 2.009s (~) 0.762s 15 1.04x
💻 Local Next.js (Turbopack) 1.485s 2.005s 0.520s 15 1.24x
💻 Local Nitro 1.501s (+0.6%) 2.006s (~) 0.505s 15 1.25x
💻 Local Express 1.547s (+2.0%) 2.006s (~) 0.459s 15 1.29x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 2.230s (-2.1%) 3.991s (+13.2% 🔺) 1.761s 8 1.00x
▲ Vercel Nitro 2.442s (+6.4% 🔺) 4.185s (+10.8% 🔺) 1.743s 8 1.10x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.261s (-3.5%) 3.008s (~) 0.746s 10 1.00x
🐘 Postgres Express 2.331s (-1.3%) 3.009s (~) 0.678s 10 1.03x
🐘 Postgres Next.js (Turbopack) 2.387s 3.009s 0.622s 10 1.06x
💻 Local Nitro 2.894s (-3.8%) 3.109s (-6.0% 🟢) 0.215s 10 1.28x
💻 Local Next.js (Turbopack) 3.004s 3.565s 0.561s 9 1.33x
💻 Local Express 3.138s (+1.0%) 4.011s (+9.1% 🔺) 0.872s 8 1.39x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 2.865s (+0.5%) 4.497s (+3.2%) 1.632s 7 1.00x
▲ Vercel Nitro 2.980s (+8.7% 🔺) 4.484s (+12.9% 🔺) 1.504s 7 1.04x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.362s (-3.2%) 4.010s (~) 0.648s 8 1.00x
🐘 Postgres Express 3.467s (~) 4.013s (~) 0.546s 8 1.03x
🐘 Postgres Next.js (Turbopack) 3.628s 4.009s 0.381s 8 1.08x
💻 Local Next.js (Turbopack) 7.242s 7.618s 0.376s 5 2.15x
💻 Local Nitro 7.558s (-12.6% 🟢) 8.269s (-8.3% 🟢) 0.711s 4 2.25x
💻 Local Express 8.678s (+11.9% 🔺) 9.024s (+12.5% 🔺) 0.347s 4 2.58x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.896s (+4.2%) 4.530s (-1.3%) 1.635s 7 1.00x
▲ Vercel Next.js (Turbopack) 3.791s (+22.3% 🔺) 5.364s (+24.1% 🔺) 1.573s 6 1.31x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.180s (-6.0% 🟢) 2.008s (~) 0.828s 15 1.00x
🐘 Postgres Next.js (Turbopack) 1.219s 2.007s 0.788s 15 1.03x
🐘 Postgres Express 1.270s (+1.6%) 2.008s (~) 0.738s 15 1.08x
💻 Local Next.js (Turbopack) 1.462s 2.006s 0.544s 15 1.24x
💻 Local Nitro 1.558s (~) 2.006s (~) 0.448s 15 1.32x
💻 Local Express 1.593s (+5.2% 🔺) 2.007s (~) 0.414s 15 1.35x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 2.029s (-16.1% 🟢) 3.838s (+2.9%) 1.809s 8 1.00x
▲ Vercel Nitro 2.121s (-2.5%) 3.672s (+1.0%) 1.550s 9 1.05x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.277s (-3.0%) 3.008s (~) 0.731s 10 1.00x
🐘 Postgres Express 2.337s (+1.4%) 3.010s (~) 0.673s 10 1.03x
🐘 Postgres Next.js (Turbopack) 2.370s 3.009s 0.639s 10 1.04x
💻 Local Next.js (Turbopack) 2.858s 3.309s 0.451s 10 1.25x
💻 Local Nitro 2.927s (-5.2% 🟢) 3.209s (-14.6% 🟢) 0.282s 10 1.29x
💻 Local Express 3.139s (+11.0% 🔺) 4.010s (+21.2% 🔺) 0.871s 8 1.38x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.474s (+33.6% 🔺) 5.181s (+30.5% 🔺) 1.706s 7 1.00x
▲ Vercel Next.js (Turbopack) 8.826s (+213.2% 🔺) 10.561s (+140.9% 🔺) 1.736s 3 2.54x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.398s (-1.6%) 4.008s (~) 0.611s 8 1.00x
🐘 Postgres Express 3.483s (+0.6%) 4.009s (~) 0.525s 8 1.03x
🐘 Postgres Next.js (Turbopack) 3.631s 4.012s 0.381s 8 1.07x
💻 Local Next.js (Turbopack) 8.112s 8.519s 0.407s 4 2.39x
💻 Local Nitro 8.521s (-1.7%) 9.026s (-2.7%) 0.505s 4 2.51x
💻 Local Express 9.127s (+6.8% 🔺) 10.023s (+11.1% 🔺) 0.896s 3 2.69x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.883s (-9.1% 🟢) 4.438s (-7.5% 🟢) 1.555s 7 1.00x
▲ Vercel Next.js (Turbopack) 3.848s (+11.0% 🔺) 6.182s (+28.0% 🔺) 2.334s 5 1.33x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.587s (-28.0% 🟢) 1.006s (~) 0.419s 60 1.00x
🐘 Postgres Next.js (Turbopack) 0.752s 1.006s 0.254s 60 1.28x
🐘 Postgres Express 0.828s (+3.7%) 1.006s (~) 0.178s 60 1.41x
💻 Local Next.js (Turbopack) 0.871s 1.039s 0.168s 58 1.48x
💻 Local Express 1.016s (+4.2%) 1.700s (+58.1% 🔺) 0.684s 36 1.73x
💻 Local Nitro 1.035s (+4.3%) 1.941s (+57.9% 🔺) 0.906s 31 1.76x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 10.764s (+20.2% 🔺) 12.640s (+22.2% 🔺) 1.876s 5 1.00x
▲ Vercel Nitro 11.182s (+21.4% 🔺) 13.016s (+20.0% 🔺) 1.834s 5 1.04x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.415s (-27.9% 🟢) 2.007s (-10.0% 🟢) 0.592s 45 1.00x
🐘 Postgres Next.js (Turbopack) 1.904s 2.123s 0.219s 43 1.35x
🐘 Postgres Express 1.966s (+6.3% 🔺) 2.174s (+8.3% 🔺) 0.208s 42 1.39x
💻 Local Next.js (Turbopack) 2.743s 3.008s 0.265s 30 1.94x
💻 Local Express 3.073s (+2.7%) 4.011s (+17.4% 🔺) 0.938s 23 2.17x
💻 Local Nitro 3.079s (+2.1%) 3.966s (+13.0% 🔺) 0.887s 23 2.18x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 29.681s (+8.0% 🔺) 31.726s (+8.7% 🔺) 2.044s 3 1.00x
▲ Vercel Next.js (Turbopack) 30.950s (+4.3%) 32.944s (+6.4% 🔺) 1.994s 3 1.04x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.924s (-25.5% 🟢) 3.110s (-25.0% 🟢) 0.186s 39 1.00x
🐘 Postgres Next.js (Turbopack) 3.748s 4.009s 0.261s 30 1.28x
🐘 Postgres Express 3.974s (+5.0% 🔺) 4.403s (+9.8% 🔺) 0.429s 28 1.36x
💻 Local Next.js (Turbopack) 8.495s 9.017s 0.522s 14 2.91x
💻 Local Nitro 9.103s (-1.1%) 9.710s (-1.6%) 0.607s 13 3.11x
💻 Local Express 9.187s (+1.1%) 9.865s (+1.6%) 0.678s 13 3.14x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 83.436s (+7.1% 🔺) 85.658s (+6.8% 🔺) 2.222s 2 1.00x
▲ Vercel Next.js (Turbopack) 85.177s (+16.8% 🔺) 87.689s (+17.9% 🔺) 2.512s 2 1.02x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.218s (-21.7% 🟢) 1.006s (~) 0.788s 60 1.00x
🐘 Postgres Next.js (Turbopack) 0.249s 1.007s 0.757s 60 1.14x
🐘 Postgres Express 0.291s (+2.0%) 1.007s (~) 0.716s 60 1.33x
💻 Local Next.js (Turbopack) 0.567s 1.021s 0.454s 59 2.60x
💻 Local Nitro 0.584s (+2.9%) 1.004s (~) 0.420s 60 2.68x
💻 Local Express 0.608s (+7.1% 🔺) 1.022s (+1.7%) 0.414s 59 2.79x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 1.733s (+13.9% 🔺) 3.574s (+25.6% 🔺) 1.841s 17 1.00x
▲ Vercel Nitro 1.853s (-4.8%) 3.439s (-1.6%) 1.586s 18 1.07x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.358s (-25.8% 🟢) 1.005s (~) 0.647s 90 1.00x
🐘 Postgres Next.js (Turbopack) 0.475s 1.006s 0.531s 90 1.33x
🐘 Postgres Express 0.497s (+3.4%) 1.006s (~) 0.509s 90 1.39x
💻 Local Nitro 2.410s (-4.5%) 3.009s (~) 0.599s 30 6.73x
💻 Local Next.js (Turbopack) 2.574s 3.009s 0.435s 30 7.19x
💻 Local Express 2.598s (+4.2%) 3.009s (~) 0.411s 30 7.26x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.587s (-5.8% 🟢) 4.203s (~) 1.616s 22 1.00x
▲ Vercel Next.js (Turbopack) 3.647s (+23.2% 🔺) 5.479s (+27.1% 🔺) 1.832s 18 1.41x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.568s (-28.4% 🟢) 1.006s (~) 0.438s 120 1.00x
🐘 Postgres Next.js (Turbopack) 0.751s 1.006s 0.255s 120 1.32x
🐘 Postgres Express 0.798s (+5.1% 🔺) 1.008s (~) 0.210s 120 1.40x
💻 Local Next.js (Turbopack) 10.619s 11.300s 0.681s 11 18.69x
💻 Local Nitro 10.687s (-3.5%) 11.120s (-6.1% 🟢) 0.433s 11 18.81x
💻 Local Express 11.604s (+5.9% 🔺) 12.128s (+5.6% 🔺) 0.524s 10 20.42x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 6.860s (+15.0% 🔺) 8.950s (+19.8% 🔺) 2.090s 14 1.00x
▲ Vercel Next.js (Turbopack) 33.774s (+403.2% 🔺) 35.668s (+339.5% 🔺) 1.894s 8 4.92x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.164s (-23.7% 🟢) 1.000s (+0.6%) 0.001s (-16.7% 🟢) 1.010s (~) 0.846s 10 1.00x
💻 Local Next.js (Turbopack) 0.186s 1.003s 0.010s 1.017s 0.831s 10 1.13x
🐘 Postgres Next.js (Turbopack) 0.186s 1.000s 0.001s 1.010s 0.824s 10 1.13x
🐘 Postgres Express 0.208s (+7.7% 🔺) 0.996s (~) 0.001s (-7.1% 🟢) 1.010s (~) 0.803s 10 1.27x
💻 Local Express 0.210s (+6.9% 🔺) 1.004s (~) 0.013s (+11.4% 🔺) 1.019s (~) 0.809s 10 1.28x
💻 Local Nitro 0.215s (+6.6% 🔺) 1.004s (~) 0.013s (+9.5% 🔺) 1.019s (~) 0.804s 10 1.31x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 1.723s (+1.8%) 2.934s (-7.3% 🟢) 0.984s (+31.3% 🔺) 4.403s (-1.1%) 2.680s 10 1.00x
▲ Vercel Next.js (Turbopack) 1.897s (+17.5% 🔺) 3.256s (+20.6% 🔺) 0.883s (-18.6% 🟢) 4.643s (+8.3% 🔺) 2.746s 10 1.10x
▲ Vercel Express ⚠️ missing - - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.496s (-19.3% 🟢) 1.005s (~) 0.004s (-10.0% 🟢) 1.020s (~) 0.524s 59 1.00x
🐘 Postgres Next.js (Turbopack) 0.598s 1.009s 0.004s 1.024s 0.426s 59 1.20x
🐘 Postgres Express 0.607s (+4.6%) 1.005s (~) 0.004s (+86.0% 🔺) 1.022s (~) 0.416s 59 1.22x
💻 Local Nitro 0.746s (-9.3% 🟢) 1.012s (~) 0.008s (-4.9%) 1.022s (-8.3% 🟢) 0.276s 59 1.51x
💻 Local Express 0.851s (+19.0% 🔺) 1.012s (~) 0.010s (+11.9% 🔺) 1.118s (+9.2% 🔺) 0.266s 54 1.72x
💻 Local Next.js (Turbopack) 0.873s 1.010s 0.010s 1.219s 0.346s 51 1.76x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 4.411s (+5.4% 🔺) 5.785s (+2.0%) 0.231s (+31.8% 🔺) 6.458s (+4.5%) 2.047s 10 1.00x
▲ Vercel Nitro 5.132s (+28.4% 🔺) 6.446s (+20.8% 🔺) 0.231s (+18.0% 🔺) 7.173s (+21.3% 🔺) 2.040s 9 1.16x
▲ Vercel Express ⚠️ missing - - - - -

🔍 Observability: Next.js (Turbopack) | Nitro

10 parallel streams (1MB each)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.888s (-6.0% 🟢) 1.071s (-6.7% 🟢) 0.000s (+364.3% 🔺) 1.078s (-7.2% 🟢) 0.191s 56 1.00x
🐘 Postgres Next.js (Turbopack) 0.920s 1.174s 0.000s 1.180s 0.261s 52 1.04x
🐘 Postgres Express 0.991s (+6.2% 🔺) 1.320s (+21.9% 🔺) 0.000s (-28.3% 🟢) 1.334s (+21.5% 🔺) 0.343s 46 1.12x
💻 Local Next.js (Turbopack) 1.231s 2.019s 0.000s 2.022s 0.791s 30 1.39x
💻 Local Nitro 1.236s (+1.4%) 2.022s (~) 0.000s (+140.0% 🔺) 2.024s (~) 0.789s 30 1.39x
💻 Local Express 1.272s (+4.1%) 2.024s (~) 0.000s (-10.0% 🟢) 2.026s (~) 0.754s 30 1.43x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 2.995s (-17.8% 🟢) 4.684s (-1.7%) 0.000s (NaN%) 5.216s (+1.4%) 2.221s 12 1.00x
▲ Vercel Nitro 3.075s (+5.2% 🔺) 4.340s (+2.2%) 0.001s (+166.7% 🔺) 4.775s (+2.9%) 1.700s 13 1.03x
▲ Vercel Express ⚠️ missing - - - - -

🔍 Observability: Next.js (Turbopack) | Nitro

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

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.633s (-9.7% 🟢) 2.034s (-1.6%) 0.000s (+93.3% 🔺) 2.048s (-2.8%) 0.415s 30 1.00x
🐘 Postgres Express 1.720s (-1.7%) 2.071s (-3.1%) 0.000s (+Infinity% 🔺) 2.103s (-2.3%) 0.384s 29 1.05x
🐘 Postgres Next.js (Turbopack) 1.785s 2.071s 0.000s 2.078s 0.293s 29 1.09x
💻 Local Nitro 3.433s (~) 4.035s (+1.6%) 0.001s (+16.4% 🔺) 4.037s (+1.6%) 0.604s 15 2.10x
💻 Local Next.js (Turbopack) 3.530s 4.098s 0.000s 4.102s 0.572s 15 2.16x
💻 Local Express 3.817s (+5.7% 🔺) 4.318s (+2.0%) 0.000s (-73.2% 🟢) 4.320s (+2.0%) 0.503s 14 2.34x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 4.679s (+34.5% 🔺) 5.715s (+27.6% 🔺) 0.001s (+40.8% 🔺) 6.198s (+27.7% 🔺) 1.519s 10 1.00x
▲ Vercel Next.js (Turbopack) 5.034s (+30.5% 🔺) 6.374s (+23.7% 🔺) 0.000s (NaN%) 6.823s (+23.8% 🔺) 1.789s 9 1.08x
▲ Vercel Express ⚠️ missing - - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Next.js (Turbopack) 16/21
🐘 Postgres Nitro 21/21
▲ Vercel Nitro 11/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 🐘 Postgres 19/21
Next.js (Turbopack) 🐘 Postgres 17/21
Nitro 🐘 Postgres 18/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 10, 2026

🦋 Changeset detected

Latest commit: 95c4a46

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

This PR includes changesets to release 18 packages
Name Type
@workflow/swc-plugin Major
@workflow/builders Patch
@workflow/cli Patch
@workflow/next Patch
@workflow/rollup Patch
@workflow/nest Patch
@workflow/astro Patch
@workflow/nitro Patch
@workflow/sveltekit Patch
@workflow/vite Patch
@workflow/vitest Patch
workflow Patch
@workflow/world-testing Patch
@workflow/nuxt Patch
@workflow/ai Patch
@workflow/core Patch
@workflow/web-shared Patch
@workflow/web Patch

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

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

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment Apr 16, 2026 8:51am
example-nextjs-workflow-webpack Ready Ready Preview, Comment Apr 16, 2026 8:51am
example-workflow Ready Ready Preview, Comment Apr 16, 2026 8:51am
workbench-astro-workflow Ready Ready Preview, Comment Apr 16, 2026 8:51am
workbench-express-workflow Ready Ready Preview, Comment Apr 16, 2026 8:51am
workbench-fastify-workflow Ready Ready Preview, Comment Apr 16, 2026 8:51am
workbench-hono-workflow Ready Ready Preview, Comment Apr 16, 2026 8:51am
workbench-nitro-workflow Ready Ready Preview, Comment Apr 16, 2026 8:51am
workbench-nuxt-workflow Ready Ready Preview, Comment Apr 16, 2026 8:51am
workbench-sveltekit-workflow Ready Ready Preview, Comment Apr 16, 2026 8:51am
workbench-vite-workflow Ready Ready Preview, Comment Apr 16, 2026 8:51am
workflow-swc-playground Ready Ready Preview, Comment Apr 16, 2026 8:51am
workflow-web Ready Ready Preview, Comment Apr 16, 2026 8:51am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
workflow-docs Ignored Ignored Preview Apr 16, 2026 8:51am

@TooTallNate TooTallNate force-pushed the nr/remove-client-mode branch from aac9033 to cf9fe73 Compare April 10, 2026 17:20
Remove the `client` transform mode from the SWC compiler plugin. The
`client` and `step` modes were nearly identical — both preserved step
function bodies, replaced workflow bodies with throw stubs, and emitted
the same JSON manifest. Step mode now absorbs all client-mode behaviors:

- Dead code elimination (previously only workflow + client)
- Hoisted variable references for object property steps
- All integrations use mode: 'step' instead of 'client'

BREAKING CHANGE: The `client` value for the SWC plugin `mode` option is
no longer accepted. Use `step` instead.
…sId registration

In dev mode, Nitro's Rollup externalizes npm packages like @workflow/core,
so the SWC transform plugin never processes files like run.js. This means
serde classes (e.g. Run) never get the classId registration IIFE, causing
serialization failures when step functions return Run instances.

Uses a Rollup resolveId hook to force workflow SDK packages to be bundled
(non-external) while leaving all other dependencies external. This is more
targeted than noExternals=true which bundles everything and causes TDZ
errors from circular imports in packages like vue-bundle-renderer/h3.

Also wraps the dev:reload builder.build() call in try/catch and makes
LocalBuilder.build() atomic (writes to temp files, renames on success)
to prevent corrupted output files from partial builds during HMR.

For Nuxt, also configures Vite's ssr.noExternal to bundle workflow
packages in the SSR context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant