Skip to content

[NestJS] Simplify NestJS integration with standalone build tool - #878

Draft
VaguelySerious wants to merge 8 commits into
mainfrom
peter/nestjs-v2
Draft

[NestJS] Simplify NestJS integration with standalone build tool#878
VaguelySerious wants to merge 8 commits into
mainfrom
peter/nestjs-v2

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member
  • Remove SWC peer dependencies (@swc/cli, @swc/core no longer required)
  • Add workflow-nest build command to build workflow bundles independently
  • Generate .workflow/client.js with workflow metadata for use with start()
  • Add workflow-nest dev command for watch mode
  • Update default output directory from .nestjs/workflow to .workflow
  • Deprecate workflow-nest init in favor of build command

BREAKING CHANGE: Users now import workflow metadata from .workflow/client.js instead of importing directly from workflow files. This allows NestJS to use any compiler (tsc, swc, or babel) without requiring SWC configuration.

…ld tool
- Remove SWC peer dependencies (@swc/cli, @swc/core no longer required)
- Add `workflow-nest build` command to build workflow bundles independently
- Generate `.workflow/client.js` with workflow metadata for use with start()
- Add `workflow-nest dev` command for watch mode
- Update default output directory from .nestjs/workflow to .workflow
- Deprecate `workflow-nest init` in favor of build command
BREAKING CHANGE: Users now import workflow metadata from `.workflow/client.js`
instead of importing directly from workflow files. This allows NestJS to use
any compiler (tsc, swc, or babel) without requiring SWC configuration.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@changeset-bot

changeset-botBot commented Jan 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 88e252a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel

vercelBot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentReviewUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 28, 2026 6:58am
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 28, 2026 6:58am
example-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-astro-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-express-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-fastify-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-hono-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-nitro-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-nuxt-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-vite-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workflow-nestReadyReadyPreview, CommentJan 28, 2026 6:58am
1 Skipped Deployment
ProjectDeploymentReviewUpdated (UTC)
workflow-docsSkippedSkippedJan 28, 2026 6:58am

@github-actions

github-actionsBot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production457038495
✅ 💻 Local Development418032450
✅ 📦 Local Production418032450
✅ 🐘 Local Postgres418032450
✅ 🪟 Windows450045
❌ 🌍 Community Worlds311610192
✅ 📋 Other123012135
Total19101611462217

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4104
✅ example4104
✅ express4104
✅ fastify4104
✅ hono4104
✅ nextjs-turbopack4401
✅ nextjs-webpack4401
✅ nitro4104
✅ nuxt4104
✅ sveltekit4104
✅ vite4104
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5400
✅ redis-dev300
❌ redis5400
✅ starter-dev300
❌ starter4410
✅ turso-dev300
❌ turso5400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4104
✅ e2e-local-postgres-nest-stable4104
✅ e2e-local-prod-nest-stable4104

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 28, 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🥇 Express0.030s (-29.3% 🟢)1.008s (~)0.978s101.00x
💻 LocalNext.js (Turbopack)0.041s (-0.7%)1.019s (~)0.978s101.36x
💻 LocalNitro0.045s (+53.8% 🔺)1.007s (~)0.962s101.49x
🐘 PostgresNext.js (Turbopack)0.164s (-58.3% 🟢)1.019s (~)0.855s105.46x
🐘 PostgresNitro0.252s (-3.6%)1.013s (~)0.761s108.37x
🐘 PostgresExpress0.475s (+58.7% 🔺)1.014s (~)0.540s1015.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.708s (+22.5% 🔺)1.680s (+15.1% 🔺)0.973s101.00x
▲ VercelNitro0.770s (+22.7% 🔺)1.732s (+11.4% 🔺)0.963s101.09x
▲ VercelNext.js (Turbopack)0.830s (+9.2% 🔺)1.880s (+22.5% 🔺)1.050s101.17x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.078s (-3.4%)2.008s (~)0.930s101.00x
💻 LocalNext.js (Turbopack)1.094s (-0.9%)2.012s (~)0.918s101.02x
💻 LocalNitro1.113s (+3.2%)2.006s (~)0.893s101.03x
🐘 PostgresNext.js (Turbopack)1.906s (-15.1% 🟢)2.120s (-29.8% 🟢)0.214s101.77x
🐘 PostgresNitro2.121s (~)3.013s (~)0.893s101.97x
🐘 PostgresExpress2.330s (+8.8% 🔺)3.014s (~)0.684s102.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.843s (-12.0% 🟢)3.758s (-6.0% 🟢)0.915s101.00x
▲ VercelNext.js (Turbopack)2.963s (+6.5% 🔺)3.885s (+9.4% 🔺)0.922s101.04x
▲ VercelNitro3.071s (+13.3% 🔺)4.437s (+23.2% 🔺)1.366s101.08x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.571s (-2.4%)11.015s (~)0.444s51.00x
💻 LocalNext.js (Turbopack)10.723s (~)11.023s (~)0.300s51.01x
💻 LocalNitro10.825s (+2.5%)11.016s (~)0.191s51.02x
🐘 PostgresNext.js (Turbopack)15.286s (~)16.033s (~)0.747s51.45x
🐘 PostgresExpress20.190s (-1.4%)21.038s (~)0.848s51.91x
🐘 PostgresNitro20.488s (~)21.028s (~)0.540s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro22.051s (-4.4%)22.855s (-3.9%)0.804s51.00x
▲ VercelExpress22.288s (+0.9%)23.451s (+2.9%)1.163s51.01x
▲ VercelNext.js (Turbopack)22.895s (+2.9%)23.790s (+4.1%)0.895s51.04x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.352s (-3.0%)2.011s (~)0.658s151.00x
💻 LocalExpress1.355s (-3.9%)2.007s (~)0.652s151.00x
💻 LocalNitro1.411s (+4.2%)2.006s (~)0.595s151.04x
🐘 PostgresNext.js (Turbopack)1.900s (+7.7% 🔺)2.643s (+31.2% 🔺)0.743s121.41x
🐘 PostgresNitro2.284s (+2.2%)3.012s (~)0.729s101.69x
🐘 PostgresExpress2.427s (+11.8% 🔺)3.012s (~)0.585s101.79x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.058s (+7.1% 🔺)3.972s (+8.3% 🔺)0.914s81.00x
▲ VercelNext.js (Turbopack)3.149s (+15.1% 🔺)4.022s (+11.8% 🔺)0.873s81.03x
▲ VercelNitro3.253s (+6.2% 🔺)4.106s (+0.5%)0.852s81.06x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.150s (-14.3% 🟢)3.084s (+1.8%)0.935s101.00x
💻 LocalNitro2.475s (+10.3% 🔺)3.028s (-5.9% 🟢)0.553s101.15x
💻 LocalNext.js (Turbopack)2.493s (+1.5%)3.023s (-0.8%)0.531s101.16x
🐘 PostgresNitro8.046s (+10.8% 🔺)8.525s (+5.7% 🔺)0.479s43.74x
🐘 PostgresExpress9.067s (+21.2% 🔺)9.571s (+18.8% 🔺)0.504s44.22x
🐘 PostgresNext.js (Turbopack)10.900s (-8.7% 🟢)11.421s (-7.8% 🟢)0.522s35.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.328s (-17.9% 🟢)4.201s (-11.2% 🟢)0.873s81.00x
▲ VercelExpress3.420s (-37.7% 🟢)4.138s (-32.5% 🟢)0.718s81.03x
▲ VercelNext.js (Turbopack)3.802s (+12.0% 🔺)4.796s (-20.5% 🟢)0.994s71.14x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.360s (-5.3% 🟢)2.006s (~)0.646s151.00x
💻 LocalNitro1.417s (+2.4%)2.006s (~)0.589s151.04x
💻 LocalNext.js (Turbopack)1.418s (+0.8%)2.012s (~)0.594s151.04x
🐘 PostgresNext.js (Turbopack)1.531s (-25.8% 🟢)2.015s (-19.8% 🟢)0.484s151.13x
🐘 PostgresNitro2.136s (+2.2%)2.924s (+22.0% 🔺)0.788s111.57x
🐘 PostgresExpress2.230s (+4.9%)2.739s (+8.7% 🔺)0.510s111.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.687s (-37.9% 🟢)3.660s (-27.4% 🟢)0.973s91.00x
▲ VercelNitro2.794s (-27.6% 🟢)3.761s (-21.4% 🟢)0.968s81.04x
▲ VercelNext.js (Turbopack)2.822s (-38.1% 🟢)3.808s (-29.4% 🟢)0.986s81.05x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.237s (-12.6% 🟢)3.219s (+6.7% 🔺)0.982s101.00x
💻 LocalNitro2.575s (+8.3% 🔺)3.022s (-9.0% 🟢)0.446s101.15x
💻 LocalNext.js (Turbopack)2.578s (~)3.020s (-0.6%)0.442s101.15x
🐘 PostgresExpress10.288s (-18.3% 🟢)10.687s (-18.2% 🟢)0.399s34.60x
🐘 PostgresNext.js (Turbopack)11.128s (-16.7% 🟢)11.700s (-16.7% 🟢)0.572s34.97x
🐘 PostgresNitro11.391s (+3.4%)11.701s (+2.7%)0.310s35.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.867s (-24.3% 🟢)3.593s (-18.0% 🟢)0.726s91.00x
▲ VercelNitro2.944s (-8.7% 🟢)3.818s (-4.7%)0.875s81.03x
▲ VercelNext.js (Turbopack)3.334s (-18.1% 🟢)4.158s (-11.8% 🟢)0.825s81.16x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.116s (-37.1% 🟢)1.000s (+0.8%)0.013s (-15.2% 🟢)1.021s (~)0.905s101.00x
💻 LocalNext.js (Turbopack)0.145s (-2.5%)1.003s (~)0.017s (-0.6%)1.028s (~)0.883s101.24x
💻 LocalNitro0.180s (+55.2% 🔺)0.993s (-0.7%)0.015s (+21.7% 🔺)1.021s (~)0.841s101.55x
🐘 PostgresNext.js (Turbopack)1.192s (-15.0% 🟢)1.856s (+8.6% 🔺)0.000s (+Infinity% 🔺)2.021s (~)0.829s1010.24x
🐘 PostgresNitro2.337s (~)2.704s (~)0.000s (-100.0% 🟢)3.014s (~)0.677s1020.08x
🐘 PostgresExpress2.434s (+6.2% 🔺)2.609s (-5.3% 🟢)0.000s (NaN%)3.015s (~)0.581s1020.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.914s (+1.2%)3.210s (~)0.612s (+48.7% 🔺)4.353s (+6.9% 🔺)1.439s101.00x
▲ VercelExpress2.969s (+2.8%)3.167s (+0.7%)0.703s (-3.2%)4.403s (+1.2%)1.433s101.02x
▲ VercelNext.js (Turbopack)2.973s (-1.6%)3.356s (+3.9%)0.570s (+23.2% 🔺)4.534s (+9.7% 🔺)1.562s101.02x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress7/8
🐘 PostgresNext.js (Turbopack)6/8
▲ VercelExpress5/8
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

@VaguelySeriousVaguelySerious changed the title feat(@workflow/nest): Simplify NestJS integration with standalone build tool[@workflow/nest] Simplify NestJS integration with standalone build toolJan 28, 2026

@vercelvercelBot 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.

Additional Suggestions:

  1. NestJS test configuration references incorrect .nestjs/workflow/ output directory paths instead of the updated .workflow/ paths.
  1. README documentation shows outdated .nestjs/workflow default directory and deprecated SWC-based workflow setup instructions.
Fix on Vercel

Comment threadpackages/nest/src/cli.ts
vercelBotand others added 2 commits January 28, 2026 05:34
…rectories without checking if they exist first, causing an unhandled ENOENT crash with an unhelpful error message.
Co-authored-by: VaguelySerious <mittgfu@gmail.com>
…/` output directory paths instead of the updated `.workflow/` paths.
Co-authored-by: VaguelySerious <mittgfu@gmail.com>
- Update test matrix paths from .nestjs/workflow to .workflow
- Add .swcrc to configure ESM output for NestJS with "type": "module"
- Handle duplicate workflow names in client.js generation by appending suffix
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
… compatibility
- Add byFile exports grouped by source file path for workbench registry
- Add findByFilename helper to match workflows by filename regardless of path prefix
- Handle duplicate workflow names with numeric suffixes
- Preserve dots in workflow names for class methods (e.g., Calculator.calculate)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
In client mode using byFile exports, workflows are keyed by their full
dot-notation name (e.g., 'Calculator.calculate') rather than being nested
under class constructors. Update the trigger endpoint to first try direct
lookup, then fall back to class-based lookup for traditional mode.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

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

[NestJS] Simplify NestJS integration with standalone build tool - #878

Draft
VaguelySerious wants to merge 8 commits into
mainfrom
peter/nestjs-v2
Draft

[NestJS] Simplify NestJS integration with standalone build tool#878
VaguelySerious wants to merge 8 commits into
mainfrom
peter/nestjs-v2

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member
  • Remove SWC peer dependencies (@swc/cli, @swc/core no longer required)
  • Add workflow-nest build command to build workflow bundles independently
  • Generate .workflow/client.js with workflow metadata for use with start()
  • Add workflow-nest dev command for watch mode
  • Update default output directory from .nestjs/workflow to .workflow
  • Deprecate workflow-nest init in favor of build command

BREAKING CHANGE: Users now import workflow metadata from .workflow/client.js instead of importing directly from workflow files. This allows NestJS to use any compiler (tsc, swc, or babel) without requiring SWC configuration.

…ld tool
- Remove SWC peer dependencies (@swc/cli, @swc/core no longer required)
- Add `workflow-nest build` command to build workflow bundles independently
- Generate `.workflow/client.js` with workflow metadata for use with start()
- Add `workflow-nest dev` command for watch mode
- Update default output directory from .nestjs/workflow to .workflow
- Deprecate `workflow-nest init` in favor of build command
BREAKING CHANGE: Users now import workflow metadata from `.workflow/client.js`
instead of importing directly from workflow files. This allows NestJS to use
any compiler (tsc, swc, or babel) without requiring SWC configuration.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@changeset-bot

changeset-botBot commented Jan 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 88e252a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel

vercelBot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentReviewUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 28, 2026 6:58am
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 28, 2026 6:58am
example-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-astro-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-express-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-fastify-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-hono-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-nitro-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-nuxt-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-vite-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workflow-nestReadyReadyPreview, CommentJan 28, 2026 6:58am
1 Skipped Deployment
ProjectDeploymentReviewUpdated (UTC)
workflow-docsSkippedSkippedJan 28, 2026 6:58am

@github-actions

github-actionsBot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production457038495
✅ 💻 Local Development418032450
✅ 📦 Local Production418032450
✅ 🐘 Local Postgres418032450
✅ 🪟 Windows450045
❌ 🌍 Community Worlds311610192
✅ 📋 Other123012135
Total19101611462217

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4104
✅ example4104
✅ express4104
✅ fastify4104
✅ hono4104
✅ nextjs-turbopack4401
✅ nextjs-webpack4401
✅ nitro4104
✅ nuxt4104
✅ sveltekit4104
✅ vite4104
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5400
✅ redis-dev300
❌ redis5400
✅ starter-dev300
❌ starter4410
✅ turso-dev300
❌ turso5400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4104
✅ e2e-local-postgres-nest-stable4104
✅ e2e-local-prod-nest-stable4104

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 28, 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🥇 Express0.030s (-29.3% 🟢)1.008s (~)0.978s101.00x
💻 LocalNext.js (Turbopack)0.041s (-0.7%)1.019s (~)0.978s101.36x
💻 LocalNitro0.045s (+53.8% 🔺)1.007s (~)0.962s101.49x
🐘 PostgresNext.js (Turbopack)0.164s (-58.3% 🟢)1.019s (~)0.855s105.46x
🐘 PostgresNitro0.252s (-3.6%)1.013s (~)0.761s108.37x
🐘 PostgresExpress0.475s (+58.7% 🔺)1.014s (~)0.540s1015.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.708s (+22.5% 🔺)1.680s (+15.1% 🔺)0.973s101.00x
▲ VercelNitro0.770s (+22.7% 🔺)1.732s (+11.4% 🔺)0.963s101.09x
▲ VercelNext.js (Turbopack)0.830s (+9.2% 🔺)1.880s (+22.5% 🔺)1.050s101.17x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.078s (-3.4%)2.008s (~)0.930s101.00x
💻 LocalNext.js (Turbopack)1.094s (-0.9%)2.012s (~)0.918s101.02x
💻 LocalNitro1.113s (+3.2%)2.006s (~)0.893s101.03x
🐘 PostgresNext.js (Turbopack)1.906s (-15.1% 🟢)2.120s (-29.8% 🟢)0.214s101.77x
🐘 PostgresNitro2.121s (~)3.013s (~)0.893s101.97x
🐘 PostgresExpress2.330s (+8.8% 🔺)3.014s (~)0.684s102.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.843s (-12.0% 🟢)3.758s (-6.0% 🟢)0.915s101.00x
▲ VercelNext.js (Turbopack)2.963s (+6.5% 🔺)3.885s (+9.4% 🔺)0.922s101.04x
▲ VercelNitro3.071s (+13.3% 🔺)4.437s (+23.2% 🔺)1.366s101.08x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.571s (-2.4%)11.015s (~)0.444s51.00x
💻 LocalNext.js (Turbopack)10.723s (~)11.023s (~)0.300s51.01x
💻 LocalNitro10.825s (+2.5%)11.016s (~)0.191s51.02x
🐘 PostgresNext.js (Turbopack)15.286s (~)16.033s (~)0.747s51.45x
🐘 PostgresExpress20.190s (-1.4%)21.038s (~)0.848s51.91x
🐘 PostgresNitro20.488s (~)21.028s (~)0.540s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro22.051s (-4.4%)22.855s (-3.9%)0.804s51.00x
▲ VercelExpress22.288s (+0.9%)23.451s (+2.9%)1.163s51.01x
▲ VercelNext.js (Turbopack)22.895s (+2.9%)23.790s (+4.1%)0.895s51.04x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.352s (-3.0%)2.011s (~)0.658s151.00x
💻 LocalExpress1.355s (-3.9%)2.007s (~)0.652s151.00x
💻 LocalNitro1.411s (+4.2%)2.006s (~)0.595s151.04x
🐘 PostgresNext.js (Turbopack)1.900s (+7.7% 🔺)2.643s (+31.2% 🔺)0.743s121.41x
🐘 PostgresNitro2.284s (+2.2%)3.012s (~)0.729s101.69x
🐘 PostgresExpress2.427s (+11.8% 🔺)3.012s (~)0.585s101.79x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.058s (+7.1% 🔺)3.972s (+8.3% 🔺)0.914s81.00x
▲ VercelNext.js (Turbopack)3.149s (+15.1% 🔺)4.022s (+11.8% 🔺)0.873s81.03x
▲ VercelNitro3.253s (+6.2% 🔺)4.106s (+0.5%)0.852s81.06x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.150s (-14.3% 🟢)3.084s (+1.8%)0.935s101.00x
💻 LocalNitro2.475s (+10.3% 🔺)3.028s (-5.9% 🟢)0.553s101.15x
💻 LocalNext.js (Turbopack)2.493s (+1.5%)3.023s (-0.8%)0.531s101.16x
🐘 PostgresNitro8.046s (+10.8% 🔺)8.525s (+5.7% 🔺)0.479s43.74x
🐘 PostgresExpress9.067s (+21.2% 🔺)9.571s (+18.8% 🔺)0.504s44.22x
🐘 PostgresNext.js (Turbopack)10.900s (-8.7% 🟢)11.421s (-7.8% 🟢)0.522s35.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.328s (-17.9% 🟢)4.201s (-11.2% 🟢)0.873s81.00x
▲ VercelExpress3.420s (-37.7% 🟢)4.138s (-32.5% 🟢)0.718s81.03x
▲ VercelNext.js (Turbopack)3.802s (+12.0% 🔺)4.796s (-20.5% 🟢)0.994s71.14x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.360s (-5.3% 🟢)2.006s (~)0.646s151.00x
💻 LocalNitro1.417s (+2.4%)2.006s (~)0.589s151.04x
💻 LocalNext.js (Turbopack)1.418s (+0.8%)2.012s (~)0.594s151.04x
🐘 PostgresNext.js (Turbopack)1.531s (-25.8% 🟢)2.015s (-19.8% 🟢)0.484s151.13x
🐘 PostgresNitro2.136s (+2.2%)2.924s (+22.0% 🔺)0.788s111.57x
🐘 PostgresExpress2.230s (+4.9%)2.739s (+8.7% 🔺)0.510s111.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.687s (-37.9% 🟢)3.660s (-27.4% 🟢)0.973s91.00x
▲ VercelNitro2.794s (-27.6% 🟢)3.761s (-21.4% 🟢)0.968s81.04x
▲ VercelNext.js (Turbopack)2.822s (-38.1% 🟢)3.808s (-29.4% 🟢)0.986s81.05x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.237s (-12.6% 🟢)3.219s (+6.7% 🔺)0.982s101.00x
💻 LocalNitro2.575s (+8.3% 🔺)3.022s (-9.0% 🟢)0.446s101.15x
💻 LocalNext.js (Turbopack)2.578s (~)3.020s (-0.6%)0.442s101.15x
🐘 PostgresExpress10.288s (-18.3% 🟢)10.687s (-18.2% 🟢)0.399s34.60x
🐘 PostgresNext.js (Turbopack)11.128s (-16.7% 🟢)11.700s (-16.7% 🟢)0.572s34.97x
🐘 PostgresNitro11.391s (+3.4%)11.701s (+2.7%)0.310s35.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.867s (-24.3% 🟢)3.593s (-18.0% 🟢)0.726s91.00x
▲ VercelNitro2.944s (-8.7% 🟢)3.818s (-4.7%)0.875s81.03x
▲ VercelNext.js (Turbopack)3.334s (-18.1% 🟢)4.158s (-11.8% 🟢)0.825s81.16x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.116s (-37.1% 🟢)1.000s (+0.8%)0.013s (-15.2% 🟢)1.021s (~)0.905s101.00x
💻 LocalNext.js (Turbopack)0.145s (-2.5%)1.003s (~)0.017s (-0.6%)1.028s (~)0.883s101.24x
💻 LocalNitro0.180s (+55.2% 🔺)0.993s (-0.7%)0.015s (+21.7% 🔺)1.021s (~)0.841s101.55x
🐘 PostgresNext.js (Turbopack)1.192s (-15.0% 🟢)1.856s (+8.6% 🔺)0.000s (+Infinity% 🔺)2.021s (~)0.829s1010.24x
🐘 PostgresNitro2.337s (~)2.704s (~)0.000s (-100.0% 🟢)3.014s (~)0.677s1020.08x
🐘 PostgresExpress2.434s (+6.2% 🔺)2.609s (-5.3% 🟢)0.000s (NaN%)3.015s (~)0.581s1020.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.914s (+1.2%)3.210s (~)0.612s (+48.7% 🔺)4.353s (+6.9% 🔺)1.439s101.00x
▲ VercelExpress2.969s (+2.8%)3.167s (+0.7%)0.703s (-3.2%)4.403s (+1.2%)1.433s101.02x
▲ VercelNext.js (Turbopack)2.973s (-1.6%)3.356s (+3.9%)0.570s (+23.2% 🔺)4.534s (+9.7% 🔺)1.562s101.02x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress7/8
🐘 PostgresNext.js (Turbopack)6/8
▲ VercelExpress5/8
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

@VaguelySeriousVaguelySerious changed the title feat(@workflow/nest): Simplify NestJS integration with standalone build tool[@workflow/nest] Simplify NestJS integration with standalone build toolJan 28, 2026

@vercelvercelBot 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.

Additional Suggestions:

  1. NestJS test configuration references incorrect .nestjs/workflow/ output directory paths instead of the updated .workflow/ paths.
  1. README documentation shows outdated .nestjs/workflow default directory and deprecated SWC-based workflow setup instructions.
Fix on Vercel

Comment threadpackages/nest/src/cli.ts
vercelBotand others added 2 commits January 28, 2026 05:34
…rectories without checking if they exist first, causing an unhandled ENOENT crash with an unhelpful error message.
Co-authored-by: VaguelySerious <mittgfu@gmail.com>
…/` output directory paths instead of the updated `.workflow/` paths.
Co-authored-by: VaguelySerious <mittgfu@gmail.com>
- Update test matrix paths from .nestjs/workflow to .workflow
- Add .swcrc to configure ESM output for NestJS with "type": "module"
- Handle duplicate workflow names in client.js generation by appending suffix
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
… compatibility
- Add byFile exports grouped by source file path for workbench registry
- Add findByFilename helper to match workflows by filename regardless of path prefix
- Handle duplicate workflow names with numeric suffixes
- Preserve dots in workflow names for class methods (e.g., Calculator.calculate)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
In client mode using byFile exports, workflows are keyed by their full
dot-notation name (e.g., 'Calculator.calculate') rather than being nested
under class constructors. Update the trigger endpoint to first try direct
lookup, then fall back to class-based lookup for traditional mode.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

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

[NestJS] Simplify NestJS integration with standalone build tool - #878

Draft
VaguelySerious wants to merge 8 commits into
mainfrom
peter/nestjs-v2
Draft

[NestJS] Simplify NestJS integration with standalone build tool#878
VaguelySerious wants to merge 8 commits into
mainfrom
peter/nestjs-v2

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member
  • Remove SWC peer dependencies (@swc/cli, @swc/core no longer required)
  • Add workflow-nest build command to build workflow bundles independently
  • Generate .workflow/client.js with workflow metadata for use with start()
  • Add workflow-nest dev command for watch mode
  • Update default output directory from .nestjs/workflow to .workflow
  • Deprecate workflow-nest init in favor of build command

BREAKING CHANGE: Users now import workflow metadata from .workflow/client.js instead of importing directly from workflow files. This allows NestJS to use any compiler (tsc, swc, or babel) without requiring SWC configuration.

…ld tool
- Remove SWC peer dependencies (@swc/cli, @swc/core no longer required)
- Add `workflow-nest build` command to build workflow bundles independently
- Generate `.workflow/client.js` with workflow metadata for use with start()
- Add `workflow-nest dev` command for watch mode
- Update default output directory from .nestjs/workflow to .workflow
- Deprecate `workflow-nest init` in favor of build command
BREAKING CHANGE: Users now import workflow metadata from `.workflow/client.js`
instead of importing directly from workflow files. This allows NestJS to use
any compiler (tsc, swc, or babel) without requiring SWC configuration.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@changeset-bot

changeset-botBot commented Jan 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 88e252a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel

vercelBot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentReviewUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 28, 2026 6:58am
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 28, 2026 6:58am
example-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-astro-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-express-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-fastify-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-hono-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-nitro-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-nuxt-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-vite-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workflow-nestReadyReadyPreview, CommentJan 28, 2026 6:58am
1 Skipped Deployment
ProjectDeploymentReviewUpdated (UTC)
workflow-docsSkippedSkippedJan 28, 2026 6:58am

@github-actions

github-actionsBot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production457038495
✅ 💻 Local Development418032450
✅ 📦 Local Production418032450
✅ 🐘 Local Postgres418032450
✅ 🪟 Windows450045
❌ 🌍 Community Worlds311610192
✅ 📋 Other123012135
Total19101611462217

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4104
✅ example4104
✅ express4104
✅ fastify4104
✅ hono4104
✅ nextjs-turbopack4401
✅ nextjs-webpack4401
✅ nitro4104
✅ nuxt4104
✅ sveltekit4104
✅ vite4104
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5400
✅ redis-dev300
❌ redis5400
✅ starter-dev300
❌ starter4410
✅ turso-dev300
❌ turso5400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4104
✅ e2e-local-postgres-nest-stable4104
✅ e2e-local-prod-nest-stable4104

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 28, 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🥇 Express0.030s (-29.3% 🟢)1.008s (~)0.978s101.00x
💻 LocalNext.js (Turbopack)0.041s (-0.7%)1.019s (~)0.978s101.36x
💻 LocalNitro0.045s (+53.8% 🔺)1.007s (~)0.962s101.49x
🐘 PostgresNext.js (Turbopack)0.164s (-58.3% 🟢)1.019s (~)0.855s105.46x
🐘 PostgresNitro0.252s (-3.6%)1.013s (~)0.761s108.37x
🐘 PostgresExpress0.475s (+58.7% 🔺)1.014s (~)0.540s1015.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.708s (+22.5% 🔺)1.680s (+15.1% 🔺)0.973s101.00x
▲ VercelNitro0.770s (+22.7% 🔺)1.732s (+11.4% 🔺)0.963s101.09x
▲ VercelNext.js (Turbopack)0.830s (+9.2% 🔺)1.880s (+22.5% 🔺)1.050s101.17x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.078s (-3.4%)2.008s (~)0.930s101.00x
💻 LocalNext.js (Turbopack)1.094s (-0.9%)2.012s (~)0.918s101.02x
💻 LocalNitro1.113s (+3.2%)2.006s (~)0.893s101.03x
🐘 PostgresNext.js (Turbopack)1.906s (-15.1% 🟢)2.120s (-29.8% 🟢)0.214s101.77x
🐘 PostgresNitro2.121s (~)3.013s (~)0.893s101.97x
🐘 PostgresExpress2.330s (+8.8% 🔺)3.014s (~)0.684s102.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.843s (-12.0% 🟢)3.758s (-6.0% 🟢)0.915s101.00x
▲ VercelNext.js (Turbopack)2.963s (+6.5% 🔺)3.885s (+9.4% 🔺)0.922s101.04x
▲ VercelNitro3.071s (+13.3% 🔺)4.437s (+23.2% 🔺)1.366s101.08x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.571s (-2.4%)11.015s (~)0.444s51.00x
💻 LocalNext.js (Turbopack)10.723s (~)11.023s (~)0.300s51.01x
💻 LocalNitro10.825s (+2.5%)11.016s (~)0.191s51.02x
🐘 PostgresNext.js (Turbopack)15.286s (~)16.033s (~)0.747s51.45x
🐘 PostgresExpress20.190s (-1.4%)21.038s (~)0.848s51.91x
🐘 PostgresNitro20.488s (~)21.028s (~)0.540s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro22.051s (-4.4%)22.855s (-3.9%)0.804s51.00x
▲ VercelExpress22.288s (+0.9%)23.451s (+2.9%)1.163s51.01x
▲ VercelNext.js (Turbopack)22.895s (+2.9%)23.790s (+4.1%)0.895s51.04x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.352s (-3.0%)2.011s (~)0.658s151.00x
💻 LocalExpress1.355s (-3.9%)2.007s (~)0.652s151.00x
💻 LocalNitro1.411s (+4.2%)2.006s (~)0.595s151.04x
🐘 PostgresNext.js (Turbopack)1.900s (+7.7% 🔺)2.643s (+31.2% 🔺)0.743s121.41x
🐘 PostgresNitro2.284s (+2.2%)3.012s (~)0.729s101.69x
🐘 PostgresExpress2.427s (+11.8% 🔺)3.012s (~)0.585s101.79x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.058s (+7.1% 🔺)3.972s (+8.3% 🔺)0.914s81.00x
▲ VercelNext.js (Turbopack)3.149s (+15.1% 🔺)4.022s (+11.8% 🔺)0.873s81.03x
▲ VercelNitro3.253s (+6.2% 🔺)4.106s (+0.5%)0.852s81.06x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.150s (-14.3% 🟢)3.084s (+1.8%)0.935s101.00x
💻 LocalNitro2.475s (+10.3% 🔺)3.028s (-5.9% 🟢)0.553s101.15x
💻 LocalNext.js (Turbopack)2.493s (+1.5%)3.023s (-0.8%)0.531s101.16x
🐘 PostgresNitro8.046s (+10.8% 🔺)8.525s (+5.7% 🔺)0.479s43.74x
🐘 PostgresExpress9.067s (+21.2% 🔺)9.571s (+18.8% 🔺)0.504s44.22x
🐘 PostgresNext.js (Turbopack)10.900s (-8.7% 🟢)11.421s (-7.8% 🟢)0.522s35.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.328s (-17.9% 🟢)4.201s (-11.2% 🟢)0.873s81.00x
▲ VercelExpress3.420s (-37.7% 🟢)4.138s (-32.5% 🟢)0.718s81.03x
▲ VercelNext.js (Turbopack)3.802s (+12.0% 🔺)4.796s (-20.5% 🟢)0.994s71.14x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.360s (-5.3% 🟢)2.006s (~)0.646s151.00x
💻 LocalNitro1.417s (+2.4%)2.006s (~)0.589s151.04x
💻 LocalNext.js (Turbopack)1.418s (+0.8%)2.012s (~)0.594s151.04x
🐘 PostgresNext.js (Turbopack)1.531s (-25.8% 🟢)2.015s (-19.8% 🟢)0.484s151.13x
🐘 PostgresNitro2.136s (+2.2%)2.924s (+22.0% 🔺)0.788s111.57x
🐘 PostgresExpress2.230s (+4.9%)2.739s (+8.7% 🔺)0.510s111.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.687s (-37.9% 🟢)3.660s (-27.4% 🟢)0.973s91.00x
▲ VercelNitro2.794s (-27.6% 🟢)3.761s (-21.4% 🟢)0.968s81.04x
▲ VercelNext.js (Turbopack)2.822s (-38.1% 🟢)3.808s (-29.4% 🟢)0.986s81.05x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.237s (-12.6% 🟢)3.219s (+6.7% 🔺)0.982s101.00x
💻 LocalNitro2.575s (+8.3% 🔺)3.022s (-9.0% 🟢)0.446s101.15x
💻 LocalNext.js (Turbopack)2.578s (~)3.020s (-0.6%)0.442s101.15x
🐘 PostgresExpress10.288s (-18.3% 🟢)10.687s (-18.2% 🟢)0.399s34.60x
🐘 PostgresNext.js (Turbopack)11.128s (-16.7% 🟢)11.700s (-16.7% 🟢)0.572s34.97x
🐘 PostgresNitro11.391s (+3.4%)11.701s (+2.7%)0.310s35.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.867s (-24.3% 🟢)3.593s (-18.0% 🟢)0.726s91.00x
▲ VercelNitro2.944s (-8.7% 🟢)3.818s (-4.7%)0.875s81.03x
▲ VercelNext.js (Turbopack)3.334s (-18.1% 🟢)4.158s (-11.8% 🟢)0.825s81.16x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.116s (-37.1% 🟢)1.000s (+0.8%)0.013s (-15.2% 🟢)1.021s (~)0.905s101.00x
💻 LocalNext.js (Turbopack)0.145s (-2.5%)1.003s (~)0.017s (-0.6%)1.028s (~)0.883s101.24x
💻 LocalNitro0.180s (+55.2% 🔺)0.993s (-0.7%)0.015s (+21.7% 🔺)1.021s (~)0.841s101.55x
🐘 PostgresNext.js (Turbopack)1.192s (-15.0% 🟢)1.856s (+8.6% 🔺)0.000s (+Infinity% 🔺)2.021s (~)0.829s1010.24x
🐘 PostgresNitro2.337s (~)2.704s (~)0.000s (-100.0% 🟢)3.014s (~)0.677s1020.08x
🐘 PostgresExpress2.434s (+6.2% 🔺)2.609s (-5.3% 🟢)0.000s (NaN%)3.015s (~)0.581s1020.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.914s (+1.2%)3.210s (~)0.612s (+48.7% 🔺)4.353s (+6.9% 🔺)1.439s101.00x
▲ VercelExpress2.969s (+2.8%)3.167s (+0.7%)0.703s (-3.2%)4.403s (+1.2%)1.433s101.02x
▲ VercelNext.js (Turbopack)2.973s (-1.6%)3.356s (+3.9%)0.570s (+23.2% 🔺)4.534s (+9.7% 🔺)1.562s101.02x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress7/8
🐘 PostgresNext.js (Turbopack)6/8
▲ VercelExpress5/8
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

@VaguelySeriousVaguelySerious changed the title feat(@workflow/nest): Simplify NestJS integration with standalone build tool[@workflow/nest] Simplify NestJS integration with standalone build toolJan 28, 2026

@vercelvercelBot 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.

Additional Suggestions:

  1. NestJS test configuration references incorrect .nestjs/workflow/ output directory paths instead of the updated .workflow/ paths.
  1. README documentation shows outdated .nestjs/workflow default directory and deprecated SWC-based workflow setup instructions.
Fix on Vercel

Comment threadpackages/nest/src/cli.ts
vercelBotand others added 2 commits January 28, 2026 05:34
…rectories without checking if they exist first, causing an unhandled ENOENT crash with an unhelpful error message.
Co-authored-by: VaguelySerious <mittgfu@gmail.com>
…/` output directory paths instead of the updated `.workflow/` paths.
Co-authored-by: VaguelySerious <mittgfu@gmail.com>
- Update test matrix paths from .nestjs/workflow to .workflow
- Add .swcrc to configure ESM output for NestJS with "type": "module"
- Handle duplicate workflow names in client.js generation by appending suffix
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
… compatibility
- Add byFile exports grouped by source file path for workbench registry
- Add findByFilename helper to match workflows by filename regardless of path prefix
- Handle duplicate workflow names with numeric suffixes
- Preserve dots in workflow names for class methods (e.g., Calculator.calculate)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
In client mode using byFile exports, workflows are keyed by their full
dot-notation name (e.g., 'Calculator.calculate') rather than being nested
under class constructors. Update the trigger endpoint to first try direct
lookup, then fall back to class-based lookup for traditional mode.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

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

[NestJS] Simplify NestJS integration with standalone build tool - #878

Draft
VaguelySerious wants to merge 8 commits into
mainfrom
peter/nestjs-v2
Draft

[NestJS] Simplify NestJS integration with standalone build tool#878
VaguelySerious wants to merge 8 commits into
mainfrom
peter/nestjs-v2

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member
  • Remove SWC peer dependencies (@swc/cli, @swc/core no longer required)
  • Add workflow-nest build command to build workflow bundles independently
  • Generate .workflow/client.js with workflow metadata for use with start()
  • Add workflow-nest dev command for watch mode
  • Update default output directory from .nestjs/workflow to .workflow
  • Deprecate workflow-nest init in favor of build command

BREAKING CHANGE: Users now import workflow metadata from .workflow/client.js instead of importing directly from workflow files. This allows NestJS to use any compiler (tsc, swc, or babel) without requiring SWC configuration.

…ld tool
- Remove SWC peer dependencies (@swc/cli, @swc/core no longer required)
- Add `workflow-nest build` command to build workflow bundles independently
- Generate `.workflow/client.js` with workflow metadata for use with start()
- Add `workflow-nest dev` command for watch mode
- Update default output directory from .nestjs/workflow to .workflow
- Deprecate `workflow-nest init` in favor of build command
BREAKING CHANGE: Users now import workflow metadata from `.workflow/client.js`
instead of importing directly from workflow files. This allows NestJS to use
any compiler (tsc, swc, or babel) without requiring SWC configuration.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@changeset-bot

changeset-botBot commented Jan 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 88e252a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel

vercelBot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentReviewUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 28, 2026 6:58am
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 28, 2026 6:58am
example-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-astro-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-express-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-fastify-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-hono-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-nitro-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-nuxt-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-vite-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workflow-nestReadyReadyPreview, CommentJan 28, 2026 6:58am
1 Skipped Deployment
ProjectDeploymentReviewUpdated (UTC)
workflow-docsSkippedSkippedJan 28, 2026 6:58am

@github-actions

github-actionsBot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production457038495
✅ 💻 Local Development418032450
✅ 📦 Local Production418032450
✅ 🐘 Local Postgres418032450
✅ 🪟 Windows450045
❌ 🌍 Community Worlds311610192
✅ 📋 Other123012135
Total19101611462217

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4104
✅ example4104
✅ express4104
✅ fastify4104
✅ hono4104
✅ nextjs-turbopack4401
✅ nextjs-webpack4401
✅ nitro4104
✅ nuxt4104
✅ sveltekit4104
✅ vite4104
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5400
✅ redis-dev300
❌ redis5400
✅ starter-dev300
❌ starter4410
✅ turso-dev300
❌ turso5400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4104
✅ e2e-local-postgres-nest-stable4104
✅ e2e-local-prod-nest-stable4104

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 28, 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🥇 Express0.030s (-29.3% 🟢)1.008s (~)0.978s101.00x
💻 LocalNext.js (Turbopack)0.041s (-0.7%)1.019s (~)0.978s101.36x
💻 LocalNitro0.045s (+53.8% 🔺)1.007s (~)0.962s101.49x
🐘 PostgresNext.js (Turbopack)0.164s (-58.3% 🟢)1.019s (~)0.855s105.46x
🐘 PostgresNitro0.252s (-3.6%)1.013s (~)0.761s108.37x
🐘 PostgresExpress0.475s (+58.7% 🔺)1.014s (~)0.540s1015.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.708s (+22.5% 🔺)1.680s (+15.1% 🔺)0.973s101.00x
▲ VercelNitro0.770s (+22.7% 🔺)1.732s (+11.4% 🔺)0.963s101.09x
▲ VercelNext.js (Turbopack)0.830s (+9.2% 🔺)1.880s (+22.5% 🔺)1.050s101.17x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.078s (-3.4%)2.008s (~)0.930s101.00x
💻 LocalNext.js (Turbopack)1.094s (-0.9%)2.012s (~)0.918s101.02x
💻 LocalNitro1.113s (+3.2%)2.006s (~)0.893s101.03x
🐘 PostgresNext.js (Turbopack)1.906s (-15.1% 🟢)2.120s (-29.8% 🟢)0.214s101.77x
🐘 PostgresNitro2.121s (~)3.013s (~)0.893s101.97x
🐘 PostgresExpress2.330s (+8.8% 🔺)3.014s (~)0.684s102.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.843s (-12.0% 🟢)3.758s (-6.0% 🟢)0.915s101.00x
▲ VercelNext.js (Turbopack)2.963s (+6.5% 🔺)3.885s (+9.4% 🔺)0.922s101.04x
▲ VercelNitro3.071s (+13.3% 🔺)4.437s (+23.2% 🔺)1.366s101.08x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.571s (-2.4%)11.015s (~)0.444s51.00x
💻 LocalNext.js (Turbopack)10.723s (~)11.023s (~)0.300s51.01x
💻 LocalNitro10.825s (+2.5%)11.016s (~)0.191s51.02x
🐘 PostgresNext.js (Turbopack)15.286s (~)16.033s (~)0.747s51.45x
🐘 PostgresExpress20.190s (-1.4%)21.038s (~)0.848s51.91x
🐘 PostgresNitro20.488s (~)21.028s (~)0.540s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro22.051s (-4.4%)22.855s (-3.9%)0.804s51.00x
▲ VercelExpress22.288s (+0.9%)23.451s (+2.9%)1.163s51.01x
▲ VercelNext.js (Turbopack)22.895s (+2.9%)23.790s (+4.1%)0.895s51.04x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.352s (-3.0%)2.011s (~)0.658s151.00x
💻 LocalExpress1.355s (-3.9%)2.007s (~)0.652s151.00x
💻 LocalNitro1.411s (+4.2%)2.006s (~)0.595s151.04x
🐘 PostgresNext.js (Turbopack)1.900s (+7.7% 🔺)2.643s (+31.2% 🔺)0.743s121.41x
🐘 PostgresNitro2.284s (+2.2%)3.012s (~)0.729s101.69x
🐘 PostgresExpress2.427s (+11.8% 🔺)3.012s (~)0.585s101.79x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.058s (+7.1% 🔺)3.972s (+8.3% 🔺)0.914s81.00x
▲ VercelNext.js (Turbopack)3.149s (+15.1% 🔺)4.022s (+11.8% 🔺)0.873s81.03x
▲ VercelNitro3.253s (+6.2% 🔺)4.106s (+0.5%)0.852s81.06x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.150s (-14.3% 🟢)3.084s (+1.8%)0.935s101.00x
💻 LocalNitro2.475s (+10.3% 🔺)3.028s (-5.9% 🟢)0.553s101.15x
💻 LocalNext.js (Turbopack)2.493s (+1.5%)3.023s (-0.8%)0.531s101.16x
🐘 PostgresNitro8.046s (+10.8% 🔺)8.525s (+5.7% 🔺)0.479s43.74x
🐘 PostgresExpress9.067s (+21.2% 🔺)9.571s (+18.8% 🔺)0.504s44.22x
🐘 PostgresNext.js (Turbopack)10.900s (-8.7% 🟢)11.421s (-7.8% 🟢)0.522s35.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.328s (-17.9% 🟢)4.201s (-11.2% 🟢)0.873s81.00x
▲ VercelExpress3.420s (-37.7% 🟢)4.138s (-32.5% 🟢)0.718s81.03x
▲ VercelNext.js (Turbopack)3.802s (+12.0% 🔺)4.796s (-20.5% 🟢)0.994s71.14x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.360s (-5.3% 🟢)2.006s (~)0.646s151.00x
💻 LocalNitro1.417s (+2.4%)2.006s (~)0.589s151.04x
💻 LocalNext.js (Turbopack)1.418s (+0.8%)2.012s (~)0.594s151.04x
🐘 PostgresNext.js (Turbopack)1.531s (-25.8% 🟢)2.015s (-19.8% 🟢)0.484s151.13x
🐘 PostgresNitro2.136s (+2.2%)2.924s (+22.0% 🔺)0.788s111.57x
🐘 PostgresExpress2.230s (+4.9%)2.739s (+8.7% 🔺)0.510s111.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.687s (-37.9% 🟢)3.660s (-27.4% 🟢)0.973s91.00x
▲ VercelNitro2.794s (-27.6% 🟢)3.761s (-21.4% 🟢)0.968s81.04x
▲ VercelNext.js (Turbopack)2.822s (-38.1% 🟢)3.808s (-29.4% 🟢)0.986s81.05x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.237s (-12.6% 🟢)3.219s (+6.7% 🔺)0.982s101.00x
💻 LocalNitro2.575s (+8.3% 🔺)3.022s (-9.0% 🟢)0.446s101.15x
💻 LocalNext.js (Turbopack)2.578s (~)3.020s (-0.6%)0.442s101.15x
🐘 PostgresExpress10.288s (-18.3% 🟢)10.687s (-18.2% 🟢)0.399s34.60x
🐘 PostgresNext.js (Turbopack)11.128s (-16.7% 🟢)11.700s (-16.7% 🟢)0.572s34.97x
🐘 PostgresNitro11.391s (+3.4%)11.701s (+2.7%)0.310s35.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.867s (-24.3% 🟢)3.593s (-18.0% 🟢)0.726s91.00x
▲ VercelNitro2.944s (-8.7% 🟢)3.818s (-4.7%)0.875s81.03x
▲ VercelNext.js (Turbopack)3.334s (-18.1% 🟢)4.158s (-11.8% 🟢)0.825s81.16x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.116s (-37.1% 🟢)1.000s (+0.8%)0.013s (-15.2% 🟢)1.021s (~)0.905s101.00x
💻 LocalNext.js (Turbopack)0.145s (-2.5%)1.003s (~)0.017s (-0.6%)1.028s (~)0.883s101.24x
💻 LocalNitro0.180s (+55.2% 🔺)0.993s (-0.7%)0.015s (+21.7% 🔺)1.021s (~)0.841s101.55x
🐘 PostgresNext.js (Turbopack)1.192s (-15.0% 🟢)1.856s (+8.6% 🔺)0.000s (+Infinity% 🔺)2.021s (~)0.829s1010.24x
🐘 PostgresNitro2.337s (~)2.704s (~)0.000s (-100.0% 🟢)3.014s (~)0.677s1020.08x
🐘 PostgresExpress2.434s (+6.2% 🔺)2.609s (-5.3% 🟢)0.000s (NaN%)3.015s (~)0.581s1020.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.914s (+1.2%)3.210s (~)0.612s (+48.7% 🔺)4.353s (+6.9% 🔺)1.439s101.00x
▲ VercelExpress2.969s (+2.8%)3.167s (+0.7%)0.703s (-3.2%)4.403s (+1.2%)1.433s101.02x
▲ VercelNext.js (Turbopack)2.973s (-1.6%)3.356s (+3.9%)0.570s (+23.2% 🔺)4.534s (+9.7% 🔺)1.562s101.02x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress7/8
🐘 PostgresNext.js (Turbopack)6/8
▲ VercelExpress5/8
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

@VaguelySeriousVaguelySerious changed the title feat(@workflow/nest): Simplify NestJS integration with standalone build tool[@workflow/nest] Simplify NestJS integration with standalone build toolJan 28, 2026

@vercelvercelBot 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.

Additional Suggestions:

  1. NestJS test configuration references incorrect .nestjs/workflow/ output directory paths instead of the updated .workflow/ paths.
  1. README documentation shows outdated .nestjs/workflow default directory and deprecated SWC-based workflow setup instructions.
Fix on Vercel

Comment threadpackages/nest/src/cli.ts
vercelBotand others added 2 commits January 28, 2026 05:34
…rectories without checking if they exist first, causing an unhandled ENOENT crash with an unhelpful error message.
Co-authored-by: VaguelySerious <mittgfu@gmail.com>
…/` output directory paths instead of the updated `.workflow/` paths.
Co-authored-by: VaguelySerious <mittgfu@gmail.com>
- Update test matrix paths from .nestjs/workflow to .workflow
- Add .swcrc to configure ESM output for NestJS with "type": "module"
- Handle duplicate workflow names in client.js generation by appending suffix
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
… compatibility
- Add byFile exports grouped by source file path for workbench registry
- Add findByFilename helper to match workflows by filename regardless of path prefix
- Handle duplicate workflow names with numeric suffixes
- Preserve dots in workflow names for class methods (e.g., Calculator.calculate)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
In client mode using byFile exports, workflows are keyed by their full
dot-notation name (e.g., 'Calculator.calculate') rather than being nested
under class constructors. Update the trigger endpoint to first try direct
lookup, then fall back to class-based lookup for traditional mode.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

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

[NestJS] Simplify NestJS integration with standalone build tool - #878

Draft
VaguelySerious wants to merge 8 commits into
mainfrom
peter/nestjs-v2
Draft

[NestJS] Simplify NestJS integration with standalone build tool#878
VaguelySerious wants to merge 8 commits into
mainfrom
peter/nestjs-v2

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member
  • Remove SWC peer dependencies (@swc/cli, @swc/core no longer required)
  • Add workflow-nest build command to build workflow bundles independently
  • Generate .workflow/client.js with workflow metadata for use with start()
  • Add workflow-nest dev command for watch mode
  • Update default output directory from .nestjs/workflow to .workflow
  • Deprecate workflow-nest init in favor of build command

BREAKING CHANGE: Users now import workflow metadata from .workflow/client.js instead of importing directly from workflow files. This allows NestJS to use any compiler (tsc, swc, or babel) without requiring SWC configuration.

…ld tool
- Remove SWC peer dependencies (@swc/cli, @swc/core no longer required)
- Add `workflow-nest build` command to build workflow bundles independently
- Generate `.workflow/client.js` with workflow metadata for use with start()
- Add `workflow-nest dev` command for watch mode
- Update default output directory from .nestjs/workflow to .workflow
- Deprecate `workflow-nest init` in favor of build command
BREAKING CHANGE: Users now import workflow metadata from `.workflow/client.js`
instead of importing directly from workflow files. This allows NestJS to use
any compiler (tsc, swc, or babel) without requiring SWC configuration.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@changeset-bot

changeset-botBot commented Jan 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 88e252a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel

vercelBot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentReviewUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 28, 2026 6:58am
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 28, 2026 6:58am
example-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-astro-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-express-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-fastify-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-hono-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-nitro-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-nuxt-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-vite-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workflow-nestReadyReadyPreview, CommentJan 28, 2026 6:58am
1 Skipped Deployment
ProjectDeploymentReviewUpdated (UTC)
workflow-docsSkippedSkippedJan 28, 2026 6:58am

@github-actions

github-actionsBot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production457038495
✅ 💻 Local Development418032450
✅ 📦 Local Production418032450
✅ 🐘 Local Postgres418032450
✅ 🪟 Windows450045
❌ 🌍 Community Worlds311610192
✅ 📋 Other123012135
Total19101611462217

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4104
✅ example4104
✅ express4104
✅ fastify4104
✅ hono4104
✅ nextjs-turbopack4401
✅ nextjs-webpack4401
✅ nitro4104
✅ nuxt4104
✅ sveltekit4104
✅ vite4104
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5400
✅ redis-dev300
❌ redis5400
✅ starter-dev300
❌ starter4410
✅ turso-dev300
❌ turso5400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4104
✅ e2e-local-postgres-nest-stable4104
✅ e2e-local-prod-nest-stable4104

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 28, 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🥇 Express0.030s (-29.3% 🟢)1.008s (~)0.978s101.00x
💻 LocalNext.js (Turbopack)0.041s (-0.7%)1.019s (~)0.978s101.36x
💻 LocalNitro0.045s (+53.8% 🔺)1.007s (~)0.962s101.49x
🐘 PostgresNext.js (Turbopack)0.164s (-58.3% 🟢)1.019s (~)0.855s105.46x
🐘 PostgresNitro0.252s (-3.6%)1.013s (~)0.761s108.37x
🐘 PostgresExpress0.475s (+58.7% 🔺)1.014s (~)0.540s1015.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.708s (+22.5% 🔺)1.680s (+15.1% 🔺)0.973s101.00x
▲ VercelNitro0.770s (+22.7% 🔺)1.732s (+11.4% 🔺)0.963s101.09x
▲ VercelNext.js (Turbopack)0.830s (+9.2% 🔺)1.880s (+22.5% 🔺)1.050s101.17x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.078s (-3.4%)2.008s (~)0.930s101.00x
💻 LocalNext.js (Turbopack)1.094s (-0.9%)2.012s (~)0.918s101.02x
💻 LocalNitro1.113s (+3.2%)2.006s (~)0.893s101.03x
🐘 PostgresNext.js (Turbopack)1.906s (-15.1% 🟢)2.120s (-29.8% 🟢)0.214s101.77x
🐘 PostgresNitro2.121s (~)3.013s (~)0.893s101.97x
🐘 PostgresExpress2.330s (+8.8% 🔺)3.014s (~)0.684s102.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.843s (-12.0% 🟢)3.758s (-6.0% 🟢)0.915s101.00x
▲ VercelNext.js (Turbopack)2.963s (+6.5% 🔺)3.885s (+9.4% 🔺)0.922s101.04x
▲ VercelNitro3.071s (+13.3% 🔺)4.437s (+23.2% 🔺)1.366s101.08x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.571s (-2.4%)11.015s (~)0.444s51.00x
💻 LocalNext.js (Turbopack)10.723s (~)11.023s (~)0.300s51.01x
💻 LocalNitro10.825s (+2.5%)11.016s (~)0.191s51.02x
🐘 PostgresNext.js (Turbopack)15.286s (~)16.033s (~)0.747s51.45x
🐘 PostgresExpress20.190s (-1.4%)21.038s (~)0.848s51.91x
🐘 PostgresNitro20.488s (~)21.028s (~)0.540s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro22.051s (-4.4%)22.855s (-3.9%)0.804s51.00x
▲ VercelExpress22.288s (+0.9%)23.451s (+2.9%)1.163s51.01x
▲ VercelNext.js (Turbopack)22.895s (+2.9%)23.790s (+4.1%)0.895s51.04x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.352s (-3.0%)2.011s (~)0.658s151.00x
💻 LocalExpress1.355s (-3.9%)2.007s (~)0.652s151.00x
💻 LocalNitro1.411s (+4.2%)2.006s (~)0.595s151.04x
🐘 PostgresNext.js (Turbopack)1.900s (+7.7% 🔺)2.643s (+31.2% 🔺)0.743s121.41x
🐘 PostgresNitro2.284s (+2.2%)3.012s (~)0.729s101.69x
🐘 PostgresExpress2.427s (+11.8% 🔺)3.012s (~)0.585s101.79x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.058s (+7.1% 🔺)3.972s (+8.3% 🔺)0.914s81.00x
▲ VercelNext.js (Turbopack)3.149s (+15.1% 🔺)4.022s (+11.8% 🔺)0.873s81.03x
▲ VercelNitro3.253s (+6.2% 🔺)4.106s (+0.5%)0.852s81.06x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.150s (-14.3% 🟢)3.084s (+1.8%)0.935s101.00x
💻 LocalNitro2.475s (+10.3% 🔺)3.028s (-5.9% 🟢)0.553s101.15x
💻 LocalNext.js (Turbopack)2.493s (+1.5%)3.023s (-0.8%)0.531s101.16x
🐘 PostgresNitro8.046s (+10.8% 🔺)8.525s (+5.7% 🔺)0.479s43.74x
🐘 PostgresExpress9.067s (+21.2% 🔺)9.571s (+18.8% 🔺)0.504s44.22x
🐘 PostgresNext.js (Turbopack)10.900s (-8.7% 🟢)11.421s (-7.8% 🟢)0.522s35.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.328s (-17.9% 🟢)4.201s (-11.2% 🟢)0.873s81.00x
▲ VercelExpress3.420s (-37.7% 🟢)4.138s (-32.5% 🟢)0.718s81.03x
▲ VercelNext.js (Turbopack)3.802s (+12.0% 🔺)4.796s (-20.5% 🟢)0.994s71.14x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.360s (-5.3% 🟢)2.006s (~)0.646s151.00x
💻 LocalNitro1.417s (+2.4%)2.006s (~)0.589s151.04x
💻 LocalNext.js (Turbopack)1.418s (+0.8%)2.012s (~)0.594s151.04x
🐘 PostgresNext.js (Turbopack)1.531s (-25.8% 🟢)2.015s (-19.8% 🟢)0.484s151.13x
🐘 PostgresNitro2.136s (+2.2%)2.924s (+22.0% 🔺)0.788s111.57x
🐘 PostgresExpress2.230s (+4.9%)2.739s (+8.7% 🔺)0.510s111.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.687s (-37.9% 🟢)3.660s (-27.4% 🟢)0.973s91.00x
▲ VercelNitro2.794s (-27.6% 🟢)3.761s (-21.4% 🟢)0.968s81.04x
▲ VercelNext.js (Turbopack)2.822s (-38.1% 🟢)3.808s (-29.4% 🟢)0.986s81.05x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.237s (-12.6% 🟢)3.219s (+6.7% 🔺)0.982s101.00x
💻 LocalNitro2.575s (+8.3% 🔺)3.022s (-9.0% 🟢)0.446s101.15x
💻 LocalNext.js (Turbopack)2.578s (~)3.020s (-0.6%)0.442s101.15x
🐘 PostgresExpress10.288s (-18.3% 🟢)10.687s (-18.2% 🟢)0.399s34.60x
🐘 PostgresNext.js (Turbopack)11.128s (-16.7% 🟢)11.700s (-16.7% 🟢)0.572s34.97x
🐘 PostgresNitro11.391s (+3.4%)11.701s (+2.7%)0.310s35.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.867s (-24.3% 🟢)3.593s (-18.0% 🟢)0.726s91.00x
▲ VercelNitro2.944s (-8.7% 🟢)3.818s (-4.7%)0.875s81.03x
▲ VercelNext.js (Turbopack)3.334s (-18.1% 🟢)4.158s (-11.8% 🟢)0.825s81.16x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.116s (-37.1% 🟢)1.000s (+0.8%)0.013s (-15.2% 🟢)1.021s (~)0.905s101.00x
💻 LocalNext.js (Turbopack)0.145s (-2.5%)1.003s (~)0.017s (-0.6%)1.028s (~)0.883s101.24x
💻 LocalNitro0.180s (+55.2% 🔺)0.993s (-0.7%)0.015s (+21.7% 🔺)1.021s (~)0.841s101.55x
🐘 PostgresNext.js (Turbopack)1.192s (-15.0% 🟢)1.856s (+8.6% 🔺)0.000s (+Infinity% 🔺)2.021s (~)0.829s1010.24x
🐘 PostgresNitro2.337s (~)2.704s (~)0.000s (-100.0% 🟢)3.014s (~)0.677s1020.08x
🐘 PostgresExpress2.434s (+6.2% 🔺)2.609s (-5.3% 🟢)0.000s (NaN%)3.015s (~)0.581s1020.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.914s (+1.2%)3.210s (~)0.612s (+48.7% 🔺)4.353s (+6.9% 🔺)1.439s101.00x
▲ VercelExpress2.969s (+2.8%)3.167s (+0.7%)0.703s (-3.2%)4.403s (+1.2%)1.433s101.02x
▲ VercelNext.js (Turbopack)2.973s (-1.6%)3.356s (+3.9%)0.570s (+23.2% 🔺)4.534s (+9.7% 🔺)1.562s101.02x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress7/8
🐘 PostgresNext.js (Turbopack)6/8
▲ VercelExpress5/8
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

@VaguelySeriousVaguelySerious changed the title feat(@workflow/nest): Simplify NestJS integration with standalone build tool[@workflow/nest] Simplify NestJS integration with standalone build toolJan 28, 2026

@vercelvercelBot 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.

Additional Suggestions:

  1. NestJS test configuration references incorrect .nestjs/workflow/ output directory paths instead of the updated .workflow/ paths.
  1. README documentation shows outdated .nestjs/workflow default directory and deprecated SWC-based workflow setup instructions.
Fix on Vercel

Comment threadpackages/nest/src/cli.ts
vercelBotand others added 2 commits January 28, 2026 05:34
…rectories without checking if they exist first, causing an unhandled ENOENT crash with an unhelpful error message.
Co-authored-by: VaguelySerious <mittgfu@gmail.com>
…/` output directory paths instead of the updated `.workflow/` paths.
Co-authored-by: VaguelySerious <mittgfu@gmail.com>
- Update test matrix paths from .nestjs/workflow to .workflow
- Add .swcrc to configure ESM output for NestJS with "type": "module"
- Handle duplicate workflow names in client.js generation by appending suffix
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
… compatibility
- Add byFile exports grouped by source file path for workbench registry
- Add findByFilename helper to match workflows by filename regardless of path prefix
- Handle duplicate workflow names with numeric suffixes
- Preserve dots in workflow names for class methods (e.g., Calculator.calculate)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
In client mode using byFile exports, workflows are keyed by their full
dot-notation name (e.g., 'Calculator.calculate') rather than being nested
under class constructors. Update the trigger endpoint to first try direct
lookup, then fall back to class-based lookup for traditional mode.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

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

[NestJS] Simplify NestJS integration with standalone build tool - #878

Draft
VaguelySerious wants to merge 8 commits into
mainfrom
peter/nestjs-v2
Draft

[NestJS] Simplify NestJS integration with standalone build tool#878
VaguelySerious wants to merge 8 commits into
mainfrom
peter/nestjs-v2

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member
  • Remove SWC peer dependencies (@swc/cli, @swc/core no longer required)
  • Add workflow-nest build command to build workflow bundles independently
  • Generate .workflow/client.js with workflow metadata for use with start()
  • Add workflow-nest dev command for watch mode
  • Update default output directory from .nestjs/workflow to .workflow
  • Deprecate workflow-nest init in favor of build command

BREAKING CHANGE: Users now import workflow metadata from .workflow/client.js instead of importing directly from workflow files. This allows NestJS to use any compiler (tsc, swc, or babel) without requiring SWC configuration.

…ld tool
- Remove SWC peer dependencies (@swc/cli, @swc/core no longer required)
- Add `workflow-nest build` command to build workflow bundles independently
- Generate `.workflow/client.js` with workflow metadata for use with start()
- Add `workflow-nest dev` command for watch mode
- Update default output directory from .nestjs/workflow to .workflow
- Deprecate `workflow-nest init` in favor of build command
BREAKING CHANGE: Users now import workflow metadata from `.workflow/client.js`
instead of importing directly from workflow files. This allows NestJS to use
any compiler (tsc, swc, or babel) without requiring SWC configuration.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@changeset-bot

changeset-botBot commented Jan 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 88e252a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel

vercelBot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentReviewUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 28, 2026 6:58am
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 28, 2026 6:58am
example-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-astro-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-express-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-fastify-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-hono-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-nitro-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-nuxt-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-vite-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workflow-nestReadyReadyPreview, CommentJan 28, 2026 6:58am
1 Skipped Deployment
ProjectDeploymentReviewUpdated (UTC)
workflow-docsSkippedSkippedJan 28, 2026 6:58am

@github-actions

github-actionsBot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production457038495
✅ 💻 Local Development418032450
✅ 📦 Local Production418032450
✅ 🐘 Local Postgres418032450
✅ 🪟 Windows450045
❌ 🌍 Community Worlds311610192
✅ 📋 Other123012135
Total19101611462217

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4104
✅ example4104
✅ express4104
✅ fastify4104
✅ hono4104
✅ nextjs-turbopack4401
✅ nextjs-webpack4401
✅ nitro4104
✅ nuxt4104
✅ sveltekit4104
✅ vite4104
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5400
✅ redis-dev300
❌ redis5400
✅ starter-dev300
❌ starter4410
✅ turso-dev300
❌ turso5400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4104
✅ e2e-local-postgres-nest-stable4104
✅ e2e-local-prod-nest-stable4104

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 28, 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🥇 Express0.030s (-29.3% 🟢)1.008s (~)0.978s101.00x
💻 LocalNext.js (Turbopack)0.041s (-0.7%)1.019s (~)0.978s101.36x
💻 LocalNitro0.045s (+53.8% 🔺)1.007s (~)0.962s101.49x
🐘 PostgresNext.js (Turbopack)0.164s (-58.3% 🟢)1.019s (~)0.855s105.46x
🐘 PostgresNitro0.252s (-3.6%)1.013s (~)0.761s108.37x
🐘 PostgresExpress0.475s (+58.7% 🔺)1.014s (~)0.540s1015.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.708s (+22.5% 🔺)1.680s (+15.1% 🔺)0.973s101.00x
▲ VercelNitro0.770s (+22.7% 🔺)1.732s (+11.4% 🔺)0.963s101.09x
▲ VercelNext.js (Turbopack)0.830s (+9.2% 🔺)1.880s (+22.5% 🔺)1.050s101.17x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.078s (-3.4%)2.008s (~)0.930s101.00x
💻 LocalNext.js (Turbopack)1.094s (-0.9%)2.012s (~)0.918s101.02x
💻 LocalNitro1.113s (+3.2%)2.006s (~)0.893s101.03x
🐘 PostgresNext.js (Turbopack)1.906s (-15.1% 🟢)2.120s (-29.8% 🟢)0.214s101.77x
🐘 PostgresNitro2.121s (~)3.013s (~)0.893s101.97x
🐘 PostgresExpress2.330s (+8.8% 🔺)3.014s (~)0.684s102.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.843s (-12.0% 🟢)3.758s (-6.0% 🟢)0.915s101.00x
▲ VercelNext.js (Turbopack)2.963s (+6.5% 🔺)3.885s (+9.4% 🔺)0.922s101.04x
▲ VercelNitro3.071s (+13.3% 🔺)4.437s (+23.2% 🔺)1.366s101.08x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.571s (-2.4%)11.015s (~)0.444s51.00x
💻 LocalNext.js (Turbopack)10.723s (~)11.023s (~)0.300s51.01x
💻 LocalNitro10.825s (+2.5%)11.016s (~)0.191s51.02x
🐘 PostgresNext.js (Turbopack)15.286s (~)16.033s (~)0.747s51.45x
🐘 PostgresExpress20.190s (-1.4%)21.038s (~)0.848s51.91x
🐘 PostgresNitro20.488s (~)21.028s (~)0.540s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro22.051s (-4.4%)22.855s (-3.9%)0.804s51.00x
▲ VercelExpress22.288s (+0.9%)23.451s (+2.9%)1.163s51.01x
▲ VercelNext.js (Turbopack)22.895s (+2.9%)23.790s (+4.1%)0.895s51.04x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.352s (-3.0%)2.011s (~)0.658s151.00x
💻 LocalExpress1.355s (-3.9%)2.007s (~)0.652s151.00x
💻 LocalNitro1.411s (+4.2%)2.006s (~)0.595s151.04x
🐘 PostgresNext.js (Turbopack)1.900s (+7.7% 🔺)2.643s (+31.2% 🔺)0.743s121.41x
🐘 PostgresNitro2.284s (+2.2%)3.012s (~)0.729s101.69x
🐘 PostgresExpress2.427s (+11.8% 🔺)3.012s (~)0.585s101.79x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.058s (+7.1% 🔺)3.972s (+8.3% 🔺)0.914s81.00x
▲ VercelNext.js (Turbopack)3.149s (+15.1% 🔺)4.022s (+11.8% 🔺)0.873s81.03x
▲ VercelNitro3.253s (+6.2% 🔺)4.106s (+0.5%)0.852s81.06x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.150s (-14.3% 🟢)3.084s (+1.8%)0.935s101.00x
💻 LocalNitro2.475s (+10.3% 🔺)3.028s (-5.9% 🟢)0.553s101.15x
💻 LocalNext.js (Turbopack)2.493s (+1.5%)3.023s (-0.8%)0.531s101.16x
🐘 PostgresNitro8.046s (+10.8% 🔺)8.525s (+5.7% 🔺)0.479s43.74x
🐘 PostgresExpress9.067s (+21.2% 🔺)9.571s (+18.8% 🔺)0.504s44.22x
🐘 PostgresNext.js (Turbopack)10.900s (-8.7% 🟢)11.421s (-7.8% 🟢)0.522s35.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.328s (-17.9% 🟢)4.201s (-11.2% 🟢)0.873s81.00x
▲ VercelExpress3.420s (-37.7% 🟢)4.138s (-32.5% 🟢)0.718s81.03x
▲ VercelNext.js (Turbopack)3.802s (+12.0% 🔺)4.796s (-20.5% 🟢)0.994s71.14x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.360s (-5.3% 🟢)2.006s (~)0.646s151.00x
💻 LocalNitro1.417s (+2.4%)2.006s (~)0.589s151.04x
💻 LocalNext.js (Turbopack)1.418s (+0.8%)2.012s (~)0.594s151.04x
🐘 PostgresNext.js (Turbopack)1.531s (-25.8% 🟢)2.015s (-19.8% 🟢)0.484s151.13x
🐘 PostgresNitro2.136s (+2.2%)2.924s (+22.0% 🔺)0.788s111.57x
🐘 PostgresExpress2.230s (+4.9%)2.739s (+8.7% 🔺)0.510s111.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.687s (-37.9% 🟢)3.660s (-27.4% 🟢)0.973s91.00x
▲ VercelNitro2.794s (-27.6% 🟢)3.761s (-21.4% 🟢)0.968s81.04x
▲ VercelNext.js (Turbopack)2.822s (-38.1% 🟢)3.808s (-29.4% 🟢)0.986s81.05x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.237s (-12.6% 🟢)3.219s (+6.7% 🔺)0.982s101.00x
💻 LocalNitro2.575s (+8.3% 🔺)3.022s (-9.0% 🟢)0.446s101.15x
💻 LocalNext.js (Turbopack)2.578s (~)3.020s (-0.6%)0.442s101.15x
🐘 PostgresExpress10.288s (-18.3% 🟢)10.687s (-18.2% 🟢)0.399s34.60x
🐘 PostgresNext.js (Turbopack)11.128s (-16.7% 🟢)11.700s (-16.7% 🟢)0.572s34.97x
🐘 PostgresNitro11.391s (+3.4%)11.701s (+2.7%)0.310s35.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.867s (-24.3% 🟢)3.593s (-18.0% 🟢)0.726s91.00x
▲ VercelNitro2.944s (-8.7% 🟢)3.818s (-4.7%)0.875s81.03x
▲ VercelNext.js (Turbopack)3.334s (-18.1% 🟢)4.158s (-11.8% 🟢)0.825s81.16x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.116s (-37.1% 🟢)1.000s (+0.8%)0.013s (-15.2% 🟢)1.021s (~)0.905s101.00x
💻 LocalNext.js (Turbopack)0.145s (-2.5%)1.003s (~)0.017s (-0.6%)1.028s (~)0.883s101.24x
💻 LocalNitro0.180s (+55.2% 🔺)0.993s (-0.7%)0.015s (+21.7% 🔺)1.021s (~)0.841s101.55x
🐘 PostgresNext.js (Turbopack)1.192s (-15.0% 🟢)1.856s (+8.6% 🔺)0.000s (+Infinity% 🔺)2.021s (~)0.829s1010.24x
🐘 PostgresNitro2.337s (~)2.704s (~)0.000s (-100.0% 🟢)3.014s (~)0.677s1020.08x
🐘 PostgresExpress2.434s (+6.2% 🔺)2.609s (-5.3% 🟢)0.000s (NaN%)3.015s (~)0.581s1020.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.914s (+1.2%)3.210s (~)0.612s (+48.7% 🔺)4.353s (+6.9% 🔺)1.439s101.00x
▲ VercelExpress2.969s (+2.8%)3.167s (+0.7%)0.703s (-3.2%)4.403s (+1.2%)1.433s101.02x
▲ VercelNext.js (Turbopack)2.973s (-1.6%)3.356s (+3.9%)0.570s (+23.2% 🔺)4.534s (+9.7% 🔺)1.562s101.02x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress7/8
🐘 PostgresNext.js (Turbopack)6/8
▲ VercelExpress5/8
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

@VaguelySeriousVaguelySerious changed the title feat(@workflow/nest): Simplify NestJS integration with standalone build tool[@workflow/nest] Simplify NestJS integration with standalone build toolJan 28, 2026

@vercelvercelBot 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.

Additional Suggestions:

  1. NestJS test configuration references incorrect .nestjs/workflow/ output directory paths instead of the updated .workflow/ paths.
  1. README documentation shows outdated .nestjs/workflow default directory and deprecated SWC-based workflow setup instructions.
Fix on Vercel

Comment threadpackages/nest/src/cli.ts
vercelBotand others added 2 commits January 28, 2026 05:34
…rectories without checking if they exist first, causing an unhandled ENOENT crash with an unhelpful error message.
Co-authored-by: VaguelySerious <mittgfu@gmail.com>
…/` output directory paths instead of the updated `.workflow/` paths.
Co-authored-by: VaguelySerious <mittgfu@gmail.com>
- Update test matrix paths from .nestjs/workflow to .workflow
- Add .swcrc to configure ESM output for NestJS with "type": "module"
- Handle duplicate workflow names in client.js generation by appending suffix
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
… compatibility
- Add byFile exports grouped by source file path for workbench registry
- Add findByFilename helper to match workflows by filename regardless of path prefix
- Handle duplicate workflow names with numeric suffixes
- Preserve dots in workflow names for class methods (e.g., Calculator.calculate)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
In client mode using byFile exports, workflows are keyed by their full
dot-notation name (e.g., 'Calculator.calculate') rather than being nested
under class constructors. Update the trigger endpoint to first try direct
lookup, then fall back to class-based lookup for traditional mode.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })(); [NestJS] Simplify NestJS integration with standalone build tool by VaguelySerious · Pull Request #878 · vercel/workflow · GitHub
Skip to content

[NestJS] Simplify NestJS integration with standalone build tool - #878

Draft
VaguelySerious wants to merge 8 commits into
mainfrom
peter/nestjs-v2
Draft

[NestJS] Simplify NestJS integration with standalone build tool#878
VaguelySerious wants to merge 8 commits into
mainfrom
peter/nestjs-v2

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member
  • Remove SWC peer dependencies (@swc/cli, @swc/core no longer required)
  • Add workflow-nest build command to build workflow bundles independently
  • Generate .workflow/client.js with workflow metadata for use with start()
  • Add workflow-nest dev command for watch mode
  • Update default output directory from .nestjs/workflow to .workflow
  • Deprecate workflow-nest init in favor of build command

BREAKING CHANGE: Users now import workflow metadata from .workflow/client.js instead of importing directly from workflow files. This allows NestJS to use any compiler (tsc, swc, or babel) without requiring SWC configuration.

…ld tool
- Remove SWC peer dependencies (@swc/cli, @swc/core no longer required)
- Add `workflow-nest build` command to build workflow bundles independently
- Generate `.workflow/client.js` with workflow metadata for use with start()
- Add `workflow-nest dev` command for watch mode
- Update default output directory from .nestjs/workflow to .workflow
- Deprecate `workflow-nest init` in favor of build command
BREAKING CHANGE: Users now import workflow metadata from `.workflow/client.js`
instead of importing directly from workflow files. This allows NestJS to use
any compiler (tsc, swc, or babel) without requiring SWC configuration.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@changeset-bot

changeset-botBot commented Jan 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 88e252a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel

vercelBot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentReviewUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 28, 2026 6:58am
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 28, 2026 6:58am
example-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-astro-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-express-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-fastify-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-hono-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-nitro-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-nuxt-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workbench-vite-workflowReadyReadyPreview, CommentJan 28, 2026 6:58am
workflow-nestReadyReadyPreview, CommentJan 28, 2026 6:58am
1 Skipped Deployment
ProjectDeploymentReviewUpdated (UTC)
workflow-docsSkippedSkippedJan 28, 2026 6:58am

@github-actions

github-actionsBot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production457038495
✅ 💻 Local Development418032450
✅ 📦 Local Production418032450
✅ 🐘 Local Postgres418032450
✅ 🪟 Windows450045
❌ 🌍 Community Worlds311610192
✅ 📋 Other123012135
Total19101611462217

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4104
✅ example4104
✅ express4104
✅ fastify4104
✅ hono4104
✅ nextjs-turbopack4401
✅ nextjs-webpack4401
✅ nitro4104
✅ nuxt4104
✅ sveltekit4104
✅ vite4104
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5400
✅ redis-dev300
❌ redis5400
✅ starter-dev300
❌ starter4410
✅ turso-dev300
❌ turso5400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4104
✅ e2e-local-postgres-nest-stable4104
✅ e2e-local-prod-nest-stable4104

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 28, 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🥇 Express0.030s (-29.3% 🟢)1.008s (~)0.978s101.00x
💻 LocalNext.js (Turbopack)0.041s (-0.7%)1.019s (~)0.978s101.36x
💻 LocalNitro0.045s (+53.8% 🔺)1.007s (~)0.962s101.49x
🐘 PostgresNext.js (Turbopack)0.164s (-58.3% 🟢)1.019s (~)0.855s105.46x
🐘 PostgresNitro0.252s (-3.6%)1.013s (~)0.761s108.37x
🐘 PostgresExpress0.475s (+58.7% 🔺)1.014s (~)0.540s1015.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.708s (+22.5% 🔺)1.680s (+15.1% 🔺)0.973s101.00x
▲ VercelNitro0.770s (+22.7% 🔺)1.732s (+11.4% 🔺)0.963s101.09x
▲ VercelNext.js (Turbopack)0.830s (+9.2% 🔺)1.880s (+22.5% 🔺)1.050s101.17x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.078s (-3.4%)2.008s (~)0.930s101.00x
💻 LocalNext.js (Turbopack)1.094s (-0.9%)2.012s (~)0.918s101.02x
💻 LocalNitro1.113s (+3.2%)2.006s (~)0.893s101.03x
🐘 PostgresNext.js (Turbopack)1.906s (-15.1% 🟢)2.120s (-29.8% 🟢)0.214s101.77x
🐘 PostgresNitro2.121s (~)3.013s (~)0.893s101.97x
🐘 PostgresExpress2.330s (+8.8% 🔺)3.014s (~)0.684s102.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.843s (-12.0% 🟢)3.758s (-6.0% 🟢)0.915s101.00x
▲ VercelNext.js (Turbopack)2.963s (+6.5% 🔺)3.885s (+9.4% 🔺)0.922s101.04x
▲ VercelNitro3.071s (+13.3% 🔺)4.437s (+23.2% 🔺)1.366s101.08x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.571s (-2.4%)11.015s (~)0.444s51.00x
💻 LocalNext.js (Turbopack)10.723s (~)11.023s (~)0.300s51.01x
💻 LocalNitro10.825s (+2.5%)11.016s (~)0.191s51.02x
🐘 PostgresNext.js (Turbopack)15.286s (~)16.033s (~)0.747s51.45x
🐘 PostgresExpress20.190s (-1.4%)21.038s (~)0.848s51.91x
🐘 PostgresNitro20.488s (~)21.028s (~)0.540s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro22.051s (-4.4%)22.855s (-3.9%)0.804s51.00x
▲ VercelExpress22.288s (+0.9%)23.451s (+2.9%)1.163s51.01x
▲ VercelNext.js (Turbopack)22.895s (+2.9%)23.790s (+4.1%)0.895s51.04x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.352s (-3.0%)2.011s (~)0.658s151.00x
💻 LocalExpress1.355s (-3.9%)2.007s (~)0.652s151.00x
💻 LocalNitro1.411s (+4.2%)2.006s (~)0.595s151.04x
🐘 PostgresNext.js (Turbopack)1.900s (+7.7% 🔺)2.643s (+31.2% 🔺)0.743s121.41x
🐘 PostgresNitro2.284s (+2.2%)3.012s (~)0.729s101.69x
🐘 PostgresExpress2.427s (+11.8% 🔺)3.012s (~)0.585s101.79x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.058s (+7.1% 🔺)3.972s (+8.3% 🔺)0.914s81.00x
▲ VercelNext.js (Turbopack)3.149s (+15.1% 🔺)4.022s (+11.8% 🔺)0.873s81.03x
▲ VercelNitro3.253s (+6.2% 🔺)4.106s (+0.5%)0.852s81.06x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.150s (-14.3% 🟢)3.084s (+1.8%)0.935s101.00x
💻 LocalNitro2.475s (+10.3% 🔺)3.028s (-5.9% 🟢)0.553s101.15x
💻 LocalNext.js (Turbopack)2.493s (+1.5%)3.023s (-0.8%)0.531s101.16x
🐘 PostgresNitro8.046s (+10.8% 🔺)8.525s (+5.7% 🔺)0.479s43.74x
🐘 PostgresExpress9.067s (+21.2% 🔺)9.571s (+18.8% 🔺)0.504s44.22x
🐘 PostgresNext.js (Turbopack)10.900s (-8.7% 🟢)11.421s (-7.8% 🟢)0.522s35.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.328s (-17.9% 🟢)4.201s (-11.2% 🟢)0.873s81.00x
▲ VercelExpress3.420s (-37.7% 🟢)4.138s (-32.5% 🟢)0.718s81.03x
▲ VercelNext.js (Turbopack)3.802s (+12.0% 🔺)4.796s (-20.5% 🟢)0.994s71.14x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.360s (-5.3% 🟢)2.006s (~)0.646s151.00x
💻 LocalNitro1.417s (+2.4%)2.006s (~)0.589s151.04x
💻 LocalNext.js (Turbopack)1.418s (+0.8%)2.012s (~)0.594s151.04x
🐘 PostgresNext.js (Turbopack)1.531s (-25.8% 🟢)2.015s (-19.8% 🟢)0.484s151.13x
🐘 PostgresNitro2.136s (+2.2%)2.924s (+22.0% 🔺)0.788s111.57x
🐘 PostgresExpress2.230s (+4.9%)2.739s (+8.7% 🔺)0.510s111.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.687s (-37.9% 🟢)3.660s (-27.4% 🟢)0.973s91.00x
▲ VercelNitro2.794s (-27.6% 🟢)3.761s (-21.4% 🟢)0.968s81.04x
▲ VercelNext.js (Turbopack)2.822s (-38.1% 🟢)3.808s (-29.4% 🟢)0.986s81.05x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.237s (-12.6% 🟢)3.219s (+6.7% 🔺)0.982s101.00x
💻 LocalNitro2.575s (+8.3% 🔺)3.022s (-9.0% 🟢)0.446s101.15x
💻 LocalNext.js (Turbopack)2.578s (~)3.020s (-0.6%)0.442s101.15x
🐘 PostgresExpress10.288s (-18.3% 🟢)10.687s (-18.2% 🟢)0.399s34.60x
🐘 PostgresNext.js (Turbopack)11.128s (-16.7% 🟢)11.700s (-16.7% 🟢)0.572s34.97x
🐘 PostgresNitro11.391s (+3.4%)11.701s (+2.7%)0.310s35.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.867s (-24.3% 🟢)3.593s (-18.0% 🟢)0.726s91.00x
▲ VercelNitro2.944s (-8.7% 🟢)3.818s (-4.7%)0.875s81.03x
▲ VercelNext.js (Turbopack)3.334s (-18.1% 🟢)4.158s (-11.8% 🟢)0.825s81.16x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.116s (-37.1% 🟢)1.000s (+0.8%)0.013s (-15.2% 🟢)1.021s (~)0.905s101.00x
💻 LocalNext.js (Turbopack)0.145s (-2.5%)1.003s (~)0.017s (-0.6%)1.028s (~)0.883s101.24x
💻 LocalNitro0.180s (+55.2% 🔺)0.993s (-0.7%)0.015s (+21.7% 🔺)1.021s (~)0.841s101.55x
🐘 PostgresNext.js (Turbopack)1.192s (-15.0% 🟢)1.856s (+8.6% 🔺)0.000s (+Infinity% 🔺)2.021s (~)0.829s1010.24x
🐘 PostgresNitro2.337s (~)2.704s (~)0.000s (-100.0% 🟢)3.014s (~)0.677s1020.08x
🐘 PostgresExpress2.434s (+6.2% 🔺)2.609s (-5.3% 🟢)0.000s (NaN%)3.015s (~)0.581s1020.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.914s (+1.2%)3.210s (~)0.612s (+48.7% 🔺)4.353s (+6.9% 🔺)1.439s101.00x
▲ VercelExpress2.969s (+2.8%)3.167s (+0.7%)0.703s (-3.2%)4.403s (+1.2%)1.433s101.02x
▲ VercelNext.js (Turbopack)2.973s (-1.6%)3.356s (+3.9%)0.570s (+23.2% 🔺)4.534s (+9.7% 🔺)1.562s101.02x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress7/8
🐘 PostgresNext.js (Turbopack)6/8
▲ VercelExpress5/8
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

@VaguelySeriousVaguelySerious changed the title feat(@workflow/nest): Simplify NestJS integration with standalone build tool[@workflow/nest] Simplify NestJS integration with standalone build toolJan 28, 2026

@vercelvercelBot 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.

Additional Suggestions:

  1. NestJS test configuration references incorrect .nestjs/workflow/ output directory paths instead of the updated .workflow/ paths.
  1. README documentation shows outdated .nestjs/workflow default directory and deprecated SWC-based workflow setup instructions.
Fix on Vercel

Comment threadpackages/nest/src/cli.ts
vercelBotand others added 2 commits January 28, 2026 05:34
…rectories without checking if they exist first, causing an unhandled ENOENT crash with an unhelpful error message.
Co-authored-by: VaguelySerious <mittgfu@gmail.com>
…/` output directory paths instead of the updated `.workflow/` paths.
Co-authored-by: VaguelySerious <mittgfu@gmail.com>
- Update test matrix paths from .nestjs/workflow to .workflow
- Add .swcrc to configure ESM output for NestJS with "type": "module"
- Handle duplicate workflow names in client.js generation by appending suffix
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
… compatibility
- Add byFile exports grouped by source file path for workbench registry
- Add findByFilename helper to match workflows by filename regardless of path prefix
- Handle duplicate workflow names with numeric suffixes
- Preserve dots in workflow names for class methods (e.g., Calculator.calculate)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
In client mode using byFile exports, workflows are keyed by their full
dot-notation name (e.g., 'Calculator.calculate') rather than being nested
under class constructors. Update the trigger endpoint to first try direct
lookup, then fall back to class-based lookup for traditional mode.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@VaguelySerious