Skip to content

New and improved manifest.json format - #902

Open
TooTallNate wants to merge 4 commits into
mainfrom
01-30-new_and_improved_manifest.json_format
Open

New and improved manifest.json format#902
TooTallNate wants to merge 4 commits into
mainfrom
01-30-new_and_improved_manifest.json_format

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Jan 30, 2026

Copy link
Copy Markdown
Member

Overview

The manifest.json format has been inverted from a file-path-keyed structure to an ID-keyed structure. This makes it easier to look up entries by their ID and allows manifest entries to be passed directly to APIs like start().

Old Format (file-path-keyed)

{
steps: {
workflows/addition.ts: {
add: {
stepId: step//./workflows/addition//add
}
}
},
workflows: {
workflows/addition.ts: {
addition: {
workflowId: workflow//./workflows/addition//addition
}
}
}
}

New Format (ID-keyed)

{
steps: {
step//./workflows/addition//add: {
stepId: step//./workflows/addition//add,
name: add,
exports: {
default: workflows/addition.ts,
workflow: workflows/addition.ts
}
}
},
workflows: {
workflow//./workflows/addition//addition: {
workflowId: workflow//./workflows/addition//addition,
name: addition,
exports: {
default: workflows/addition.ts,
workflow: workflows/addition.ts
},
graph: {
nodes: [],
edges: []
}
}
},
classes: {
class//./utils/point//Point: {
classId: class//./utils/point//Point,
name: Point,
exports: {
default: utils/point.ts,
workflow: utils/point.ts
}
}
}
}

Key Changes

AspectOld FormatNew Format
Primary keyFile pathFull ID (e.g., step//./path//name)
Secondary keyFunction/class nameN/A (flat structure)
ID fieldOnly field in entryIncluded alongside other fields
Name fieldUsed as keyExplicit name field
Source/exportsNot includedexports object with condition keys

Benefits

  1. Direct API usage: Manifest entries can be passed directly to start() since they include workflowId
  2. O(1) lookups: Find any entry by ID without iterating through file paths
  3. Export conditions: The exports object maps bundle conditions (default, workflow) to source files
  4. Self-describing: Each entry contains its own ID, making entries portable and self-contained

Migration Notes

Code that previously accessed the manifest like this:

// Old formatconstworkflow=manifest.workflows[filePath][functionName];constid=workflow.workflowId;

Should now use:

// New format - direct lookup by IDconstworkflow=manifest.workflows[workflowId];// Or find by nameconstworkflow=Object.values(manifest.workflows).find(w=>w.name===functionName);

@changeset-bot

changeset-botBot commented Jan 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e5b5cff

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

This PR includes changesets to release 17 packages
NameType
@workflow/swc-pluginPatch
@workflow/world-testingPatch
@workflow/sveltekitPatch
@workflow/buildersPatch
@workflow/nitroPatch
@workflow/corePatch
@workflow/nestPatch
@workflow/nextPatch
workflow-devkit-compiler-playgroundPatch
@workflow/astroPatch
@workflow/cliPatch
@workflow/rollupPatch
workflowPatch
@workflow/vitePatch
@workflow/nuxtPatch
@workflow/docs-typecheckPatch
@workflow/web-sharedPatch

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

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

@github-actions

github-actionsBot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production479038517
✅ 💻 Local Development438032470
✅ 📦 Local Production438032470
✅ 🐘 Local Postgres438032470
✅ 🪟 Windows470047
❌ 🌍 Community Worlds311690200
✅ 📋 Other129012141
Total20001691462315

❌ Failed Tests

🌍 Community Worlds (169 failed)

mongodb (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (43 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4304
✅ example4304
✅ express4304
✅ fastify4304
✅ hono4304
✅ nextjs-turbopack4601
✅ nextjs-webpack4601
✅ nitro4304
✅ nuxt4304
✅ sveltekit4304
✅ vite4304
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5420
✅ redis-dev300
❌ redis5420
✅ starter-dev300
❌ starter4430
✅ turso-dev300
❌ turso5420
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4304
✅ e2e-local-postgres-nest-stable4304
✅ e2e-local-prod-nest-stable4304

📋 View full workflow run

@vercel

vercelBot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

@TooTallNate
TooTallNate marked this pull request as ready for review January 30, 2026 19:34
CopilotAI review requested due to automatic review settings January 30, 2026 19:34

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the manifest.json format from a file-path-keyed structure to an ID-keyed structure, making manifest entries directly usable with APIs like start() and enabling O(1) lookups by ID.

Changes:

  • Rust SWC plugin now emits ID-keyed manifest format with name and source fields
  • TypeScript builders convert raw manifests (with source) to final manifests (with exports keyed by condition)
  • New mergeManifests utility provides deep merging of exports from multiple bundle contexts
  • All test fixtures, integration tests, and documentation updated to reflect the new format

Reviewed changes

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

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsRust transform updated to emit ID-keyed format with name/source fields
packages/builders/src/apply-swc-transform.tsAdded RawWorkflowManifest and updated WorkflowManifest types for new format
packages/builders/src/manifest-utils.tsNew file with deepMergeManifestEntries and mergeManifests utilities
packages/builders/src/base-builder.tsUpdated mergeRawManifest and addGraphsToWorkflows for new format
packages/builders/src/swc-esbuild-plugin.tsAdded mergeRawManifest function to convert raw to final manifest
packages/sveltekit/src/builder.tsUpdated to use new mergeManifests utility
packages/nitro/src/builders.tsUpdated to use new mergeManifests utility
packages/next/src/builder.tsUpdated to use new mergeManifests utility
packages/nest/src/builder.tsUpdated to use new mergeManifests utility
packages/builders/src/standalone.tsRemoved local mergeManifests in favor of shared utility
packages/builders/src/vercel-build-output-api.tsUpdated to use new mergeManifests utility
packages/builders/src/index.tsExported new mergeManifests utilities
packages/core/e2e/manifest.test.tsUpdated tests for ID-keyed manifest structure
workbench/example/api/trigger.tsUpdated to look up workflows by ID with backwards compatibility
packages/world-testing/src/*.mtsUpdated to use ID-keyed manifest for workflow invocation
packages/swc-plugin-workflow/spec.mdComprehensive documentation update explaining new format
All test fixture filesUpdated expected output for new manifest format

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

@TooTallNate
TooTallNateforce-pushed the 01-30-new_and_improved_manifest.json_format branch from 6b5c84a to 67fe853CompareJanuary 30, 2026 20:24
pranaygp
pranaygp previously approved these changes Jan 30, 2026

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

Code Review Summary

The core changes are solid and well-implemented. The transformation from file-path-keyed to ID-keyed manifest format is correctly implemented across all packages with good test coverage and excellent documentation.

Highlights

  • Well-documented PR description with clear migration notes
  • New manifest-utils.ts provides clean, reusable utilities
  • Types are well-defined with RawWorkflowManifest vs WorkflowManifest distinction
  • SWC plugin spec document updated comprehensively
  • O(1) lookups by ID is a nice performance improvement

Minor Suggestions (non-blocking)

  1. Duplicate mergeRawManifest function - The function exists in both base-builder.ts:27-48 and swc-esbuild-plugin.ts:26-51. Consider consolidating into manifest-utils.ts.

  2. Use of any types in manifest-utils.ts:20-23 - Could use proper typing given WorkflowManifest types are available:

    typeManifestEntry={name: string;exports: Record<string,string>;[key: string]: unknown;};
  3. Consider marking as breaking in changeset if this affects external tooling that reads manifest.json.

  4. Graph lookup fallback - In addGraphsToWorkflows, the lookup relies on exports.workflow being present. Consider checking both exports.workflow and exports.default.

LGTM! 🚀

Comment threadpackages/builders/src/base-builder.ts Outdated
Comment threadpackages/builders/src/manifest-utils.ts Outdated
Comment threadpackages/builders/src/base-builder.ts Outdated
"@workflow/next": patch
---

New and improved `manifest.json` format

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.

This is a significant format change. Should this be marked as BREAKING CHANGE per project conventions if external tooling reads manifest.json?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

This is a valid concern. However, the manifest.json format is currently internal to the build tooling and not intended as a public API for external consumers. The format is read by our own runtime and tooling. If there are external tools relying on this format, we should document and version it properly in a separate PR. For now, keeping this as a patch release seems appropriate since it's an internal improvement.

@VaguelySeriousVaguelySerious left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

web-shared and web o11y code use the manifest and should presumably be updated, CC @karthikscale3

@github-actions

github-actionsBot commented Feb 5, 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🥇 Next.js (Turbopack)0.039s (+2.9%)1.017s (~)0.978s101.00x
💻 LocalNitro0.042s (+48.3% 🔺)1.008s (~)0.966s101.08x
💻 LocalExpress0.043s (-2.3%)1.007s (~)0.964s101.10x
🐘 PostgresNitro0.199s (-41.9% 🟢)1.014s (~)0.815s105.09x
🐘 PostgresExpress0.270s (+14.2% 🔺)1.014s (~)0.745s106.89x
🐘 PostgresNext.js (Turbopack)0.362s (+7.5% 🔺)1.022s (-1.2%)0.660s109.23x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.582s (-11.2% 🟢)1.639s (+10.4% 🔺)1.057s101.00x
▲ VercelNitro0.678s (-7.5% 🟢)1.484s (-14.9% 🟢)0.806s101.16x
▲ VercelNext.js (Turbopack)0.678s (-1.0%)1.484s (-3.2%)0.806s101.17x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.105s (+0.9%)2.013s (~)0.908s101.00x
💻 LocalNitro1.115s (+3.3%)2.007s (~)0.892s101.01x
💻 LocalExpress1.116s (~)2.007s (~)0.891s101.01x
🐘 PostgresExpress2.154s (-3.2%)3.017s (~)0.863s101.95x
🐘 PostgresNext.js (Turbopack)2.212s (+8.0% 🔺)2.921s (+3.5%)0.709s102.00x
🐘 PostgresNitro2.330s (-1.9%)3.015s (~)0.685s102.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.767s (-4.1%)3.736s (+2.0%)0.969s101.00x
▲ VercelNitro2.773s (-11.0% 🟢)3.702s (-6.4% 🟢)0.929s101.00x
▲ VercelNext.js (Turbopack)2.779s (-4.0%)3.661s (~)0.882s101.00x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.728s (~)11.021s (~)0.293s31.00x
💻 LocalExpress10.842s (~)11.017s (~)0.175s31.01x
💻 LocalNitro10.859s (+2.8%)11.017s (~)0.158s31.01x
🐘 PostgresNext.js (Turbopack)15.098s (~)16.041s (+3.3%)0.943s21.41x
🐘 PostgresNitro15.671s (-22.6% 🟢)16.033s (-23.8% 🟢)0.362s21.46x
🐘 PostgresExpress20.512s (~)21.034s (~)0.522s21.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express22.356s (-1.5%)23.602s (+2.3%)1.246s21.00x
▲ VercelNext.js (Turbopack)22.709s (-3.8%)23.792s (-0.9%)1.083s21.02x
▲ VercelNitro22.985s (-1.5%)23.324s (-4.0%)0.340s21.03x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)27.215s (~)28.041s (~)0.826s31.00x
💻 LocalExpress27.485s (~)28.029s (~)0.544s31.01x
💻 LocalNitro27.564s (+2.9%)28.034s (+3.7%)0.470s31.01x
🐘 PostgresNext.js (Turbopack)38.023s (+1.8%)38.547s (+1.2%)0.523s21.40x
🐘 PostgresNitro39.058s (-21.6% 🟢)39.560s (-21.8% 🟢)0.502s21.44x
🐘 PostgresExpress50.425s (~)51.073s (~)0.648s21.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)56.721s (-1.9%)57.529s (-1.3%)0.808s21.00x
▲ VercelNitro57.728s (~)58.766s (~)1.038s21.02x
▲ VercelExpress58.147s (+1.4%)58.952s (+1.1%)0.805s21.03x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)56.740s (+0.5%)57.060s (~)0.320s21.00x
💻 LocalExpress57.319s (~)58.046s (~)0.726s21.01x
💻 LocalNitro57.468s (+3.3%)58.044s (+3.6%)0.576s21.01x
🐘 PostgresNext.js (Turbopack)75.369s (~)76.129s (~)0.760s21.33x
🐘 PostgresNitro86.881s (-13.5% 🟢)87.112s (-13.9% 🟢)0.231s21.53x
🐘 PostgresExpress100.233s (~)101.156s (~)0.923s11.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express117.016s (-1.9%)117.547s (-2.2%)0.531s11.00x
▲ VercelNitro117.662s (-5.7% 🟢)118.650s (-5.1% 🟢)0.988s11.01x
▲ VercelNext.js (Turbopack)118.620s (-2.7%)119.046s (-3.0%)0.426s11.01x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.405s (+2.2%)2.010s (~)0.606s151.00x
💻 LocalExpress1.415s (-1.0%)2.007s (~)0.592s151.01x
💻 LocalNitro1.446s (+6.8% 🔺)2.007s (~)0.561s151.03x
🐘 PostgresNext.js (Turbopack)2.102s (-10.3% 🟢)2.751s (+1.7%)0.648s111.50x
🐘 PostgresNitro2.313s (-7.4% 🟢)3.013s (~)0.700s101.65x
🐘 PostgresExpress2.345s (+4.0%)3.014s (~)0.668s101.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.769s (-14.4% 🟢)3.616s (-11.7% 🟢)0.847s91.00x
▲ VercelExpress2.914s (+1.0%)3.944s (+4.2%)1.030s81.05x
▲ VercelNitro2.963s (~)3.842s (-2.2%)0.879s81.07x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.501s (+1.4%)3.039s (~)0.537s101.00x
💻 LocalExpress2.605s (-1.6%)3.013s (~)0.409s101.04x
💻 LocalNitro2.660s (+18.9% 🔺)3.014s (-6.3% 🟢)0.354s101.06x
🐘 PostgresExpress9.178s (+3.9%)9.856s (+5.9% 🔺)0.678s43.67x
🐘 PostgresNitro9.321s (+11.0% 🔺)10.041s (+11.1% 🔺)0.720s33.73x
🐘 PostgresNext.js (Turbopack)12.782s (-5.5% 🟢)13.371s (-4.7%)0.589s35.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.734s (+3.7%)4.477s (+4.0%)0.743s71.00x
▲ VercelNitro4.184s (+16.0% 🔺)4.914s (-6.7% 🟢)0.730s71.12x
▲ VercelExpress5.175s (+70.3% 🔺)5.733s (+50.8% 🔺)0.557s61.39x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)6.901s (+6.6% 🔺)7.575s (+5.8% 🔺)0.674s51.00x
💻 LocalExpress7.444s (-4.7%)8.435s (-3.3%)0.991s41.08x
💻 LocalNitro7.689s (+25.7% 🔺)8.676s (+28.7% 🔺)0.987s41.11x
🐘 PostgresNitro47.695s (-6.8% 🟢)48.189s (-7.6% 🟢)0.494s16.91x
🐘 PostgresExpress51.132s (+7.1% 🔺)51.462s (+6.5% 🔺)0.330s17.41x
🐘 PostgresNext.js (Turbopack)52.865s (-4.8%)53.101s (-5.7% 🟢)0.236s17.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.512s (-5.9% 🟢)4.038s (-9.4% 🟢)0.526s81.00x
▲ VercelNitro3.661s (+4.8%)4.344s (+5.4% 🔺)0.682s81.04x
▲ VercelExpress3.792s (+9.8% 🔺)4.407s (+7.7% 🔺)0.615s71.08x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.434s (+1.6%)2.011s (~)0.577s151.00x
💻 LocalExpress1.446s (~)2.006s (~)0.560s151.01x
💻 LocalNitro1.469s (+8.2% 🔺)2.007s (~)0.538s151.02x
🐘 PostgresExpress2.084s (+3.8%)2.515s (-3.7%)0.431s121.45x
🐘 PostgresNext.js (Turbopack)2.120s (-5.2% 🟢)2.606s (-8.3% 🟢)0.486s121.48x
🐘 PostgresNitro2.237s (+6.0% 🔺)2.833s (+12.1% 🔺)0.597s111.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.672s (-8.1% 🟢)3.774s (+2.4%)1.102s81.00x
▲ VercelNitro2.786s (-1.6%)3.633s (-2.7%)0.847s91.04x
▲ VercelNext.js (Turbopack)2.810s (-0.8%)3.660s (~)0.849s91.05x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.676s (-7.3% 🟢)3.015s (-0.7%)0.338s101.00x
💻 LocalNext.js (Turbopack)2.718s (+3.3%)3.021s (~)0.303s101.02x
💻 LocalNitro2.727s (+16.7% 🔺)3.034s (-8.3% 🟢)0.307s101.02x
🐘 PostgresExpress10.088s (-16.4% 🟢)10.703s (-13.5% 🟢)0.616s33.77x
🐘 PostgresNitro12.878s (+5.5% 🔺)13.083s (+5.9% 🔺)0.205s34.81x
🐘 PostgresNext.js (Turbopack)12.974s (-3.3%)13.375s (-3.0%)0.401s34.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.946s (-1.1%)3.811s (+2.0%)0.864s81.00x
▲ VercelNext.js (Turbopack)3.105s (+4.5%)3.776s (-1.0%)0.672s81.05x
▲ VercelExpress3.108s (+2.4%)3.986s (+9.6% 🔺)0.878s81.05x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)7.594s (+11.0% 🔺)8.132s (-1.2%)0.538s41.00x
💻 LocalExpress7.981s (-1.6%)8.789s (+3.9%)0.808s41.05x
💻 LocalNitro8.275s (+26.8% 🔺)9.235s (+22.6% 🔺)0.959s41.09x
🐘 PostgresExpress50.392s (-3.5%)51.147s (-3.9%)0.755s16.64x
🐘 PostgresNitro52.298s (-2.0%)53.129s (-1.9%)0.831s16.89x
🐘 PostgresNext.js (Turbopack)56.811s (+1.2%)57.197s (+1.6%)0.386s17.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.376s (+1.5%)3.943s (~)0.567s81.00x
▲ VercelExpress3.505s (-10.7% 🟢)4.302s (-4.3%)0.797s71.04x
▲ VercelNitro4.008s (+26.2% 🔺)4.533s (+19.7% 🔺)0.525s71.19x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.148s (+4.5%)1.003s (~)0.015s (+2.7%)1.027s (~)0.879s101.00x
💻 LocalExpress0.184s (-2.9%)0.992s (~)0.015s (-0.7%)1.022s (~)0.838s101.24x
💻 LocalNitro0.186s (+60.9% 🔺)0.993s (-0.7%)0.014s (+22.4% 🔺)1.022s (~)0.836s101.26x
🐘 PostgresNext.js (Turbopack)1.021s (-14.3% 🟢)1.452s (-21.7% 🟢)0.001s (+Infinity% 🔺)1.621s (-19.7% 🟢)0.600s106.91x
🐘 PostgresNitro1.333s (+16.3% 🔺)1.705s (-10.0% 🟢)0.000s (-100.0% 🟢)2.013s (~)0.680s109.03x
🐘 PostgresExpress2.426s (+2.0%)2.618s (-1.8%)0.000s (~)3.015s (~)0.590s1016.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.895s (+1.5%)3.279s (~)0.246s (+9.0% 🔺)4.031s (+1.4%)1.136s101.00x
▲ VercelNext.js (Turbopack)3.028s (+1.1%)3.181s (-3.8%)0.226s (+29.6% 🔺)3.933s (-1.2%)0.904s101.05x
▲ VercelExpress3.120s (+4.0%)3.393s (+1.9%)0.247s (+53.7% 🔺)4.204s (+6.0% 🔺)1.084s101.08x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)11/12
🐘 PostgresExpress5/12
▲ VercelExpress5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)💻 Local10/12
Nitro💻 Local10/12
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

…and improve graph lookup
- Consolidate mergeRawManifest into manifest-utils.ts as shared function
- Replace any types with proper ManifestEntry type using generics
- Fix graph lookup to check both workflow and default exports
TooTallNate

This comment was marked as outdated.

The manifest adapter now detects and handles both formats:
- Legacy (pre-1.0.0): file-path keyed structure
- New (1.0.0+): ID-keyed structure with exports
This ensures the web UI can display workflow graphs from both old
and new deployments during the transition period.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Addressed the backwards compatibility concern for web-shared and web o11y tooling.

The manifest-adapter.ts in the web package now detects and handles both formats:

  • Legacy (pre-1.0.0): file-path keyed structure { [filePath]: { [workflowName]: { workflowId, graph } } }
  • New (1.0.0+): ID-keyed structure { [workflowId]: { name, exports, graph } }

The adapter auto-detects the format by checking for the presence of name and exports fields in workflow entries. This ensures the web UI can display workflow graphs from both old and new deployments during the transition period.

See commit e5b5cff for the changes.

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.

4 participants

@TooTallNate@pranaygp@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" + '
New and improved `manifest.json` format by TooTallNate · Pull Request #902 · vercel/workflow · GitHub
Skip to content

New and improved manifest.json format - #902

Open
TooTallNate wants to merge 4 commits into
mainfrom
01-30-new_and_improved_manifest.json_format
Open

New and improved manifest.json format#902
TooTallNate wants to merge 4 commits into
mainfrom
01-30-new_and_improved_manifest.json_format

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Jan 30, 2026

Copy link
Copy Markdown
Member

Overview

The manifest.json format has been inverted from a file-path-keyed structure to an ID-keyed structure. This makes it easier to look up entries by their ID and allows manifest entries to be passed directly to APIs like start().

Old Format (file-path-keyed)

{
steps: {
workflows/addition.ts: {
add: {
stepId: step//./workflows/addition//add
}
}
},
workflows: {
workflows/addition.ts: {
addition: {
workflowId: workflow//./workflows/addition//addition
}
}
}
}

New Format (ID-keyed)

{
steps: {
step//./workflows/addition//add: {
stepId: step//./workflows/addition//add,
name: add,
exports: {
default: workflows/addition.ts,
workflow: workflows/addition.ts
}
}
},
workflows: {
workflow//./workflows/addition//addition: {
workflowId: workflow//./workflows/addition//addition,
name: addition,
exports: {
default: workflows/addition.ts,
workflow: workflows/addition.ts
},
graph: {
nodes: [],
edges: []
}
}
},
classes: {
class//./utils/point//Point: {
classId: class//./utils/point//Point,
name: Point,
exports: {
default: utils/point.ts,
workflow: utils/point.ts
}
}
}
}

Key Changes

AspectOld FormatNew Format
Primary keyFile pathFull ID (e.g., step//./path//name)
Secondary keyFunction/class nameN/A (flat structure)
ID fieldOnly field in entryIncluded alongside other fields
Name fieldUsed as keyExplicit name field
Source/exportsNot includedexports object with condition keys

Benefits

  1. Direct API usage: Manifest entries can be passed directly to start() since they include workflowId
  2. O(1) lookups: Find any entry by ID without iterating through file paths
  3. Export conditions: The exports object maps bundle conditions (default, workflow) to source files
  4. Self-describing: Each entry contains its own ID, making entries portable and self-contained

Migration Notes

Code that previously accessed the manifest like this:

// Old formatconstworkflow=manifest.workflows[filePath][functionName];constid=workflow.workflowId;

Should now use:

// New format - direct lookup by IDconstworkflow=manifest.workflows[workflowId];// Or find by nameconstworkflow=Object.values(manifest.workflows).find(w=>w.name===functionName);

@changeset-bot

changeset-botBot commented Jan 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e5b5cff

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

This PR includes changesets to release 17 packages
NameType
@workflow/swc-pluginPatch
@workflow/world-testingPatch
@workflow/sveltekitPatch
@workflow/buildersPatch
@workflow/nitroPatch
@workflow/corePatch
@workflow/nestPatch
@workflow/nextPatch
workflow-devkit-compiler-playgroundPatch
@workflow/astroPatch
@workflow/cliPatch
@workflow/rollupPatch
workflowPatch
@workflow/vitePatch
@workflow/nuxtPatch
@workflow/docs-typecheckPatch
@workflow/web-sharedPatch

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

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

@github-actions

github-actionsBot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production479038517
✅ 💻 Local Development438032470
✅ 📦 Local Production438032470
✅ 🐘 Local Postgres438032470
✅ 🪟 Windows470047
❌ 🌍 Community Worlds311690200
✅ 📋 Other129012141
Total20001691462315

❌ Failed Tests

🌍 Community Worlds (169 failed)

mongodb (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (43 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4304
✅ example4304
✅ express4304
✅ fastify4304
✅ hono4304
✅ nextjs-turbopack4601
✅ nextjs-webpack4601
✅ nitro4304
✅ nuxt4304
✅ sveltekit4304
✅ vite4304
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5420
✅ redis-dev300
❌ redis5420
✅ starter-dev300
❌ starter4430
✅ turso-dev300
❌ turso5420
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4304
✅ e2e-local-postgres-nest-stable4304
✅ e2e-local-prod-nest-stable4304

📋 View full workflow run

@vercel

vercelBot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

@TooTallNate
TooTallNate marked this pull request as ready for review January 30, 2026 19:34
CopilotAI review requested due to automatic review settings January 30, 2026 19:34

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the manifest.json format from a file-path-keyed structure to an ID-keyed structure, making manifest entries directly usable with APIs like start() and enabling O(1) lookups by ID.

Changes:

  • Rust SWC plugin now emits ID-keyed manifest format with name and source fields
  • TypeScript builders convert raw manifests (with source) to final manifests (with exports keyed by condition)
  • New mergeManifests utility provides deep merging of exports from multiple bundle contexts
  • All test fixtures, integration tests, and documentation updated to reflect the new format

Reviewed changes

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

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsRust transform updated to emit ID-keyed format with name/source fields
packages/builders/src/apply-swc-transform.tsAdded RawWorkflowManifest and updated WorkflowManifest types for new format
packages/builders/src/manifest-utils.tsNew file with deepMergeManifestEntries and mergeManifests utilities
packages/builders/src/base-builder.tsUpdated mergeRawManifest and addGraphsToWorkflows for new format
packages/builders/src/swc-esbuild-plugin.tsAdded mergeRawManifest function to convert raw to final manifest
packages/sveltekit/src/builder.tsUpdated to use new mergeManifests utility
packages/nitro/src/builders.tsUpdated to use new mergeManifests utility
packages/next/src/builder.tsUpdated to use new mergeManifests utility
packages/nest/src/builder.tsUpdated to use new mergeManifests utility
packages/builders/src/standalone.tsRemoved local mergeManifests in favor of shared utility
packages/builders/src/vercel-build-output-api.tsUpdated to use new mergeManifests utility
packages/builders/src/index.tsExported new mergeManifests utilities
packages/core/e2e/manifest.test.tsUpdated tests for ID-keyed manifest structure
workbench/example/api/trigger.tsUpdated to look up workflows by ID with backwards compatibility
packages/world-testing/src/*.mtsUpdated to use ID-keyed manifest for workflow invocation
packages/swc-plugin-workflow/spec.mdComprehensive documentation update explaining new format
All test fixture filesUpdated expected output for new manifest format

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

@TooTallNate
TooTallNateforce-pushed the 01-30-new_and_improved_manifest.json_format branch from 6b5c84a to 67fe853CompareJanuary 30, 2026 20:24
pranaygp
pranaygp previously approved these changes Jan 30, 2026

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

Code Review Summary

The core changes are solid and well-implemented. The transformation from file-path-keyed to ID-keyed manifest format is correctly implemented across all packages with good test coverage and excellent documentation.

Highlights

  • Well-documented PR description with clear migration notes
  • New manifest-utils.ts provides clean, reusable utilities
  • Types are well-defined with RawWorkflowManifest vs WorkflowManifest distinction
  • SWC plugin spec document updated comprehensively
  • O(1) lookups by ID is a nice performance improvement

Minor Suggestions (non-blocking)

  1. Duplicate mergeRawManifest function - The function exists in both base-builder.ts:27-48 and swc-esbuild-plugin.ts:26-51. Consider consolidating into manifest-utils.ts.

  2. Use of any types in manifest-utils.ts:20-23 - Could use proper typing given WorkflowManifest types are available:

    typeManifestEntry={name: string;exports: Record<string,string>;[key: string]: unknown;};
  3. Consider marking as breaking in changeset if this affects external tooling that reads manifest.json.

  4. Graph lookup fallback - In addGraphsToWorkflows, the lookup relies on exports.workflow being present. Consider checking both exports.workflow and exports.default.

LGTM! 🚀

Comment threadpackages/builders/src/base-builder.ts Outdated
Comment threadpackages/builders/src/manifest-utils.ts Outdated
Comment threadpackages/builders/src/base-builder.ts Outdated
"@workflow/next": patch
---

New and improved `manifest.json` format

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.

This is a significant format change. Should this be marked as BREAKING CHANGE per project conventions if external tooling reads manifest.json?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

This is a valid concern. However, the manifest.json format is currently internal to the build tooling and not intended as a public API for external consumers. The format is read by our own runtime and tooling. If there are external tools relying on this format, we should document and version it properly in a separate PR. For now, keeping this as a patch release seems appropriate since it's an internal improvement.

@VaguelySeriousVaguelySerious left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

web-shared and web o11y code use the manifest and should presumably be updated, CC @karthikscale3

@github-actions

github-actionsBot commented Feb 5, 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🥇 Next.js (Turbopack)0.039s (+2.9%)1.017s (~)0.978s101.00x
💻 LocalNitro0.042s (+48.3% 🔺)1.008s (~)0.966s101.08x
💻 LocalExpress0.043s (-2.3%)1.007s (~)0.964s101.10x
🐘 PostgresNitro0.199s (-41.9% 🟢)1.014s (~)0.815s105.09x
🐘 PostgresExpress0.270s (+14.2% 🔺)1.014s (~)0.745s106.89x
🐘 PostgresNext.js (Turbopack)0.362s (+7.5% 🔺)1.022s (-1.2%)0.660s109.23x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.582s (-11.2% 🟢)1.639s (+10.4% 🔺)1.057s101.00x
▲ VercelNitro0.678s (-7.5% 🟢)1.484s (-14.9% 🟢)0.806s101.16x
▲ VercelNext.js (Turbopack)0.678s (-1.0%)1.484s (-3.2%)0.806s101.17x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.105s (+0.9%)2.013s (~)0.908s101.00x
💻 LocalNitro1.115s (+3.3%)2.007s (~)0.892s101.01x
💻 LocalExpress1.116s (~)2.007s (~)0.891s101.01x
🐘 PostgresExpress2.154s (-3.2%)3.017s (~)0.863s101.95x
🐘 PostgresNext.js (Turbopack)2.212s (+8.0% 🔺)2.921s (+3.5%)0.709s102.00x
🐘 PostgresNitro2.330s (-1.9%)3.015s (~)0.685s102.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.767s (-4.1%)3.736s (+2.0%)0.969s101.00x
▲ VercelNitro2.773s (-11.0% 🟢)3.702s (-6.4% 🟢)0.929s101.00x
▲ VercelNext.js (Turbopack)2.779s (-4.0%)3.661s (~)0.882s101.00x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.728s (~)11.021s (~)0.293s31.00x
💻 LocalExpress10.842s (~)11.017s (~)0.175s31.01x
💻 LocalNitro10.859s (+2.8%)11.017s (~)0.158s31.01x
🐘 PostgresNext.js (Turbopack)15.098s (~)16.041s (+3.3%)0.943s21.41x
🐘 PostgresNitro15.671s (-22.6% 🟢)16.033s (-23.8% 🟢)0.362s21.46x
🐘 PostgresExpress20.512s (~)21.034s (~)0.522s21.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express22.356s (-1.5%)23.602s (+2.3%)1.246s21.00x
▲ VercelNext.js (Turbopack)22.709s (-3.8%)23.792s (-0.9%)1.083s21.02x
▲ VercelNitro22.985s (-1.5%)23.324s (-4.0%)0.340s21.03x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)27.215s (~)28.041s (~)0.826s31.00x
💻 LocalExpress27.485s (~)28.029s (~)0.544s31.01x
💻 LocalNitro27.564s (+2.9%)28.034s (+3.7%)0.470s31.01x
🐘 PostgresNext.js (Turbopack)38.023s (+1.8%)38.547s (+1.2%)0.523s21.40x
🐘 PostgresNitro39.058s (-21.6% 🟢)39.560s (-21.8% 🟢)0.502s21.44x
🐘 PostgresExpress50.425s (~)51.073s (~)0.648s21.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)56.721s (-1.9%)57.529s (-1.3%)0.808s21.00x
▲ VercelNitro57.728s (~)58.766s (~)1.038s21.02x
▲ VercelExpress58.147s (+1.4%)58.952s (+1.1%)0.805s21.03x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)56.740s (+0.5%)57.060s (~)0.320s21.00x
💻 LocalExpress57.319s (~)58.046s (~)0.726s21.01x
💻 LocalNitro57.468s (+3.3%)58.044s (+3.6%)0.576s21.01x
🐘 PostgresNext.js (Turbopack)75.369s (~)76.129s (~)0.760s21.33x
🐘 PostgresNitro86.881s (-13.5% 🟢)87.112s (-13.9% 🟢)0.231s21.53x
🐘 PostgresExpress100.233s (~)101.156s (~)0.923s11.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express117.016s (-1.9%)117.547s (-2.2%)0.531s11.00x
▲ VercelNitro117.662s (-5.7% 🟢)118.650s (-5.1% 🟢)0.988s11.01x
▲ VercelNext.js (Turbopack)118.620s (-2.7%)119.046s (-3.0%)0.426s11.01x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.405s (+2.2%)2.010s (~)0.606s151.00x
💻 LocalExpress1.415s (-1.0%)2.007s (~)0.592s151.01x
💻 LocalNitro1.446s (+6.8% 🔺)2.007s (~)0.561s151.03x
🐘 PostgresNext.js (Turbopack)2.102s (-10.3% 🟢)2.751s (+1.7%)0.648s111.50x
🐘 PostgresNitro2.313s (-7.4% 🟢)3.013s (~)0.700s101.65x
🐘 PostgresExpress2.345s (+4.0%)3.014s (~)0.668s101.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.769s (-14.4% 🟢)3.616s (-11.7% 🟢)0.847s91.00x
▲ VercelExpress2.914s (+1.0%)3.944s (+4.2%)1.030s81.05x
▲ VercelNitro2.963s (~)3.842s (-2.2%)0.879s81.07x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.501s (+1.4%)3.039s (~)0.537s101.00x
💻 LocalExpress2.605s (-1.6%)3.013s (~)0.409s101.04x
💻 LocalNitro2.660s (+18.9% 🔺)3.014s (-6.3% 🟢)0.354s101.06x
🐘 PostgresExpress9.178s (+3.9%)9.856s (+5.9% 🔺)0.678s43.67x
🐘 PostgresNitro9.321s (+11.0% 🔺)10.041s (+11.1% 🔺)0.720s33.73x
🐘 PostgresNext.js (Turbopack)12.782s (-5.5% 🟢)13.371s (-4.7%)0.589s35.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.734s (+3.7%)4.477s (+4.0%)0.743s71.00x
▲ VercelNitro4.184s (+16.0% 🔺)4.914s (-6.7% 🟢)0.730s71.12x
▲ VercelExpress5.175s (+70.3% 🔺)5.733s (+50.8% 🔺)0.557s61.39x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)6.901s (+6.6% 🔺)7.575s (+5.8% 🔺)0.674s51.00x
💻 LocalExpress7.444s (-4.7%)8.435s (-3.3%)0.991s41.08x
💻 LocalNitro7.689s (+25.7% 🔺)8.676s (+28.7% 🔺)0.987s41.11x
🐘 PostgresNitro47.695s (-6.8% 🟢)48.189s (-7.6% 🟢)0.494s16.91x
🐘 PostgresExpress51.132s (+7.1% 🔺)51.462s (+6.5% 🔺)0.330s17.41x
🐘 PostgresNext.js (Turbopack)52.865s (-4.8%)53.101s (-5.7% 🟢)0.236s17.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.512s (-5.9% 🟢)4.038s (-9.4% 🟢)0.526s81.00x
▲ VercelNitro3.661s (+4.8%)4.344s (+5.4% 🔺)0.682s81.04x
▲ VercelExpress3.792s (+9.8% 🔺)4.407s (+7.7% 🔺)0.615s71.08x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.434s (+1.6%)2.011s (~)0.577s151.00x
💻 LocalExpress1.446s (~)2.006s (~)0.560s151.01x
💻 LocalNitro1.469s (+8.2% 🔺)2.007s (~)0.538s151.02x
🐘 PostgresExpress2.084s (+3.8%)2.515s (-3.7%)0.431s121.45x
🐘 PostgresNext.js (Turbopack)2.120s (-5.2% 🟢)2.606s (-8.3% 🟢)0.486s121.48x
🐘 PostgresNitro2.237s (+6.0% 🔺)2.833s (+12.1% 🔺)0.597s111.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.672s (-8.1% 🟢)3.774s (+2.4%)1.102s81.00x
▲ VercelNitro2.786s (-1.6%)3.633s (-2.7%)0.847s91.04x
▲ VercelNext.js (Turbopack)2.810s (-0.8%)3.660s (~)0.849s91.05x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.676s (-7.3% 🟢)3.015s (-0.7%)0.338s101.00x
💻 LocalNext.js (Turbopack)2.718s (+3.3%)3.021s (~)0.303s101.02x
💻 LocalNitro2.727s (+16.7% 🔺)3.034s (-8.3% 🟢)0.307s101.02x
🐘 PostgresExpress10.088s (-16.4% 🟢)10.703s (-13.5% 🟢)0.616s33.77x
🐘 PostgresNitro12.878s (+5.5% 🔺)13.083s (+5.9% 🔺)0.205s34.81x
🐘 PostgresNext.js (Turbopack)12.974s (-3.3%)13.375s (-3.0%)0.401s34.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.946s (-1.1%)3.811s (+2.0%)0.864s81.00x
▲ VercelNext.js (Turbopack)3.105s (+4.5%)3.776s (-1.0%)0.672s81.05x
▲ VercelExpress3.108s (+2.4%)3.986s (+9.6% 🔺)0.878s81.05x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)7.594s (+11.0% 🔺)8.132s (-1.2%)0.538s41.00x
💻 LocalExpress7.981s (-1.6%)8.789s (+3.9%)0.808s41.05x
💻 LocalNitro8.275s (+26.8% 🔺)9.235s (+22.6% 🔺)0.959s41.09x
🐘 PostgresExpress50.392s (-3.5%)51.147s (-3.9%)0.755s16.64x
🐘 PostgresNitro52.298s (-2.0%)53.129s (-1.9%)0.831s16.89x
🐘 PostgresNext.js (Turbopack)56.811s (+1.2%)57.197s (+1.6%)0.386s17.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.376s (+1.5%)3.943s (~)0.567s81.00x
▲ VercelExpress3.505s (-10.7% 🟢)4.302s (-4.3%)0.797s71.04x
▲ VercelNitro4.008s (+26.2% 🔺)4.533s (+19.7% 🔺)0.525s71.19x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.148s (+4.5%)1.003s (~)0.015s (+2.7%)1.027s (~)0.879s101.00x
💻 LocalExpress0.184s (-2.9%)0.992s (~)0.015s (-0.7%)1.022s (~)0.838s101.24x
💻 LocalNitro0.186s (+60.9% 🔺)0.993s (-0.7%)0.014s (+22.4% 🔺)1.022s (~)0.836s101.26x
🐘 PostgresNext.js (Turbopack)1.021s (-14.3% 🟢)1.452s (-21.7% 🟢)0.001s (+Infinity% 🔺)1.621s (-19.7% 🟢)0.600s106.91x
🐘 PostgresNitro1.333s (+16.3% 🔺)1.705s (-10.0% 🟢)0.000s (-100.0% 🟢)2.013s (~)0.680s109.03x
🐘 PostgresExpress2.426s (+2.0%)2.618s (-1.8%)0.000s (~)3.015s (~)0.590s1016.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.895s (+1.5%)3.279s (~)0.246s (+9.0% 🔺)4.031s (+1.4%)1.136s101.00x
▲ VercelNext.js (Turbopack)3.028s (+1.1%)3.181s (-3.8%)0.226s (+29.6% 🔺)3.933s (-1.2%)0.904s101.05x
▲ VercelExpress3.120s (+4.0%)3.393s (+1.9%)0.247s (+53.7% 🔺)4.204s (+6.0% 🔺)1.084s101.08x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)11/12
🐘 PostgresExpress5/12
▲ VercelExpress5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)💻 Local10/12
Nitro💻 Local10/12
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

…and improve graph lookup
- Consolidate mergeRawManifest into manifest-utils.ts as shared function
- Replace any types with proper ManifestEntry type using generics
- Fix graph lookup to check both workflow and default exports
TooTallNate

This comment was marked as outdated.

The manifest adapter now detects and handles both formats:
- Legacy (pre-1.0.0): file-path keyed structure
- New (1.0.0+): ID-keyed structure with exports
This ensures the web UI can display workflow graphs from both old
and new deployments during the transition period.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Addressed the backwards compatibility concern for web-shared and web o11y tooling.

The manifest-adapter.ts in the web package now detects and handles both formats:

  • Legacy (pre-1.0.0): file-path keyed structure { [filePath]: { [workflowName]: { workflowId, graph } } }
  • New (1.0.0+): ID-keyed structure { [workflowId]: { name, exports, graph } }

The adapter auto-detects the format by checking for the presence of name and exports fields in workflow entries. This ensures the web UI can display workflow graphs from both old and new deployments during the transition period.

See commit e5b5cff for the changes.

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.

4 participants

@TooTallNate@pranaygp@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('^' + ".*" + ' New and improved `manifest.json` format by TooTallNate · Pull Request #902 · vercel/workflow · GitHub
Skip to content

New and improved manifest.json format - #902

Open
TooTallNate wants to merge 4 commits into
mainfrom
01-30-new_and_improved_manifest.json_format
Open

New and improved manifest.json format#902
TooTallNate wants to merge 4 commits into
mainfrom
01-30-new_and_improved_manifest.json_format

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Jan 30, 2026

Copy link
Copy Markdown
Member

Overview

The manifest.json format has been inverted from a file-path-keyed structure to an ID-keyed structure. This makes it easier to look up entries by their ID and allows manifest entries to be passed directly to APIs like start().

Old Format (file-path-keyed)

{
steps: {
workflows/addition.ts: {
add: {
stepId: step//./workflows/addition//add
}
}
},
workflows: {
workflows/addition.ts: {
addition: {
workflowId: workflow//./workflows/addition//addition
}
}
}
}

New Format (ID-keyed)

{
steps: {
step//./workflows/addition//add: {
stepId: step//./workflows/addition//add,
name: add,
exports: {
default: workflows/addition.ts,
workflow: workflows/addition.ts
}
}
},
workflows: {
workflow//./workflows/addition//addition: {
workflowId: workflow//./workflows/addition//addition,
name: addition,
exports: {
default: workflows/addition.ts,
workflow: workflows/addition.ts
},
graph: {
nodes: [],
edges: []
}
}
},
classes: {
class//./utils/point//Point: {
classId: class//./utils/point//Point,
name: Point,
exports: {
default: utils/point.ts,
workflow: utils/point.ts
}
}
}
}

Key Changes

AspectOld FormatNew Format
Primary keyFile pathFull ID (e.g., step//./path//name)
Secondary keyFunction/class nameN/A (flat structure)
ID fieldOnly field in entryIncluded alongside other fields
Name fieldUsed as keyExplicit name field
Source/exportsNot includedexports object with condition keys

Benefits

  1. Direct API usage: Manifest entries can be passed directly to start() since they include workflowId
  2. O(1) lookups: Find any entry by ID without iterating through file paths
  3. Export conditions: The exports object maps bundle conditions (default, workflow) to source files
  4. Self-describing: Each entry contains its own ID, making entries portable and self-contained

Migration Notes

Code that previously accessed the manifest like this:

// Old formatconstworkflow=manifest.workflows[filePath][functionName];constid=workflow.workflowId;

Should now use:

// New format - direct lookup by IDconstworkflow=manifest.workflows[workflowId];// Or find by nameconstworkflow=Object.values(manifest.workflows).find(w=>w.name===functionName);

@changeset-bot

changeset-botBot commented Jan 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e5b5cff

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

This PR includes changesets to release 17 packages
NameType
@workflow/swc-pluginPatch
@workflow/world-testingPatch
@workflow/sveltekitPatch
@workflow/buildersPatch
@workflow/nitroPatch
@workflow/corePatch
@workflow/nestPatch
@workflow/nextPatch
workflow-devkit-compiler-playgroundPatch
@workflow/astroPatch
@workflow/cliPatch
@workflow/rollupPatch
workflowPatch
@workflow/vitePatch
@workflow/nuxtPatch
@workflow/docs-typecheckPatch
@workflow/web-sharedPatch

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

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

@github-actions

github-actionsBot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production479038517
✅ 💻 Local Development438032470
✅ 📦 Local Production438032470
✅ 🐘 Local Postgres438032470
✅ 🪟 Windows470047
❌ 🌍 Community Worlds311690200
✅ 📋 Other129012141
Total20001691462315

❌ Failed Tests

🌍 Community Worlds (169 failed)

mongodb (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (43 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4304
✅ example4304
✅ express4304
✅ fastify4304
✅ hono4304
✅ nextjs-turbopack4601
✅ nextjs-webpack4601
✅ nitro4304
✅ nuxt4304
✅ sveltekit4304
✅ vite4304
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5420
✅ redis-dev300
❌ redis5420
✅ starter-dev300
❌ starter4430
✅ turso-dev300
❌ turso5420
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4304
✅ e2e-local-postgres-nest-stable4304
✅ e2e-local-prod-nest-stable4304

📋 View full workflow run

@vercel

vercelBot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

@TooTallNate
TooTallNate marked this pull request as ready for review January 30, 2026 19:34
CopilotAI review requested due to automatic review settings January 30, 2026 19:34

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the manifest.json format from a file-path-keyed structure to an ID-keyed structure, making manifest entries directly usable with APIs like start() and enabling O(1) lookups by ID.

Changes:

  • Rust SWC plugin now emits ID-keyed manifest format with name and source fields
  • TypeScript builders convert raw manifests (with source) to final manifests (with exports keyed by condition)
  • New mergeManifests utility provides deep merging of exports from multiple bundle contexts
  • All test fixtures, integration tests, and documentation updated to reflect the new format

Reviewed changes

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

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsRust transform updated to emit ID-keyed format with name/source fields
packages/builders/src/apply-swc-transform.tsAdded RawWorkflowManifest and updated WorkflowManifest types for new format
packages/builders/src/manifest-utils.tsNew file with deepMergeManifestEntries and mergeManifests utilities
packages/builders/src/base-builder.tsUpdated mergeRawManifest and addGraphsToWorkflows for new format
packages/builders/src/swc-esbuild-plugin.tsAdded mergeRawManifest function to convert raw to final manifest
packages/sveltekit/src/builder.tsUpdated to use new mergeManifests utility
packages/nitro/src/builders.tsUpdated to use new mergeManifests utility
packages/next/src/builder.tsUpdated to use new mergeManifests utility
packages/nest/src/builder.tsUpdated to use new mergeManifests utility
packages/builders/src/standalone.tsRemoved local mergeManifests in favor of shared utility
packages/builders/src/vercel-build-output-api.tsUpdated to use new mergeManifests utility
packages/builders/src/index.tsExported new mergeManifests utilities
packages/core/e2e/manifest.test.tsUpdated tests for ID-keyed manifest structure
workbench/example/api/trigger.tsUpdated to look up workflows by ID with backwards compatibility
packages/world-testing/src/*.mtsUpdated to use ID-keyed manifest for workflow invocation
packages/swc-plugin-workflow/spec.mdComprehensive documentation update explaining new format
All test fixture filesUpdated expected output for new manifest format

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

@TooTallNate
TooTallNateforce-pushed the 01-30-new_and_improved_manifest.json_format branch from 6b5c84a to 67fe853CompareJanuary 30, 2026 20:24
pranaygp
pranaygp previously approved these changes Jan 30, 2026

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

Code Review Summary

The core changes are solid and well-implemented. The transformation from file-path-keyed to ID-keyed manifest format is correctly implemented across all packages with good test coverage and excellent documentation.

Highlights

  • Well-documented PR description with clear migration notes
  • New manifest-utils.ts provides clean, reusable utilities
  • Types are well-defined with RawWorkflowManifest vs WorkflowManifest distinction
  • SWC plugin spec document updated comprehensively
  • O(1) lookups by ID is a nice performance improvement

Minor Suggestions (non-blocking)

  1. Duplicate mergeRawManifest function - The function exists in both base-builder.ts:27-48 and swc-esbuild-plugin.ts:26-51. Consider consolidating into manifest-utils.ts.

  2. Use of any types in manifest-utils.ts:20-23 - Could use proper typing given WorkflowManifest types are available:

    typeManifestEntry={name: string;exports: Record<string,string>;[key: string]: unknown;};
  3. Consider marking as breaking in changeset if this affects external tooling that reads manifest.json.

  4. Graph lookup fallback - In addGraphsToWorkflows, the lookup relies on exports.workflow being present. Consider checking both exports.workflow and exports.default.

LGTM! 🚀

Comment threadpackages/builders/src/base-builder.ts Outdated
Comment threadpackages/builders/src/manifest-utils.ts Outdated
Comment threadpackages/builders/src/base-builder.ts Outdated
"@workflow/next": patch
---

New and improved `manifest.json` format

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.

This is a significant format change. Should this be marked as BREAKING CHANGE per project conventions if external tooling reads manifest.json?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

This is a valid concern. However, the manifest.json format is currently internal to the build tooling and not intended as a public API for external consumers. The format is read by our own runtime and tooling. If there are external tools relying on this format, we should document and version it properly in a separate PR. For now, keeping this as a patch release seems appropriate since it's an internal improvement.

@VaguelySeriousVaguelySerious left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

web-shared and web o11y code use the manifest and should presumably be updated, CC @karthikscale3

@github-actions

github-actionsBot commented Feb 5, 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🥇 Next.js (Turbopack)0.039s (+2.9%)1.017s (~)0.978s101.00x
💻 LocalNitro0.042s (+48.3% 🔺)1.008s (~)0.966s101.08x
💻 LocalExpress0.043s (-2.3%)1.007s (~)0.964s101.10x
🐘 PostgresNitro0.199s (-41.9% 🟢)1.014s (~)0.815s105.09x
🐘 PostgresExpress0.270s (+14.2% 🔺)1.014s (~)0.745s106.89x
🐘 PostgresNext.js (Turbopack)0.362s (+7.5% 🔺)1.022s (-1.2%)0.660s109.23x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.582s (-11.2% 🟢)1.639s (+10.4% 🔺)1.057s101.00x
▲ VercelNitro0.678s (-7.5% 🟢)1.484s (-14.9% 🟢)0.806s101.16x
▲ VercelNext.js (Turbopack)0.678s (-1.0%)1.484s (-3.2%)0.806s101.17x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.105s (+0.9%)2.013s (~)0.908s101.00x
💻 LocalNitro1.115s (+3.3%)2.007s (~)0.892s101.01x
💻 LocalExpress1.116s (~)2.007s (~)0.891s101.01x
🐘 PostgresExpress2.154s (-3.2%)3.017s (~)0.863s101.95x
🐘 PostgresNext.js (Turbopack)2.212s (+8.0% 🔺)2.921s (+3.5%)0.709s102.00x
🐘 PostgresNitro2.330s (-1.9%)3.015s (~)0.685s102.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.767s (-4.1%)3.736s (+2.0%)0.969s101.00x
▲ VercelNitro2.773s (-11.0% 🟢)3.702s (-6.4% 🟢)0.929s101.00x
▲ VercelNext.js (Turbopack)2.779s (-4.0%)3.661s (~)0.882s101.00x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.728s (~)11.021s (~)0.293s31.00x
💻 LocalExpress10.842s (~)11.017s (~)0.175s31.01x
💻 LocalNitro10.859s (+2.8%)11.017s (~)0.158s31.01x
🐘 PostgresNext.js (Turbopack)15.098s (~)16.041s (+3.3%)0.943s21.41x
🐘 PostgresNitro15.671s (-22.6% 🟢)16.033s (-23.8% 🟢)0.362s21.46x
🐘 PostgresExpress20.512s (~)21.034s (~)0.522s21.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express22.356s (-1.5%)23.602s (+2.3%)1.246s21.00x
▲ VercelNext.js (Turbopack)22.709s (-3.8%)23.792s (-0.9%)1.083s21.02x
▲ VercelNitro22.985s (-1.5%)23.324s (-4.0%)0.340s21.03x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)27.215s (~)28.041s (~)0.826s31.00x
💻 LocalExpress27.485s (~)28.029s (~)0.544s31.01x
💻 LocalNitro27.564s (+2.9%)28.034s (+3.7%)0.470s31.01x
🐘 PostgresNext.js (Turbopack)38.023s (+1.8%)38.547s (+1.2%)0.523s21.40x
🐘 PostgresNitro39.058s (-21.6% 🟢)39.560s (-21.8% 🟢)0.502s21.44x
🐘 PostgresExpress50.425s (~)51.073s (~)0.648s21.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)56.721s (-1.9%)57.529s (-1.3%)0.808s21.00x
▲ VercelNitro57.728s (~)58.766s (~)1.038s21.02x
▲ VercelExpress58.147s (+1.4%)58.952s (+1.1%)0.805s21.03x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)56.740s (+0.5%)57.060s (~)0.320s21.00x
💻 LocalExpress57.319s (~)58.046s (~)0.726s21.01x
💻 LocalNitro57.468s (+3.3%)58.044s (+3.6%)0.576s21.01x
🐘 PostgresNext.js (Turbopack)75.369s (~)76.129s (~)0.760s21.33x
🐘 PostgresNitro86.881s (-13.5% 🟢)87.112s (-13.9% 🟢)0.231s21.53x
🐘 PostgresExpress100.233s (~)101.156s (~)0.923s11.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express117.016s (-1.9%)117.547s (-2.2%)0.531s11.00x
▲ VercelNitro117.662s (-5.7% 🟢)118.650s (-5.1% 🟢)0.988s11.01x
▲ VercelNext.js (Turbopack)118.620s (-2.7%)119.046s (-3.0%)0.426s11.01x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.405s (+2.2%)2.010s (~)0.606s151.00x
💻 LocalExpress1.415s (-1.0%)2.007s (~)0.592s151.01x
💻 LocalNitro1.446s (+6.8% 🔺)2.007s (~)0.561s151.03x
🐘 PostgresNext.js (Turbopack)2.102s (-10.3% 🟢)2.751s (+1.7%)0.648s111.50x
🐘 PostgresNitro2.313s (-7.4% 🟢)3.013s (~)0.700s101.65x
🐘 PostgresExpress2.345s (+4.0%)3.014s (~)0.668s101.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.769s (-14.4% 🟢)3.616s (-11.7% 🟢)0.847s91.00x
▲ VercelExpress2.914s (+1.0%)3.944s (+4.2%)1.030s81.05x
▲ VercelNitro2.963s (~)3.842s (-2.2%)0.879s81.07x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.501s (+1.4%)3.039s (~)0.537s101.00x
💻 LocalExpress2.605s (-1.6%)3.013s (~)0.409s101.04x
💻 LocalNitro2.660s (+18.9% 🔺)3.014s (-6.3% 🟢)0.354s101.06x
🐘 PostgresExpress9.178s (+3.9%)9.856s (+5.9% 🔺)0.678s43.67x
🐘 PostgresNitro9.321s (+11.0% 🔺)10.041s (+11.1% 🔺)0.720s33.73x
🐘 PostgresNext.js (Turbopack)12.782s (-5.5% 🟢)13.371s (-4.7%)0.589s35.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.734s (+3.7%)4.477s (+4.0%)0.743s71.00x
▲ VercelNitro4.184s (+16.0% 🔺)4.914s (-6.7% 🟢)0.730s71.12x
▲ VercelExpress5.175s (+70.3% 🔺)5.733s (+50.8% 🔺)0.557s61.39x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)6.901s (+6.6% 🔺)7.575s (+5.8% 🔺)0.674s51.00x
💻 LocalExpress7.444s (-4.7%)8.435s (-3.3%)0.991s41.08x
💻 LocalNitro7.689s (+25.7% 🔺)8.676s (+28.7% 🔺)0.987s41.11x
🐘 PostgresNitro47.695s (-6.8% 🟢)48.189s (-7.6% 🟢)0.494s16.91x
🐘 PostgresExpress51.132s (+7.1% 🔺)51.462s (+6.5% 🔺)0.330s17.41x
🐘 PostgresNext.js (Turbopack)52.865s (-4.8%)53.101s (-5.7% 🟢)0.236s17.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.512s (-5.9% 🟢)4.038s (-9.4% 🟢)0.526s81.00x
▲ VercelNitro3.661s (+4.8%)4.344s (+5.4% 🔺)0.682s81.04x
▲ VercelExpress3.792s (+9.8% 🔺)4.407s (+7.7% 🔺)0.615s71.08x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.434s (+1.6%)2.011s (~)0.577s151.00x
💻 LocalExpress1.446s (~)2.006s (~)0.560s151.01x
💻 LocalNitro1.469s (+8.2% 🔺)2.007s (~)0.538s151.02x
🐘 PostgresExpress2.084s (+3.8%)2.515s (-3.7%)0.431s121.45x
🐘 PostgresNext.js (Turbopack)2.120s (-5.2% 🟢)2.606s (-8.3% 🟢)0.486s121.48x
🐘 PostgresNitro2.237s (+6.0% 🔺)2.833s (+12.1% 🔺)0.597s111.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.672s (-8.1% 🟢)3.774s (+2.4%)1.102s81.00x
▲ VercelNitro2.786s (-1.6%)3.633s (-2.7%)0.847s91.04x
▲ VercelNext.js (Turbopack)2.810s (-0.8%)3.660s (~)0.849s91.05x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.676s (-7.3% 🟢)3.015s (-0.7%)0.338s101.00x
💻 LocalNext.js (Turbopack)2.718s (+3.3%)3.021s (~)0.303s101.02x
💻 LocalNitro2.727s (+16.7% 🔺)3.034s (-8.3% 🟢)0.307s101.02x
🐘 PostgresExpress10.088s (-16.4% 🟢)10.703s (-13.5% 🟢)0.616s33.77x
🐘 PostgresNitro12.878s (+5.5% 🔺)13.083s (+5.9% 🔺)0.205s34.81x
🐘 PostgresNext.js (Turbopack)12.974s (-3.3%)13.375s (-3.0%)0.401s34.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.946s (-1.1%)3.811s (+2.0%)0.864s81.00x
▲ VercelNext.js (Turbopack)3.105s (+4.5%)3.776s (-1.0%)0.672s81.05x
▲ VercelExpress3.108s (+2.4%)3.986s (+9.6% 🔺)0.878s81.05x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)7.594s (+11.0% 🔺)8.132s (-1.2%)0.538s41.00x
💻 LocalExpress7.981s (-1.6%)8.789s (+3.9%)0.808s41.05x
💻 LocalNitro8.275s (+26.8% 🔺)9.235s (+22.6% 🔺)0.959s41.09x
🐘 PostgresExpress50.392s (-3.5%)51.147s (-3.9%)0.755s16.64x
🐘 PostgresNitro52.298s (-2.0%)53.129s (-1.9%)0.831s16.89x
🐘 PostgresNext.js (Turbopack)56.811s (+1.2%)57.197s (+1.6%)0.386s17.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.376s (+1.5%)3.943s (~)0.567s81.00x
▲ VercelExpress3.505s (-10.7% 🟢)4.302s (-4.3%)0.797s71.04x
▲ VercelNitro4.008s (+26.2% 🔺)4.533s (+19.7% 🔺)0.525s71.19x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.148s (+4.5%)1.003s (~)0.015s (+2.7%)1.027s (~)0.879s101.00x
💻 LocalExpress0.184s (-2.9%)0.992s (~)0.015s (-0.7%)1.022s (~)0.838s101.24x
💻 LocalNitro0.186s (+60.9% 🔺)0.993s (-0.7%)0.014s (+22.4% 🔺)1.022s (~)0.836s101.26x
🐘 PostgresNext.js (Turbopack)1.021s (-14.3% 🟢)1.452s (-21.7% 🟢)0.001s (+Infinity% 🔺)1.621s (-19.7% 🟢)0.600s106.91x
🐘 PostgresNitro1.333s (+16.3% 🔺)1.705s (-10.0% 🟢)0.000s (-100.0% 🟢)2.013s (~)0.680s109.03x
🐘 PostgresExpress2.426s (+2.0%)2.618s (-1.8%)0.000s (~)3.015s (~)0.590s1016.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.895s (+1.5%)3.279s (~)0.246s (+9.0% 🔺)4.031s (+1.4%)1.136s101.00x
▲ VercelNext.js (Turbopack)3.028s (+1.1%)3.181s (-3.8%)0.226s (+29.6% 🔺)3.933s (-1.2%)0.904s101.05x
▲ VercelExpress3.120s (+4.0%)3.393s (+1.9%)0.247s (+53.7% 🔺)4.204s (+6.0% 🔺)1.084s101.08x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)11/12
🐘 PostgresExpress5/12
▲ VercelExpress5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)💻 Local10/12
Nitro💻 Local10/12
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

…and improve graph lookup
- Consolidate mergeRawManifest into manifest-utils.ts as shared function
- Replace any types with proper ManifestEntry type using generics
- Fix graph lookup to check both workflow and default exports
TooTallNate

This comment was marked as outdated.

The manifest adapter now detects and handles both formats:
- Legacy (pre-1.0.0): file-path keyed structure
- New (1.0.0+): ID-keyed structure with exports
This ensures the web UI can display workflow graphs from both old
and new deployments during the transition period.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Addressed the backwards compatibility concern for web-shared and web o11y tooling.

The manifest-adapter.ts in the web package now detects and handles both formats:

  • Legacy (pre-1.0.0): file-path keyed structure { [filePath]: { [workflowName]: { workflowId, graph } } }
  • New (1.0.0+): ID-keyed structure { [workflowId]: { name, exports, graph } }

The adapter auto-detects the format by checking for the presence of name and exports fields in workflow entries. This ensures the web UI can display workflow graphs from both old and new deployments during the transition period.

See commit e5b5cff for the changes.

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.

4 participants

@TooTallNate@pranaygp@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('^' + ".*" + ' New and improved `manifest.json` format by TooTallNate · Pull Request #902 · vercel/workflow · GitHub
Skip to content

New and improved manifest.json format - #902

Open
TooTallNate wants to merge 4 commits into
mainfrom
01-30-new_and_improved_manifest.json_format
Open

New and improved manifest.json format#902
TooTallNate wants to merge 4 commits into
mainfrom
01-30-new_and_improved_manifest.json_format

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Jan 30, 2026

Copy link
Copy Markdown
Member

Overview

The manifest.json format has been inverted from a file-path-keyed structure to an ID-keyed structure. This makes it easier to look up entries by their ID and allows manifest entries to be passed directly to APIs like start().

Old Format (file-path-keyed)

{
steps: {
workflows/addition.ts: {
add: {
stepId: step//./workflows/addition//add
}
}
},
workflows: {
workflows/addition.ts: {
addition: {
workflowId: workflow//./workflows/addition//addition
}
}
}
}

New Format (ID-keyed)

{
steps: {
step//./workflows/addition//add: {
stepId: step//./workflows/addition//add,
name: add,
exports: {
default: workflows/addition.ts,
workflow: workflows/addition.ts
}
}
},
workflows: {
workflow//./workflows/addition//addition: {
workflowId: workflow//./workflows/addition//addition,
name: addition,
exports: {
default: workflows/addition.ts,
workflow: workflows/addition.ts
},
graph: {
nodes: [],
edges: []
}
}
},
classes: {
class//./utils/point//Point: {
classId: class//./utils/point//Point,
name: Point,
exports: {
default: utils/point.ts,
workflow: utils/point.ts
}
}
}
}

Key Changes

AspectOld FormatNew Format
Primary keyFile pathFull ID (e.g., step//./path//name)
Secondary keyFunction/class nameN/A (flat structure)
ID fieldOnly field in entryIncluded alongside other fields
Name fieldUsed as keyExplicit name field
Source/exportsNot includedexports object with condition keys

Benefits

  1. Direct API usage: Manifest entries can be passed directly to start() since they include workflowId
  2. O(1) lookups: Find any entry by ID without iterating through file paths
  3. Export conditions: The exports object maps bundle conditions (default, workflow) to source files
  4. Self-describing: Each entry contains its own ID, making entries portable and self-contained

Migration Notes

Code that previously accessed the manifest like this:

// Old formatconstworkflow=manifest.workflows[filePath][functionName];constid=workflow.workflowId;

Should now use:

// New format - direct lookup by IDconstworkflow=manifest.workflows[workflowId];// Or find by nameconstworkflow=Object.values(manifest.workflows).find(w=>w.name===functionName);

@changeset-bot

changeset-botBot commented Jan 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e5b5cff

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

This PR includes changesets to release 17 packages
NameType
@workflow/swc-pluginPatch
@workflow/world-testingPatch
@workflow/sveltekitPatch
@workflow/buildersPatch
@workflow/nitroPatch
@workflow/corePatch
@workflow/nestPatch
@workflow/nextPatch
workflow-devkit-compiler-playgroundPatch
@workflow/astroPatch
@workflow/cliPatch
@workflow/rollupPatch
workflowPatch
@workflow/vitePatch
@workflow/nuxtPatch
@workflow/docs-typecheckPatch
@workflow/web-sharedPatch

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

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

@github-actions

github-actionsBot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production479038517
✅ 💻 Local Development438032470
✅ 📦 Local Production438032470
✅ 🐘 Local Postgres438032470
✅ 🪟 Windows470047
❌ 🌍 Community Worlds311690200
✅ 📋 Other129012141
Total20001691462315

❌ Failed Tests

🌍 Community Worlds (169 failed)

mongodb (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (43 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4304
✅ example4304
✅ express4304
✅ fastify4304
✅ hono4304
✅ nextjs-turbopack4601
✅ nextjs-webpack4601
✅ nitro4304
✅ nuxt4304
✅ sveltekit4304
✅ vite4304
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5420
✅ redis-dev300
❌ redis5420
✅ starter-dev300
❌ starter4430
✅ turso-dev300
❌ turso5420
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4304
✅ e2e-local-postgres-nest-stable4304
✅ e2e-local-prod-nest-stable4304

📋 View full workflow run

@vercel

vercelBot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

@TooTallNate
TooTallNate marked this pull request as ready for review January 30, 2026 19:34
CopilotAI review requested due to automatic review settings January 30, 2026 19:34

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the manifest.json format from a file-path-keyed structure to an ID-keyed structure, making manifest entries directly usable with APIs like start() and enabling O(1) lookups by ID.

Changes:

  • Rust SWC plugin now emits ID-keyed manifest format with name and source fields
  • TypeScript builders convert raw manifests (with source) to final manifests (with exports keyed by condition)
  • New mergeManifests utility provides deep merging of exports from multiple bundle contexts
  • All test fixtures, integration tests, and documentation updated to reflect the new format

Reviewed changes

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

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsRust transform updated to emit ID-keyed format with name/source fields
packages/builders/src/apply-swc-transform.tsAdded RawWorkflowManifest and updated WorkflowManifest types for new format
packages/builders/src/manifest-utils.tsNew file with deepMergeManifestEntries and mergeManifests utilities
packages/builders/src/base-builder.tsUpdated mergeRawManifest and addGraphsToWorkflows for new format
packages/builders/src/swc-esbuild-plugin.tsAdded mergeRawManifest function to convert raw to final manifest
packages/sveltekit/src/builder.tsUpdated to use new mergeManifests utility
packages/nitro/src/builders.tsUpdated to use new mergeManifests utility
packages/next/src/builder.tsUpdated to use new mergeManifests utility
packages/nest/src/builder.tsUpdated to use new mergeManifests utility
packages/builders/src/standalone.tsRemoved local mergeManifests in favor of shared utility
packages/builders/src/vercel-build-output-api.tsUpdated to use new mergeManifests utility
packages/builders/src/index.tsExported new mergeManifests utilities
packages/core/e2e/manifest.test.tsUpdated tests for ID-keyed manifest structure
workbench/example/api/trigger.tsUpdated to look up workflows by ID with backwards compatibility
packages/world-testing/src/*.mtsUpdated to use ID-keyed manifest for workflow invocation
packages/swc-plugin-workflow/spec.mdComprehensive documentation update explaining new format
All test fixture filesUpdated expected output for new manifest format

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

@TooTallNate
TooTallNateforce-pushed the 01-30-new_and_improved_manifest.json_format branch from 6b5c84a to 67fe853CompareJanuary 30, 2026 20:24
pranaygp
pranaygp previously approved these changes Jan 30, 2026

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

Code Review Summary

The core changes are solid and well-implemented. The transformation from file-path-keyed to ID-keyed manifest format is correctly implemented across all packages with good test coverage and excellent documentation.

Highlights

  • Well-documented PR description with clear migration notes
  • New manifest-utils.ts provides clean, reusable utilities
  • Types are well-defined with RawWorkflowManifest vs WorkflowManifest distinction
  • SWC plugin spec document updated comprehensively
  • O(1) lookups by ID is a nice performance improvement

Minor Suggestions (non-blocking)

  1. Duplicate mergeRawManifest function - The function exists in both base-builder.ts:27-48 and swc-esbuild-plugin.ts:26-51. Consider consolidating into manifest-utils.ts.

  2. Use of any types in manifest-utils.ts:20-23 - Could use proper typing given WorkflowManifest types are available:

    typeManifestEntry={name: string;exports: Record<string,string>;[key: string]: unknown;};
  3. Consider marking as breaking in changeset if this affects external tooling that reads manifest.json.

  4. Graph lookup fallback - In addGraphsToWorkflows, the lookup relies on exports.workflow being present. Consider checking both exports.workflow and exports.default.

LGTM! 🚀

Comment threadpackages/builders/src/base-builder.ts Outdated
Comment threadpackages/builders/src/manifest-utils.ts Outdated
Comment threadpackages/builders/src/base-builder.ts Outdated
"@workflow/next": patch
---

New and improved `manifest.json` format

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.

This is a significant format change. Should this be marked as BREAKING CHANGE per project conventions if external tooling reads manifest.json?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

This is a valid concern. However, the manifest.json format is currently internal to the build tooling and not intended as a public API for external consumers. The format is read by our own runtime and tooling. If there are external tools relying on this format, we should document and version it properly in a separate PR. For now, keeping this as a patch release seems appropriate since it's an internal improvement.

@VaguelySeriousVaguelySerious left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

web-shared and web o11y code use the manifest and should presumably be updated, CC @karthikscale3

@github-actions

github-actionsBot commented Feb 5, 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🥇 Next.js (Turbopack)0.039s (+2.9%)1.017s (~)0.978s101.00x
💻 LocalNitro0.042s (+48.3% 🔺)1.008s (~)0.966s101.08x
💻 LocalExpress0.043s (-2.3%)1.007s (~)0.964s101.10x
🐘 PostgresNitro0.199s (-41.9% 🟢)1.014s (~)0.815s105.09x
🐘 PostgresExpress0.270s (+14.2% 🔺)1.014s (~)0.745s106.89x
🐘 PostgresNext.js (Turbopack)0.362s (+7.5% 🔺)1.022s (-1.2%)0.660s109.23x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.582s (-11.2% 🟢)1.639s (+10.4% 🔺)1.057s101.00x
▲ VercelNitro0.678s (-7.5% 🟢)1.484s (-14.9% 🟢)0.806s101.16x
▲ VercelNext.js (Turbopack)0.678s (-1.0%)1.484s (-3.2%)0.806s101.17x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.105s (+0.9%)2.013s (~)0.908s101.00x
💻 LocalNitro1.115s (+3.3%)2.007s (~)0.892s101.01x
💻 LocalExpress1.116s (~)2.007s (~)0.891s101.01x
🐘 PostgresExpress2.154s (-3.2%)3.017s (~)0.863s101.95x
🐘 PostgresNext.js (Turbopack)2.212s (+8.0% 🔺)2.921s (+3.5%)0.709s102.00x
🐘 PostgresNitro2.330s (-1.9%)3.015s (~)0.685s102.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.767s (-4.1%)3.736s (+2.0%)0.969s101.00x
▲ VercelNitro2.773s (-11.0% 🟢)3.702s (-6.4% 🟢)0.929s101.00x
▲ VercelNext.js (Turbopack)2.779s (-4.0%)3.661s (~)0.882s101.00x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.728s (~)11.021s (~)0.293s31.00x
💻 LocalExpress10.842s (~)11.017s (~)0.175s31.01x
💻 LocalNitro10.859s (+2.8%)11.017s (~)0.158s31.01x
🐘 PostgresNext.js (Turbopack)15.098s (~)16.041s (+3.3%)0.943s21.41x
🐘 PostgresNitro15.671s (-22.6% 🟢)16.033s (-23.8% 🟢)0.362s21.46x
🐘 PostgresExpress20.512s (~)21.034s (~)0.522s21.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express22.356s (-1.5%)23.602s (+2.3%)1.246s21.00x
▲ VercelNext.js (Turbopack)22.709s (-3.8%)23.792s (-0.9%)1.083s21.02x
▲ VercelNitro22.985s (-1.5%)23.324s (-4.0%)0.340s21.03x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)27.215s (~)28.041s (~)0.826s31.00x
💻 LocalExpress27.485s (~)28.029s (~)0.544s31.01x
💻 LocalNitro27.564s (+2.9%)28.034s (+3.7%)0.470s31.01x
🐘 PostgresNext.js (Turbopack)38.023s (+1.8%)38.547s (+1.2%)0.523s21.40x
🐘 PostgresNitro39.058s (-21.6% 🟢)39.560s (-21.8% 🟢)0.502s21.44x
🐘 PostgresExpress50.425s (~)51.073s (~)0.648s21.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)56.721s (-1.9%)57.529s (-1.3%)0.808s21.00x
▲ VercelNitro57.728s (~)58.766s (~)1.038s21.02x
▲ VercelExpress58.147s (+1.4%)58.952s (+1.1%)0.805s21.03x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)56.740s (+0.5%)57.060s (~)0.320s21.00x
💻 LocalExpress57.319s (~)58.046s (~)0.726s21.01x
💻 LocalNitro57.468s (+3.3%)58.044s (+3.6%)0.576s21.01x
🐘 PostgresNext.js (Turbopack)75.369s (~)76.129s (~)0.760s21.33x
🐘 PostgresNitro86.881s (-13.5% 🟢)87.112s (-13.9% 🟢)0.231s21.53x
🐘 PostgresExpress100.233s (~)101.156s (~)0.923s11.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express117.016s (-1.9%)117.547s (-2.2%)0.531s11.00x
▲ VercelNitro117.662s (-5.7% 🟢)118.650s (-5.1% 🟢)0.988s11.01x
▲ VercelNext.js (Turbopack)118.620s (-2.7%)119.046s (-3.0%)0.426s11.01x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.405s (+2.2%)2.010s (~)0.606s151.00x
💻 LocalExpress1.415s (-1.0%)2.007s (~)0.592s151.01x
💻 LocalNitro1.446s (+6.8% 🔺)2.007s (~)0.561s151.03x
🐘 PostgresNext.js (Turbopack)2.102s (-10.3% 🟢)2.751s (+1.7%)0.648s111.50x
🐘 PostgresNitro2.313s (-7.4% 🟢)3.013s (~)0.700s101.65x
🐘 PostgresExpress2.345s (+4.0%)3.014s (~)0.668s101.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.769s (-14.4% 🟢)3.616s (-11.7% 🟢)0.847s91.00x
▲ VercelExpress2.914s (+1.0%)3.944s (+4.2%)1.030s81.05x
▲ VercelNitro2.963s (~)3.842s (-2.2%)0.879s81.07x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.501s (+1.4%)3.039s (~)0.537s101.00x
💻 LocalExpress2.605s (-1.6%)3.013s (~)0.409s101.04x
💻 LocalNitro2.660s (+18.9% 🔺)3.014s (-6.3% 🟢)0.354s101.06x
🐘 PostgresExpress9.178s (+3.9%)9.856s (+5.9% 🔺)0.678s43.67x
🐘 PostgresNitro9.321s (+11.0% 🔺)10.041s (+11.1% 🔺)0.720s33.73x
🐘 PostgresNext.js (Turbopack)12.782s (-5.5% 🟢)13.371s (-4.7%)0.589s35.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.734s (+3.7%)4.477s (+4.0%)0.743s71.00x
▲ VercelNitro4.184s (+16.0% 🔺)4.914s (-6.7% 🟢)0.730s71.12x
▲ VercelExpress5.175s (+70.3% 🔺)5.733s (+50.8% 🔺)0.557s61.39x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)6.901s (+6.6% 🔺)7.575s (+5.8% 🔺)0.674s51.00x
💻 LocalExpress7.444s (-4.7%)8.435s (-3.3%)0.991s41.08x
💻 LocalNitro7.689s (+25.7% 🔺)8.676s (+28.7% 🔺)0.987s41.11x
🐘 PostgresNitro47.695s (-6.8% 🟢)48.189s (-7.6% 🟢)0.494s16.91x
🐘 PostgresExpress51.132s (+7.1% 🔺)51.462s (+6.5% 🔺)0.330s17.41x
🐘 PostgresNext.js (Turbopack)52.865s (-4.8%)53.101s (-5.7% 🟢)0.236s17.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.512s (-5.9% 🟢)4.038s (-9.4% 🟢)0.526s81.00x
▲ VercelNitro3.661s (+4.8%)4.344s (+5.4% 🔺)0.682s81.04x
▲ VercelExpress3.792s (+9.8% 🔺)4.407s (+7.7% 🔺)0.615s71.08x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.434s (+1.6%)2.011s (~)0.577s151.00x
💻 LocalExpress1.446s (~)2.006s (~)0.560s151.01x
💻 LocalNitro1.469s (+8.2% 🔺)2.007s (~)0.538s151.02x
🐘 PostgresExpress2.084s (+3.8%)2.515s (-3.7%)0.431s121.45x
🐘 PostgresNext.js (Turbopack)2.120s (-5.2% 🟢)2.606s (-8.3% 🟢)0.486s121.48x
🐘 PostgresNitro2.237s (+6.0% 🔺)2.833s (+12.1% 🔺)0.597s111.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.672s (-8.1% 🟢)3.774s (+2.4%)1.102s81.00x
▲ VercelNitro2.786s (-1.6%)3.633s (-2.7%)0.847s91.04x
▲ VercelNext.js (Turbopack)2.810s (-0.8%)3.660s (~)0.849s91.05x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.676s (-7.3% 🟢)3.015s (-0.7%)0.338s101.00x
💻 LocalNext.js (Turbopack)2.718s (+3.3%)3.021s (~)0.303s101.02x
💻 LocalNitro2.727s (+16.7% 🔺)3.034s (-8.3% 🟢)0.307s101.02x
🐘 PostgresExpress10.088s (-16.4% 🟢)10.703s (-13.5% 🟢)0.616s33.77x
🐘 PostgresNitro12.878s (+5.5% 🔺)13.083s (+5.9% 🔺)0.205s34.81x
🐘 PostgresNext.js (Turbopack)12.974s (-3.3%)13.375s (-3.0%)0.401s34.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.946s (-1.1%)3.811s (+2.0%)0.864s81.00x
▲ VercelNext.js (Turbopack)3.105s (+4.5%)3.776s (-1.0%)0.672s81.05x
▲ VercelExpress3.108s (+2.4%)3.986s (+9.6% 🔺)0.878s81.05x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)7.594s (+11.0% 🔺)8.132s (-1.2%)0.538s41.00x
💻 LocalExpress7.981s (-1.6%)8.789s (+3.9%)0.808s41.05x
💻 LocalNitro8.275s (+26.8% 🔺)9.235s (+22.6% 🔺)0.959s41.09x
🐘 PostgresExpress50.392s (-3.5%)51.147s (-3.9%)0.755s16.64x
🐘 PostgresNitro52.298s (-2.0%)53.129s (-1.9%)0.831s16.89x
🐘 PostgresNext.js (Turbopack)56.811s (+1.2%)57.197s (+1.6%)0.386s17.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.376s (+1.5%)3.943s (~)0.567s81.00x
▲ VercelExpress3.505s (-10.7% 🟢)4.302s (-4.3%)0.797s71.04x
▲ VercelNitro4.008s (+26.2% 🔺)4.533s (+19.7% 🔺)0.525s71.19x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.148s (+4.5%)1.003s (~)0.015s (+2.7%)1.027s (~)0.879s101.00x
💻 LocalExpress0.184s (-2.9%)0.992s (~)0.015s (-0.7%)1.022s (~)0.838s101.24x
💻 LocalNitro0.186s (+60.9% 🔺)0.993s (-0.7%)0.014s (+22.4% 🔺)1.022s (~)0.836s101.26x
🐘 PostgresNext.js (Turbopack)1.021s (-14.3% 🟢)1.452s (-21.7% 🟢)0.001s (+Infinity% 🔺)1.621s (-19.7% 🟢)0.600s106.91x
🐘 PostgresNitro1.333s (+16.3% 🔺)1.705s (-10.0% 🟢)0.000s (-100.0% 🟢)2.013s (~)0.680s109.03x
🐘 PostgresExpress2.426s (+2.0%)2.618s (-1.8%)0.000s (~)3.015s (~)0.590s1016.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.895s (+1.5%)3.279s (~)0.246s (+9.0% 🔺)4.031s (+1.4%)1.136s101.00x
▲ VercelNext.js (Turbopack)3.028s (+1.1%)3.181s (-3.8%)0.226s (+29.6% 🔺)3.933s (-1.2%)0.904s101.05x
▲ VercelExpress3.120s (+4.0%)3.393s (+1.9%)0.247s (+53.7% 🔺)4.204s (+6.0% 🔺)1.084s101.08x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)11/12
🐘 PostgresExpress5/12
▲ VercelExpress5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)💻 Local10/12
Nitro💻 Local10/12
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

…and improve graph lookup
- Consolidate mergeRawManifest into manifest-utils.ts as shared function
- Replace any types with proper ManifestEntry type using generics
- Fix graph lookup to check both workflow and default exports
TooTallNate

This comment was marked as outdated.

The manifest adapter now detects and handles both formats:
- Legacy (pre-1.0.0): file-path keyed structure
- New (1.0.0+): ID-keyed structure with exports
This ensures the web UI can display workflow graphs from both old
and new deployments during the transition period.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Addressed the backwards compatibility concern for web-shared and web o11y tooling.

The manifest-adapter.ts in the web package now detects and handles both formats:

  • Legacy (pre-1.0.0): file-path keyed structure { [filePath]: { [workflowName]: { workflowId, graph } } }
  • New (1.0.0+): ID-keyed structure { [workflowId]: { name, exports, graph } }

The adapter auto-detects the format by checking for the presence of name and exports fields in workflow entries. This ensures the web UI can display workflow graphs from both old and new deployments during the transition period.

See commit e5b5cff for the changes.

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.

4 participants

@TooTallNate@pranaygp@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" + ' New and improved `manifest.json` format by TooTallNate · Pull Request #902 · vercel/workflow · GitHub
Skip to content

New and improved manifest.json format - #902

Open
TooTallNate wants to merge 4 commits into
mainfrom
01-30-new_and_improved_manifest.json_format
Open

New and improved manifest.json format#902
TooTallNate wants to merge 4 commits into
mainfrom
01-30-new_and_improved_manifest.json_format

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Jan 30, 2026

Copy link
Copy Markdown
Member

Overview

The manifest.json format has been inverted from a file-path-keyed structure to an ID-keyed structure. This makes it easier to look up entries by their ID and allows manifest entries to be passed directly to APIs like start().

Old Format (file-path-keyed)

{
steps: {
workflows/addition.ts: {
add: {
stepId: step//./workflows/addition//add
}
}
},
workflows: {
workflows/addition.ts: {
addition: {
workflowId: workflow//./workflows/addition//addition
}
}
}
}

New Format (ID-keyed)

{
steps: {
step//./workflows/addition//add: {
stepId: step//./workflows/addition//add,
name: add,
exports: {
default: workflows/addition.ts,
workflow: workflows/addition.ts
}
}
},
workflows: {
workflow//./workflows/addition//addition: {
workflowId: workflow//./workflows/addition//addition,
name: addition,
exports: {
default: workflows/addition.ts,
workflow: workflows/addition.ts
},
graph: {
nodes: [],
edges: []
}
}
},
classes: {
class//./utils/point//Point: {
classId: class//./utils/point//Point,
name: Point,
exports: {
default: utils/point.ts,
workflow: utils/point.ts
}
}
}
}

Key Changes

AspectOld FormatNew Format
Primary keyFile pathFull ID (e.g., step//./path//name)
Secondary keyFunction/class nameN/A (flat structure)
ID fieldOnly field in entryIncluded alongside other fields
Name fieldUsed as keyExplicit name field
Source/exportsNot includedexports object with condition keys

Benefits

  1. Direct API usage: Manifest entries can be passed directly to start() since they include workflowId
  2. O(1) lookups: Find any entry by ID without iterating through file paths
  3. Export conditions: The exports object maps bundle conditions (default, workflow) to source files
  4. Self-describing: Each entry contains its own ID, making entries portable and self-contained

Migration Notes

Code that previously accessed the manifest like this:

// Old formatconstworkflow=manifest.workflows[filePath][functionName];constid=workflow.workflowId;

Should now use:

// New format - direct lookup by IDconstworkflow=manifest.workflows[workflowId];// Or find by nameconstworkflow=Object.values(manifest.workflows).find(w=>w.name===functionName);

@changeset-bot

changeset-botBot commented Jan 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e5b5cff

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

This PR includes changesets to release 17 packages
NameType
@workflow/swc-pluginPatch
@workflow/world-testingPatch
@workflow/sveltekitPatch
@workflow/buildersPatch
@workflow/nitroPatch
@workflow/corePatch
@workflow/nestPatch
@workflow/nextPatch
workflow-devkit-compiler-playgroundPatch
@workflow/astroPatch
@workflow/cliPatch
@workflow/rollupPatch
workflowPatch
@workflow/vitePatch
@workflow/nuxtPatch
@workflow/docs-typecheckPatch
@workflow/web-sharedPatch

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

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

@github-actions

github-actionsBot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production479038517
✅ 💻 Local Development438032470
✅ 📦 Local Production438032470
✅ 🐘 Local Postgres438032470
✅ 🪟 Windows470047
❌ 🌍 Community Worlds311690200
✅ 📋 Other129012141
Total20001691462315

❌ Failed Tests

🌍 Community Worlds (169 failed)

mongodb (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (43 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4304
✅ example4304
✅ express4304
✅ fastify4304
✅ hono4304
✅ nextjs-turbopack4601
✅ nextjs-webpack4601
✅ nitro4304
✅ nuxt4304
✅ sveltekit4304
✅ vite4304
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5420
✅ redis-dev300
❌ redis5420
✅ starter-dev300
❌ starter4430
✅ turso-dev300
❌ turso5420
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4304
✅ e2e-local-postgres-nest-stable4304
✅ e2e-local-prod-nest-stable4304

📋 View full workflow run

@vercel

vercelBot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

@TooTallNate
TooTallNate marked this pull request as ready for review January 30, 2026 19:34
CopilotAI review requested due to automatic review settings January 30, 2026 19:34

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the manifest.json format from a file-path-keyed structure to an ID-keyed structure, making manifest entries directly usable with APIs like start() and enabling O(1) lookups by ID.

Changes:

  • Rust SWC plugin now emits ID-keyed manifest format with name and source fields
  • TypeScript builders convert raw manifests (with source) to final manifests (with exports keyed by condition)
  • New mergeManifests utility provides deep merging of exports from multiple bundle contexts
  • All test fixtures, integration tests, and documentation updated to reflect the new format

Reviewed changes

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

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsRust transform updated to emit ID-keyed format with name/source fields
packages/builders/src/apply-swc-transform.tsAdded RawWorkflowManifest and updated WorkflowManifest types for new format
packages/builders/src/manifest-utils.tsNew file with deepMergeManifestEntries and mergeManifests utilities
packages/builders/src/base-builder.tsUpdated mergeRawManifest and addGraphsToWorkflows for new format
packages/builders/src/swc-esbuild-plugin.tsAdded mergeRawManifest function to convert raw to final manifest
packages/sveltekit/src/builder.tsUpdated to use new mergeManifests utility
packages/nitro/src/builders.tsUpdated to use new mergeManifests utility
packages/next/src/builder.tsUpdated to use new mergeManifests utility
packages/nest/src/builder.tsUpdated to use new mergeManifests utility
packages/builders/src/standalone.tsRemoved local mergeManifests in favor of shared utility
packages/builders/src/vercel-build-output-api.tsUpdated to use new mergeManifests utility
packages/builders/src/index.tsExported new mergeManifests utilities
packages/core/e2e/manifest.test.tsUpdated tests for ID-keyed manifest structure
workbench/example/api/trigger.tsUpdated to look up workflows by ID with backwards compatibility
packages/world-testing/src/*.mtsUpdated to use ID-keyed manifest for workflow invocation
packages/swc-plugin-workflow/spec.mdComprehensive documentation update explaining new format
All test fixture filesUpdated expected output for new manifest format

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

@TooTallNate
TooTallNateforce-pushed the 01-30-new_and_improved_manifest.json_format branch from 6b5c84a to 67fe853CompareJanuary 30, 2026 20:24
pranaygp
pranaygp previously approved these changes Jan 30, 2026

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

Code Review Summary

The core changes are solid and well-implemented. The transformation from file-path-keyed to ID-keyed manifest format is correctly implemented across all packages with good test coverage and excellent documentation.

Highlights

  • Well-documented PR description with clear migration notes
  • New manifest-utils.ts provides clean, reusable utilities
  • Types are well-defined with RawWorkflowManifest vs WorkflowManifest distinction
  • SWC plugin spec document updated comprehensively
  • O(1) lookups by ID is a nice performance improvement

Minor Suggestions (non-blocking)

  1. Duplicate mergeRawManifest function - The function exists in both base-builder.ts:27-48 and swc-esbuild-plugin.ts:26-51. Consider consolidating into manifest-utils.ts.

  2. Use of any types in manifest-utils.ts:20-23 - Could use proper typing given WorkflowManifest types are available:

    typeManifestEntry={name: string;exports: Record<string,string>;[key: string]: unknown;};
  3. Consider marking as breaking in changeset if this affects external tooling that reads manifest.json.

  4. Graph lookup fallback - In addGraphsToWorkflows, the lookup relies on exports.workflow being present. Consider checking both exports.workflow and exports.default.

LGTM! 🚀

Comment threadpackages/builders/src/base-builder.ts Outdated
Comment threadpackages/builders/src/manifest-utils.ts Outdated
Comment threadpackages/builders/src/base-builder.ts Outdated
"@workflow/next": patch
---

New and improved `manifest.json` format

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.

This is a significant format change. Should this be marked as BREAKING CHANGE per project conventions if external tooling reads manifest.json?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

This is a valid concern. However, the manifest.json format is currently internal to the build tooling and not intended as a public API for external consumers. The format is read by our own runtime and tooling. If there are external tools relying on this format, we should document and version it properly in a separate PR. For now, keeping this as a patch release seems appropriate since it's an internal improvement.

@VaguelySeriousVaguelySerious left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

web-shared and web o11y code use the manifest and should presumably be updated, CC @karthikscale3

@github-actions

github-actionsBot commented Feb 5, 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🥇 Next.js (Turbopack)0.039s (+2.9%)1.017s (~)0.978s101.00x
💻 LocalNitro0.042s (+48.3% 🔺)1.008s (~)0.966s101.08x
💻 LocalExpress0.043s (-2.3%)1.007s (~)0.964s101.10x
🐘 PostgresNitro0.199s (-41.9% 🟢)1.014s (~)0.815s105.09x
🐘 PostgresExpress0.270s (+14.2% 🔺)1.014s (~)0.745s106.89x
🐘 PostgresNext.js (Turbopack)0.362s (+7.5% 🔺)1.022s (-1.2%)0.660s109.23x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.582s (-11.2% 🟢)1.639s (+10.4% 🔺)1.057s101.00x
▲ VercelNitro0.678s (-7.5% 🟢)1.484s (-14.9% 🟢)0.806s101.16x
▲ VercelNext.js (Turbopack)0.678s (-1.0%)1.484s (-3.2%)0.806s101.17x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.105s (+0.9%)2.013s (~)0.908s101.00x
💻 LocalNitro1.115s (+3.3%)2.007s (~)0.892s101.01x
💻 LocalExpress1.116s (~)2.007s (~)0.891s101.01x
🐘 PostgresExpress2.154s (-3.2%)3.017s (~)0.863s101.95x
🐘 PostgresNext.js (Turbopack)2.212s (+8.0% 🔺)2.921s (+3.5%)0.709s102.00x
🐘 PostgresNitro2.330s (-1.9%)3.015s (~)0.685s102.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.767s (-4.1%)3.736s (+2.0%)0.969s101.00x
▲ VercelNitro2.773s (-11.0% 🟢)3.702s (-6.4% 🟢)0.929s101.00x
▲ VercelNext.js (Turbopack)2.779s (-4.0%)3.661s (~)0.882s101.00x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.728s (~)11.021s (~)0.293s31.00x
💻 LocalExpress10.842s (~)11.017s (~)0.175s31.01x
💻 LocalNitro10.859s (+2.8%)11.017s (~)0.158s31.01x
🐘 PostgresNext.js (Turbopack)15.098s (~)16.041s (+3.3%)0.943s21.41x
🐘 PostgresNitro15.671s (-22.6% 🟢)16.033s (-23.8% 🟢)0.362s21.46x
🐘 PostgresExpress20.512s (~)21.034s (~)0.522s21.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express22.356s (-1.5%)23.602s (+2.3%)1.246s21.00x
▲ VercelNext.js (Turbopack)22.709s (-3.8%)23.792s (-0.9%)1.083s21.02x
▲ VercelNitro22.985s (-1.5%)23.324s (-4.0%)0.340s21.03x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)27.215s (~)28.041s (~)0.826s31.00x
💻 LocalExpress27.485s (~)28.029s (~)0.544s31.01x
💻 LocalNitro27.564s (+2.9%)28.034s (+3.7%)0.470s31.01x
🐘 PostgresNext.js (Turbopack)38.023s (+1.8%)38.547s (+1.2%)0.523s21.40x
🐘 PostgresNitro39.058s (-21.6% 🟢)39.560s (-21.8% 🟢)0.502s21.44x
🐘 PostgresExpress50.425s (~)51.073s (~)0.648s21.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)56.721s (-1.9%)57.529s (-1.3%)0.808s21.00x
▲ VercelNitro57.728s (~)58.766s (~)1.038s21.02x
▲ VercelExpress58.147s (+1.4%)58.952s (+1.1%)0.805s21.03x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)56.740s (+0.5%)57.060s (~)0.320s21.00x
💻 LocalExpress57.319s (~)58.046s (~)0.726s21.01x
💻 LocalNitro57.468s (+3.3%)58.044s (+3.6%)0.576s21.01x
🐘 PostgresNext.js (Turbopack)75.369s (~)76.129s (~)0.760s21.33x
🐘 PostgresNitro86.881s (-13.5% 🟢)87.112s (-13.9% 🟢)0.231s21.53x
🐘 PostgresExpress100.233s (~)101.156s (~)0.923s11.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express117.016s (-1.9%)117.547s (-2.2%)0.531s11.00x
▲ VercelNitro117.662s (-5.7% 🟢)118.650s (-5.1% 🟢)0.988s11.01x
▲ VercelNext.js (Turbopack)118.620s (-2.7%)119.046s (-3.0%)0.426s11.01x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.405s (+2.2%)2.010s (~)0.606s151.00x
💻 LocalExpress1.415s (-1.0%)2.007s (~)0.592s151.01x
💻 LocalNitro1.446s (+6.8% 🔺)2.007s (~)0.561s151.03x
🐘 PostgresNext.js (Turbopack)2.102s (-10.3% 🟢)2.751s (+1.7%)0.648s111.50x
🐘 PostgresNitro2.313s (-7.4% 🟢)3.013s (~)0.700s101.65x
🐘 PostgresExpress2.345s (+4.0%)3.014s (~)0.668s101.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.769s (-14.4% 🟢)3.616s (-11.7% 🟢)0.847s91.00x
▲ VercelExpress2.914s (+1.0%)3.944s (+4.2%)1.030s81.05x
▲ VercelNitro2.963s (~)3.842s (-2.2%)0.879s81.07x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.501s (+1.4%)3.039s (~)0.537s101.00x
💻 LocalExpress2.605s (-1.6%)3.013s (~)0.409s101.04x
💻 LocalNitro2.660s (+18.9% 🔺)3.014s (-6.3% 🟢)0.354s101.06x
🐘 PostgresExpress9.178s (+3.9%)9.856s (+5.9% 🔺)0.678s43.67x
🐘 PostgresNitro9.321s (+11.0% 🔺)10.041s (+11.1% 🔺)0.720s33.73x
🐘 PostgresNext.js (Turbopack)12.782s (-5.5% 🟢)13.371s (-4.7%)0.589s35.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.734s (+3.7%)4.477s (+4.0%)0.743s71.00x
▲ VercelNitro4.184s (+16.0% 🔺)4.914s (-6.7% 🟢)0.730s71.12x
▲ VercelExpress5.175s (+70.3% 🔺)5.733s (+50.8% 🔺)0.557s61.39x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)6.901s (+6.6% 🔺)7.575s (+5.8% 🔺)0.674s51.00x
💻 LocalExpress7.444s (-4.7%)8.435s (-3.3%)0.991s41.08x
💻 LocalNitro7.689s (+25.7% 🔺)8.676s (+28.7% 🔺)0.987s41.11x
🐘 PostgresNitro47.695s (-6.8% 🟢)48.189s (-7.6% 🟢)0.494s16.91x
🐘 PostgresExpress51.132s (+7.1% 🔺)51.462s (+6.5% 🔺)0.330s17.41x
🐘 PostgresNext.js (Turbopack)52.865s (-4.8%)53.101s (-5.7% 🟢)0.236s17.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.512s (-5.9% 🟢)4.038s (-9.4% 🟢)0.526s81.00x
▲ VercelNitro3.661s (+4.8%)4.344s (+5.4% 🔺)0.682s81.04x
▲ VercelExpress3.792s (+9.8% 🔺)4.407s (+7.7% 🔺)0.615s71.08x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.434s (+1.6%)2.011s (~)0.577s151.00x
💻 LocalExpress1.446s (~)2.006s (~)0.560s151.01x
💻 LocalNitro1.469s (+8.2% 🔺)2.007s (~)0.538s151.02x
🐘 PostgresExpress2.084s (+3.8%)2.515s (-3.7%)0.431s121.45x
🐘 PostgresNext.js (Turbopack)2.120s (-5.2% 🟢)2.606s (-8.3% 🟢)0.486s121.48x
🐘 PostgresNitro2.237s (+6.0% 🔺)2.833s (+12.1% 🔺)0.597s111.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.672s (-8.1% 🟢)3.774s (+2.4%)1.102s81.00x
▲ VercelNitro2.786s (-1.6%)3.633s (-2.7%)0.847s91.04x
▲ VercelNext.js (Turbopack)2.810s (-0.8%)3.660s (~)0.849s91.05x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.676s (-7.3% 🟢)3.015s (-0.7%)0.338s101.00x
💻 LocalNext.js (Turbopack)2.718s (+3.3%)3.021s (~)0.303s101.02x
💻 LocalNitro2.727s (+16.7% 🔺)3.034s (-8.3% 🟢)0.307s101.02x
🐘 PostgresExpress10.088s (-16.4% 🟢)10.703s (-13.5% 🟢)0.616s33.77x
🐘 PostgresNitro12.878s (+5.5% 🔺)13.083s (+5.9% 🔺)0.205s34.81x
🐘 PostgresNext.js (Turbopack)12.974s (-3.3%)13.375s (-3.0%)0.401s34.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.946s (-1.1%)3.811s (+2.0%)0.864s81.00x
▲ VercelNext.js (Turbopack)3.105s (+4.5%)3.776s (-1.0%)0.672s81.05x
▲ VercelExpress3.108s (+2.4%)3.986s (+9.6% 🔺)0.878s81.05x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)7.594s (+11.0% 🔺)8.132s (-1.2%)0.538s41.00x
💻 LocalExpress7.981s (-1.6%)8.789s (+3.9%)0.808s41.05x
💻 LocalNitro8.275s (+26.8% 🔺)9.235s (+22.6% 🔺)0.959s41.09x
🐘 PostgresExpress50.392s (-3.5%)51.147s (-3.9%)0.755s16.64x
🐘 PostgresNitro52.298s (-2.0%)53.129s (-1.9%)0.831s16.89x
🐘 PostgresNext.js (Turbopack)56.811s (+1.2%)57.197s (+1.6%)0.386s17.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.376s (+1.5%)3.943s (~)0.567s81.00x
▲ VercelExpress3.505s (-10.7% 🟢)4.302s (-4.3%)0.797s71.04x
▲ VercelNitro4.008s (+26.2% 🔺)4.533s (+19.7% 🔺)0.525s71.19x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.148s (+4.5%)1.003s (~)0.015s (+2.7%)1.027s (~)0.879s101.00x
💻 LocalExpress0.184s (-2.9%)0.992s (~)0.015s (-0.7%)1.022s (~)0.838s101.24x
💻 LocalNitro0.186s (+60.9% 🔺)0.993s (-0.7%)0.014s (+22.4% 🔺)1.022s (~)0.836s101.26x
🐘 PostgresNext.js (Turbopack)1.021s (-14.3% 🟢)1.452s (-21.7% 🟢)0.001s (+Infinity% 🔺)1.621s (-19.7% 🟢)0.600s106.91x
🐘 PostgresNitro1.333s (+16.3% 🔺)1.705s (-10.0% 🟢)0.000s (-100.0% 🟢)2.013s (~)0.680s109.03x
🐘 PostgresExpress2.426s (+2.0%)2.618s (-1.8%)0.000s (~)3.015s (~)0.590s1016.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.895s (+1.5%)3.279s (~)0.246s (+9.0% 🔺)4.031s (+1.4%)1.136s101.00x
▲ VercelNext.js (Turbopack)3.028s (+1.1%)3.181s (-3.8%)0.226s (+29.6% 🔺)3.933s (-1.2%)0.904s101.05x
▲ VercelExpress3.120s (+4.0%)3.393s (+1.9%)0.247s (+53.7% 🔺)4.204s (+6.0% 🔺)1.084s101.08x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)11/12
🐘 PostgresExpress5/12
▲ VercelExpress5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)💻 Local10/12
Nitro💻 Local10/12
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

…and improve graph lookup
- Consolidate mergeRawManifest into manifest-utils.ts as shared function
- Replace any types with proper ManifestEntry type using generics
- Fix graph lookup to check both workflow and default exports
TooTallNate

This comment was marked as outdated.

The manifest adapter now detects and handles both formats:
- Legacy (pre-1.0.0): file-path keyed structure
- New (1.0.0+): ID-keyed structure with exports
This ensures the web UI can display workflow graphs from both old
and new deployments during the transition period.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Addressed the backwards compatibility concern for web-shared and web o11y tooling.

The manifest-adapter.ts in the web package now detects and handles both formats:

  • Legacy (pre-1.0.0): file-path keyed structure { [filePath]: { [workflowName]: { workflowId, graph } } }
  • New (1.0.0+): ID-keyed structure { [workflowId]: { name, exports, graph } }

The adapter auto-detects the format by checking for the presence of name and exports fields in workflow entries. This ensures the web UI can display workflow graphs from both old and new deployments during the transition period.

See commit e5b5cff for the changes.

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.

4 participants

@TooTallNate@pranaygp@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('^' + ".*" + ' New and improved `manifest.json` format by TooTallNate · Pull Request #902 · vercel/workflow · GitHub
Skip to content

New and improved manifest.json format - #902

Open
TooTallNate wants to merge 4 commits into
mainfrom
01-30-new_and_improved_manifest.json_format
Open

New and improved manifest.json format#902
TooTallNate wants to merge 4 commits into
mainfrom
01-30-new_and_improved_manifest.json_format

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Jan 30, 2026

Copy link
Copy Markdown
Member

Overview

The manifest.json format has been inverted from a file-path-keyed structure to an ID-keyed structure. This makes it easier to look up entries by their ID and allows manifest entries to be passed directly to APIs like start().

Old Format (file-path-keyed)

{
steps: {
workflows/addition.ts: {
add: {
stepId: step//./workflows/addition//add
}
}
},
workflows: {
workflows/addition.ts: {
addition: {
workflowId: workflow//./workflows/addition//addition
}
}
}
}

New Format (ID-keyed)

{
steps: {
step//./workflows/addition//add: {
stepId: step//./workflows/addition//add,
name: add,
exports: {
default: workflows/addition.ts,
workflow: workflows/addition.ts
}
}
},
workflows: {
workflow//./workflows/addition//addition: {
workflowId: workflow//./workflows/addition//addition,
name: addition,
exports: {
default: workflows/addition.ts,
workflow: workflows/addition.ts
},
graph: {
nodes: [],
edges: []
}
}
},
classes: {
class//./utils/point//Point: {
classId: class//./utils/point//Point,
name: Point,
exports: {
default: utils/point.ts,
workflow: utils/point.ts
}
}
}
}

Key Changes

AspectOld FormatNew Format
Primary keyFile pathFull ID (e.g., step//./path//name)
Secondary keyFunction/class nameN/A (flat structure)
ID fieldOnly field in entryIncluded alongside other fields
Name fieldUsed as keyExplicit name field
Source/exportsNot includedexports object with condition keys

Benefits

  1. Direct API usage: Manifest entries can be passed directly to start() since they include workflowId
  2. O(1) lookups: Find any entry by ID without iterating through file paths
  3. Export conditions: The exports object maps bundle conditions (default, workflow) to source files
  4. Self-describing: Each entry contains its own ID, making entries portable and self-contained

Migration Notes

Code that previously accessed the manifest like this:

// Old formatconstworkflow=manifest.workflows[filePath][functionName];constid=workflow.workflowId;

Should now use:

// New format - direct lookup by IDconstworkflow=manifest.workflows[workflowId];// Or find by nameconstworkflow=Object.values(manifest.workflows).find(w=>w.name===functionName);

@changeset-bot

changeset-botBot commented Jan 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e5b5cff

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

This PR includes changesets to release 17 packages
NameType
@workflow/swc-pluginPatch
@workflow/world-testingPatch
@workflow/sveltekitPatch
@workflow/buildersPatch
@workflow/nitroPatch
@workflow/corePatch
@workflow/nestPatch
@workflow/nextPatch
workflow-devkit-compiler-playgroundPatch
@workflow/astroPatch
@workflow/cliPatch
@workflow/rollupPatch
workflowPatch
@workflow/vitePatch
@workflow/nuxtPatch
@workflow/docs-typecheckPatch
@workflow/web-sharedPatch

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

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

@github-actions

github-actionsBot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production479038517
✅ 💻 Local Development438032470
✅ 📦 Local Production438032470
✅ 🐘 Local Postgres438032470
✅ 🪟 Windows470047
❌ 🌍 Community Worlds311690200
✅ 📋 Other129012141
Total20001691462315

❌ Failed Tests

🌍 Community Worlds (169 failed)

mongodb (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (43 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4304
✅ example4304
✅ express4304
✅ fastify4304
✅ hono4304
✅ nextjs-turbopack4601
✅ nextjs-webpack4601
✅ nitro4304
✅ nuxt4304
✅ sveltekit4304
✅ vite4304
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5420
✅ redis-dev300
❌ redis5420
✅ starter-dev300
❌ starter4430
✅ turso-dev300
❌ turso5420
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4304
✅ e2e-local-postgres-nest-stable4304
✅ e2e-local-prod-nest-stable4304

📋 View full workflow run

@vercel

vercelBot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

@TooTallNate
TooTallNate marked this pull request as ready for review January 30, 2026 19:34
CopilotAI review requested due to automatic review settings January 30, 2026 19:34

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the manifest.json format from a file-path-keyed structure to an ID-keyed structure, making manifest entries directly usable with APIs like start() and enabling O(1) lookups by ID.

Changes:

  • Rust SWC plugin now emits ID-keyed manifest format with name and source fields
  • TypeScript builders convert raw manifests (with source) to final manifests (with exports keyed by condition)
  • New mergeManifests utility provides deep merging of exports from multiple bundle contexts
  • All test fixtures, integration tests, and documentation updated to reflect the new format

Reviewed changes

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

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsRust transform updated to emit ID-keyed format with name/source fields
packages/builders/src/apply-swc-transform.tsAdded RawWorkflowManifest and updated WorkflowManifest types for new format
packages/builders/src/manifest-utils.tsNew file with deepMergeManifestEntries and mergeManifests utilities
packages/builders/src/base-builder.tsUpdated mergeRawManifest and addGraphsToWorkflows for new format
packages/builders/src/swc-esbuild-plugin.tsAdded mergeRawManifest function to convert raw to final manifest
packages/sveltekit/src/builder.tsUpdated to use new mergeManifests utility
packages/nitro/src/builders.tsUpdated to use new mergeManifests utility
packages/next/src/builder.tsUpdated to use new mergeManifests utility
packages/nest/src/builder.tsUpdated to use new mergeManifests utility
packages/builders/src/standalone.tsRemoved local mergeManifests in favor of shared utility
packages/builders/src/vercel-build-output-api.tsUpdated to use new mergeManifests utility
packages/builders/src/index.tsExported new mergeManifests utilities
packages/core/e2e/manifest.test.tsUpdated tests for ID-keyed manifest structure
workbench/example/api/trigger.tsUpdated to look up workflows by ID with backwards compatibility
packages/world-testing/src/*.mtsUpdated to use ID-keyed manifest for workflow invocation
packages/swc-plugin-workflow/spec.mdComprehensive documentation update explaining new format
All test fixture filesUpdated expected output for new manifest format

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

@TooTallNate
TooTallNateforce-pushed the 01-30-new_and_improved_manifest.json_format branch from 6b5c84a to 67fe853CompareJanuary 30, 2026 20:24
pranaygp
pranaygp previously approved these changes Jan 30, 2026

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

Code Review Summary

The core changes are solid and well-implemented. The transformation from file-path-keyed to ID-keyed manifest format is correctly implemented across all packages with good test coverage and excellent documentation.

Highlights

  • Well-documented PR description with clear migration notes
  • New manifest-utils.ts provides clean, reusable utilities
  • Types are well-defined with RawWorkflowManifest vs WorkflowManifest distinction
  • SWC plugin spec document updated comprehensively
  • O(1) lookups by ID is a nice performance improvement

Minor Suggestions (non-blocking)

  1. Duplicate mergeRawManifest function - The function exists in both base-builder.ts:27-48 and swc-esbuild-plugin.ts:26-51. Consider consolidating into manifest-utils.ts.

  2. Use of any types in manifest-utils.ts:20-23 - Could use proper typing given WorkflowManifest types are available:

    typeManifestEntry={name: string;exports: Record<string,string>;[key: string]: unknown;};
  3. Consider marking as breaking in changeset if this affects external tooling that reads manifest.json.

  4. Graph lookup fallback - In addGraphsToWorkflows, the lookup relies on exports.workflow being present. Consider checking both exports.workflow and exports.default.

LGTM! 🚀

Comment threadpackages/builders/src/base-builder.ts Outdated
Comment threadpackages/builders/src/manifest-utils.ts Outdated
Comment threadpackages/builders/src/base-builder.ts Outdated
"@workflow/next": patch
---

New and improved `manifest.json` format

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.

This is a significant format change. Should this be marked as BREAKING CHANGE per project conventions if external tooling reads manifest.json?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

This is a valid concern. However, the manifest.json format is currently internal to the build tooling and not intended as a public API for external consumers. The format is read by our own runtime and tooling. If there are external tools relying on this format, we should document and version it properly in a separate PR. For now, keeping this as a patch release seems appropriate since it's an internal improvement.

@VaguelySeriousVaguelySerious left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

web-shared and web o11y code use the manifest and should presumably be updated, CC @karthikscale3

@github-actions

github-actionsBot commented Feb 5, 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🥇 Next.js (Turbopack)0.039s (+2.9%)1.017s (~)0.978s101.00x
💻 LocalNitro0.042s (+48.3% 🔺)1.008s (~)0.966s101.08x
💻 LocalExpress0.043s (-2.3%)1.007s (~)0.964s101.10x
🐘 PostgresNitro0.199s (-41.9% 🟢)1.014s (~)0.815s105.09x
🐘 PostgresExpress0.270s (+14.2% 🔺)1.014s (~)0.745s106.89x
🐘 PostgresNext.js (Turbopack)0.362s (+7.5% 🔺)1.022s (-1.2%)0.660s109.23x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.582s (-11.2% 🟢)1.639s (+10.4% 🔺)1.057s101.00x
▲ VercelNitro0.678s (-7.5% 🟢)1.484s (-14.9% 🟢)0.806s101.16x
▲ VercelNext.js (Turbopack)0.678s (-1.0%)1.484s (-3.2%)0.806s101.17x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.105s (+0.9%)2.013s (~)0.908s101.00x
💻 LocalNitro1.115s (+3.3%)2.007s (~)0.892s101.01x
💻 LocalExpress1.116s (~)2.007s (~)0.891s101.01x
🐘 PostgresExpress2.154s (-3.2%)3.017s (~)0.863s101.95x
🐘 PostgresNext.js (Turbopack)2.212s (+8.0% 🔺)2.921s (+3.5%)0.709s102.00x
🐘 PostgresNitro2.330s (-1.9%)3.015s (~)0.685s102.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.767s (-4.1%)3.736s (+2.0%)0.969s101.00x
▲ VercelNitro2.773s (-11.0% 🟢)3.702s (-6.4% 🟢)0.929s101.00x
▲ VercelNext.js (Turbopack)2.779s (-4.0%)3.661s (~)0.882s101.00x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.728s (~)11.021s (~)0.293s31.00x
💻 LocalExpress10.842s (~)11.017s (~)0.175s31.01x
💻 LocalNitro10.859s (+2.8%)11.017s (~)0.158s31.01x
🐘 PostgresNext.js (Turbopack)15.098s (~)16.041s (+3.3%)0.943s21.41x
🐘 PostgresNitro15.671s (-22.6% 🟢)16.033s (-23.8% 🟢)0.362s21.46x
🐘 PostgresExpress20.512s (~)21.034s (~)0.522s21.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express22.356s (-1.5%)23.602s (+2.3%)1.246s21.00x
▲ VercelNext.js (Turbopack)22.709s (-3.8%)23.792s (-0.9%)1.083s21.02x
▲ VercelNitro22.985s (-1.5%)23.324s (-4.0%)0.340s21.03x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)27.215s (~)28.041s (~)0.826s31.00x
💻 LocalExpress27.485s (~)28.029s (~)0.544s31.01x
💻 LocalNitro27.564s (+2.9%)28.034s (+3.7%)0.470s31.01x
🐘 PostgresNext.js (Turbopack)38.023s (+1.8%)38.547s (+1.2%)0.523s21.40x
🐘 PostgresNitro39.058s (-21.6% 🟢)39.560s (-21.8% 🟢)0.502s21.44x
🐘 PostgresExpress50.425s (~)51.073s (~)0.648s21.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)56.721s (-1.9%)57.529s (-1.3%)0.808s21.00x
▲ VercelNitro57.728s (~)58.766s (~)1.038s21.02x
▲ VercelExpress58.147s (+1.4%)58.952s (+1.1%)0.805s21.03x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)56.740s (+0.5%)57.060s (~)0.320s21.00x
💻 LocalExpress57.319s (~)58.046s (~)0.726s21.01x
💻 LocalNitro57.468s (+3.3%)58.044s (+3.6%)0.576s21.01x
🐘 PostgresNext.js (Turbopack)75.369s (~)76.129s (~)0.760s21.33x
🐘 PostgresNitro86.881s (-13.5% 🟢)87.112s (-13.9% 🟢)0.231s21.53x
🐘 PostgresExpress100.233s (~)101.156s (~)0.923s11.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express117.016s (-1.9%)117.547s (-2.2%)0.531s11.00x
▲ VercelNitro117.662s (-5.7% 🟢)118.650s (-5.1% 🟢)0.988s11.01x
▲ VercelNext.js (Turbopack)118.620s (-2.7%)119.046s (-3.0%)0.426s11.01x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.405s (+2.2%)2.010s (~)0.606s151.00x
💻 LocalExpress1.415s (-1.0%)2.007s (~)0.592s151.01x
💻 LocalNitro1.446s (+6.8% 🔺)2.007s (~)0.561s151.03x
🐘 PostgresNext.js (Turbopack)2.102s (-10.3% 🟢)2.751s (+1.7%)0.648s111.50x
🐘 PostgresNitro2.313s (-7.4% 🟢)3.013s (~)0.700s101.65x
🐘 PostgresExpress2.345s (+4.0%)3.014s (~)0.668s101.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.769s (-14.4% 🟢)3.616s (-11.7% 🟢)0.847s91.00x
▲ VercelExpress2.914s (+1.0%)3.944s (+4.2%)1.030s81.05x
▲ VercelNitro2.963s (~)3.842s (-2.2%)0.879s81.07x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.501s (+1.4%)3.039s (~)0.537s101.00x
💻 LocalExpress2.605s (-1.6%)3.013s (~)0.409s101.04x
💻 LocalNitro2.660s (+18.9% 🔺)3.014s (-6.3% 🟢)0.354s101.06x
🐘 PostgresExpress9.178s (+3.9%)9.856s (+5.9% 🔺)0.678s43.67x
🐘 PostgresNitro9.321s (+11.0% 🔺)10.041s (+11.1% 🔺)0.720s33.73x
🐘 PostgresNext.js (Turbopack)12.782s (-5.5% 🟢)13.371s (-4.7%)0.589s35.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.734s (+3.7%)4.477s (+4.0%)0.743s71.00x
▲ VercelNitro4.184s (+16.0% 🔺)4.914s (-6.7% 🟢)0.730s71.12x
▲ VercelExpress5.175s (+70.3% 🔺)5.733s (+50.8% 🔺)0.557s61.39x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)6.901s (+6.6% 🔺)7.575s (+5.8% 🔺)0.674s51.00x
💻 LocalExpress7.444s (-4.7%)8.435s (-3.3%)0.991s41.08x
💻 LocalNitro7.689s (+25.7% 🔺)8.676s (+28.7% 🔺)0.987s41.11x
🐘 PostgresNitro47.695s (-6.8% 🟢)48.189s (-7.6% 🟢)0.494s16.91x
🐘 PostgresExpress51.132s (+7.1% 🔺)51.462s (+6.5% 🔺)0.330s17.41x
🐘 PostgresNext.js (Turbopack)52.865s (-4.8%)53.101s (-5.7% 🟢)0.236s17.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.512s (-5.9% 🟢)4.038s (-9.4% 🟢)0.526s81.00x
▲ VercelNitro3.661s (+4.8%)4.344s (+5.4% 🔺)0.682s81.04x
▲ VercelExpress3.792s (+9.8% 🔺)4.407s (+7.7% 🔺)0.615s71.08x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.434s (+1.6%)2.011s (~)0.577s151.00x
💻 LocalExpress1.446s (~)2.006s (~)0.560s151.01x
💻 LocalNitro1.469s (+8.2% 🔺)2.007s (~)0.538s151.02x
🐘 PostgresExpress2.084s (+3.8%)2.515s (-3.7%)0.431s121.45x
🐘 PostgresNext.js (Turbopack)2.120s (-5.2% 🟢)2.606s (-8.3% 🟢)0.486s121.48x
🐘 PostgresNitro2.237s (+6.0% 🔺)2.833s (+12.1% 🔺)0.597s111.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.672s (-8.1% 🟢)3.774s (+2.4%)1.102s81.00x
▲ VercelNitro2.786s (-1.6%)3.633s (-2.7%)0.847s91.04x
▲ VercelNext.js (Turbopack)2.810s (-0.8%)3.660s (~)0.849s91.05x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.676s (-7.3% 🟢)3.015s (-0.7%)0.338s101.00x
💻 LocalNext.js (Turbopack)2.718s (+3.3%)3.021s (~)0.303s101.02x
💻 LocalNitro2.727s (+16.7% 🔺)3.034s (-8.3% 🟢)0.307s101.02x
🐘 PostgresExpress10.088s (-16.4% 🟢)10.703s (-13.5% 🟢)0.616s33.77x
🐘 PostgresNitro12.878s (+5.5% 🔺)13.083s (+5.9% 🔺)0.205s34.81x
🐘 PostgresNext.js (Turbopack)12.974s (-3.3%)13.375s (-3.0%)0.401s34.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.946s (-1.1%)3.811s (+2.0%)0.864s81.00x
▲ VercelNext.js (Turbopack)3.105s (+4.5%)3.776s (-1.0%)0.672s81.05x
▲ VercelExpress3.108s (+2.4%)3.986s (+9.6% 🔺)0.878s81.05x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)7.594s (+11.0% 🔺)8.132s (-1.2%)0.538s41.00x
💻 LocalExpress7.981s (-1.6%)8.789s (+3.9%)0.808s41.05x
💻 LocalNitro8.275s (+26.8% 🔺)9.235s (+22.6% 🔺)0.959s41.09x
🐘 PostgresExpress50.392s (-3.5%)51.147s (-3.9%)0.755s16.64x
🐘 PostgresNitro52.298s (-2.0%)53.129s (-1.9%)0.831s16.89x
🐘 PostgresNext.js (Turbopack)56.811s (+1.2%)57.197s (+1.6%)0.386s17.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.376s (+1.5%)3.943s (~)0.567s81.00x
▲ VercelExpress3.505s (-10.7% 🟢)4.302s (-4.3%)0.797s71.04x
▲ VercelNitro4.008s (+26.2% 🔺)4.533s (+19.7% 🔺)0.525s71.19x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.148s (+4.5%)1.003s (~)0.015s (+2.7%)1.027s (~)0.879s101.00x
💻 LocalExpress0.184s (-2.9%)0.992s (~)0.015s (-0.7%)1.022s (~)0.838s101.24x
💻 LocalNitro0.186s (+60.9% 🔺)0.993s (-0.7%)0.014s (+22.4% 🔺)1.022s (~)0.836s101.26x
🐘 PostgresNext.js (Turbopack)1.021s (-14.3% 🟢)1.452s (-21.7% 🟢)0.001s (+Infinity% 🔺)1.621s (-19.7% 🟢)0.600s106.91x
🐘 PostgresNitro1.333s (+16.3% 🔺)1.705s (-10.0% 🟢)0.000s (-100.0% 🟢)2.013s (~)0.680s109.03x
🐘 PostgresExpress2.426s (+2.0%)2.618s (-1.8%)0.000s (~)3.015s (~)0.590s1016.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.895s (+1.5%)3.279s (~)0.246s (+9.0% 🔺)4.031s (+1.4%)1.136s101.00x
▲ VercelNext.js (Turbopack)3.028s (+1.1%)3.181s (-3.8%)0.226s (+29.6% 🔺)3.933s (-1.2%)0.904s101.05x
▲ VercelExpress3.120s (+4.0%)3.393s (+1.9%)0.247s (+53.7% 🔺)4.204s (+6.0% 🔺)1.084s101.08x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)11/12
🐘 PostgresExpress5/12
▲ VercelExpress5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)💻 Local10/12
Nitro💻 Local10/12
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

…and improve graph lookup
- Consolidate mergeRawManifest into manifest-utils.ts as shared function
- Replace any types with proper ManifestEntry type using generics
- Fix graph lookup to check both workflow and default exports
TooTallNate

This comment was marked as outdated.

The manifest adapter now detects and handles both formats:
- Legacy (pre-1.0.0): file-path keyed structure
- New (1.0.0+): ID-keyed structure with exports
This ensures the web UI can display workflow graphs from both old
and new deployments during the transition period.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Addressed the backwards compatibility concern for web-shared and web o11y tooling.

The manifest-adapter.ts in the web package now detects and handles both formats:

  • Legacy (pre-1.0.0): file-path keyed structure { [filePath]: { [workflowName]: { workflowId, graph } } }
  • New (1.0.0+): ID-keyed structure { [workflowId]: { name, exports, graph } }

The adapter auto-detects the format by checking for the presence of name and exports fields in workflow entries. This ensures the web UI can display workflow graphs from both old and new deployments during the transition period.

See commit e5b5cff for the changes.

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.

4 participants

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

New and improved manifest.json format - #902

Open
TooTallNate wants to merge 4 commits into
mainfrom
01-30-new_and_improved_manifest.json_format
Open

New and improved manifest.json format#902
TooTallNate wants to merge 4 commits into
mainfrom
01-30-new_and_improved_manifest.json_format

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Jan 30, 2026

Copy link
Copy Markdown
Member

Overview

The manifest.json format has been inverted from a file-path-keyed structure to an ID-keyed structure. This makes it easier to look up entries by their ID and allows manifest entries to be passed directly to APIs like start().

Old Format (file-path-keyed)

{
steps: {
workflows/addition.ts: {
add: {
stepId: step//./workflows/addition//add
}
}
},
workflows: {
workflows/addition.ts: {
addition: {
workflowId: workflow//./workflows/addition//addition
}
}
}
}

New Format (ID-keyed)

{
steps: {
step//./workflows/addition//add: {
stepId: step//./workflows/addition//add,
name: add,
exports: {
default: workflows/addition.ts,
workflow: workflows/addition.ts
}
}
},
workflows: {
workflow//./workflows/addition//addition: {
workflowId: workflow//./workflows/addition//addition,
name: addition,
exports: {
default: workflows/addition.ts,
workflow: workflows/addition.ts
},
graph: {
nodes: [],
edges: []
}
}
},
classes: {
class//./utils/point//Point: {
classId: class//./utils/point//Point,
name: Point,
exports: {
default: utils/point.ts,
workflow: utils/point.ts
}
}
}
}

Key Changes

AspectOld FormatNew Format
Primary keyFile pathFull ID (e.g., step//./path//name)
Secondary keyFunction/class nameN/A (flat structure)
ID fieldOnly field in entryIncluded alongside other fields
Name fieldUsed as keyExplicit name field
Source/exportsNot includedexports object with condition keys

Benefits

  1. Direct API usage: Manifest entries can be passed directly to start() since they include workflowId
  2. O(1) lookups: Find any entry by ID without iterating through file paths
  3. Export conditions: The exports object maps bundle conditions (default, workflow) to source files
  4. Self-describing: Each entry contains its own ID, making entries portable and self-contained

Migration Notes

Code that previously accessed the manifest like this:

// Old formatconstworkflow=manifest.workflows[filePath][functionName];constid=workflow.workflowId;

Should now use:

// New format - direct lookup by IDconstworkflow=manifest.workflows[workflowId];// Or find by nameconstworkflow=Object.values(manifest.workflows).find(w=>w.name===functionName);

@changeset-bot

changeset-botBot commented Jan 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e5b5cff

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

This PR includes changesets to release 17 packages
NameType
@workflow/swc-pluginPatch
@workflow/world-testingPatch
@workflow/sveltekitPatch
@workflow/buildersPatch
@workflow/nitroPatch
@workflow/corePatch
@workflow/nestPatch
@workflow/nextPatch
workflow-devkit-compiler-playgroundPatch
@workflow/astroPatch
@workflow/cliPatch
@workflow/rollupPatch
workflowPatch
@workflow/vitePatch
@workflow/nuxtPatch
@workflow/docs-typecheckPatch
@workflow/web-sharedPatch

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

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

@github-actions

github-actionsBot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production479038517
✅ 💻 Local Development438032470
✅ 📦 Local Production438032470
✅ 🐘 Local Postgres438032470
✅ 🪟 Windows470047
❌ 🌍 Community Worlds311690200
✅ 📋 Other129012141
Total20001691462315

❌ Failed Tests

🌍 Community Worlds (169 failed)

mongodb (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (43 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4304
✅ example4304
✅ express4304
✅ fastify4304
✅ hono4304
✅ nextjs-turbopack4601
✅ nextjs-webpack4601
✅ nitro4304
✅ nuxt4304
✅ sveltekit4304
✅ vite4304
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5420
✅ redis-dev300
❌ redis5420
✅ starter-dev300
❌ starter4430
✅ turso-dev300
❌ turso5420
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4304
✅ e2e-local-postgres-nest-stable4304
✅ e2e-local-prod-nest-stable4304

📋 View full workflow run

@vercel

vercelBot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

@TooTallNate
TooTallNate marked this pull request as ready for review January 30, 2026 19:34
CopilotAI review requested due to automatic review settings January 30, 2026 19:34

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the manifest.json format from a file-path-keyed structure to an ID-keyed structure, making manifest entries directly usable with APIs like start() and enabling O(1) lookups by ID.

Changes:

  • Rust SWC plugin now emits ID-keyed manifest format with name and source fields
  • TypeScript builders convert raw manifests (with source) to final manifests (with exports keyed by condition)
  • New mergeManifests utility provides deep merging of exports from multiple bundle contexts
  • All test fixtures, integration tests, and documentation updated to reflect the new format

Reviewed changes

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

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsRust transform updated to emit ID-keyed format with name/source fields
packages/builders/src/apply-swc-transform.tsAdded RawWorkflowManifest and updated WorkflowManifest types for new format
packages/builders/src/manifest-utils.tsNew file with deepMergeManifestEntries and mergeManifests utilities
packages/builders/src/base-builder.tsUpdated mergeRawManifest and addGraphsToWorkflows for new format
packages/builders/src/swc-esbuild-plugin.tsAdded mergeRawManifest function to convert raw to final manifest
packages/sveltekit/src/builder.tsUpdated to use new mergeManifests utility
packages/nitro/src/builders.tsUpdated to use new mergeManifests utility
packages/next/src/builder.tsUpdated to use new mergeManifests utility
packages/nest/src/builder.tsUpdated to use new mergeManifests utility
packages/builders/src/standalone.tsRemoved local mergeManifests in favor of shared utility
packages/builders/src/vercel-build-output-api.tsUpdated to use new mergeManifests utility
packages/builders/src/index.tsExported new mergeManifests utilities
packages/core/e2e/manifest.test.tsUpdated tests for ID-keyed manifest structure
workbench/example/api/trigger.tsUpdated to look up workflows by ID with backwards compatibility
packages/world-testing/src/*.mtsUpdated to use ID-keyed manifest for workflow invocation
packages/swc-plugin-workflow/spec.mdComprehensive documentation update explaining new format
All test fixture filesUpdated expected output for new manifest format

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

@TooTallNate
TooTallNateforce-pushed the 01-30-new_and_improved_manifest.json_format branch from 6b5c84a to 67fe853CompareJanuary 30, 2026 20:24
pranaygp
pranaygp previously approved these changes Jan 30, 2026

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

Code Review Summary

The core changes are solid and well-implemented. The transformation from file-path-keyed to ID-keyed manifest format is correctly implemented across all packages with good test coverage and excellent documentation.

Highlights

  • Well-documented PR description with clear migration notes
  • New manifest-utils.ts provides clean, reusable utilities
  • Types are well-defined with RawWorkflowManifest vs WorkflowManifest distinction
  • SWC plugin spec document updated comprehensively
  • O(1) lookups by ID is a nice performance improvement

Minor Suggestions (non-blocking)

  1. Duplicate mergeRawManifest function - The function exists in both base-builder.ts:27-48 and swc-esbuild-plugin.ts:26-51. Consider consolidating into manifest-utils.ts.

  2. Use of any types in manifest-utils.ts:20-23 - Could use proper typing given WorkflowManifest types are available:

    typeManifestEntry={name: string;exports: Record<string,string>;[key: string]: unknown;};
  3. Consider marking as breaking in changeset if this affects external tooling that reads manifest.json.

  4. Graph lookup fallback - In addGraphsToWorkflows, the lookup relies on exports.workflow being present. Consider checking both exports.workflow and exports.default.

LGTM! 🚀

Comment threadpackages/builders/src/base-builder.ts Outdated
Comment threadpackages/builders/src/manifest-utils.ts Outdated
Comment threadpackages/builders/src/base-builder.ts Outdated
"@workflow/next": patch
---

New and improved `manifest.json` format

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.

This is a significant format change. Should this be marked as BREAKING CHANGE per project conventions if external tooling reads manifest.json?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

This is a valid concern. However, the manifest.json format is currently internal to the build tooling and not intended as a public API for external consumers. The format is read by our own runtime and tooling. If there are external tools relying on this format, we should document and version it properly in a separate PR. For now, keeping this as a patch release seems appropriate since it's an internal improvement.

@VaguelySeriousVaguelySerious left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

web-shared and web o11y code use the manifest and should presumably be updated, CC @karthikscale3

@github-actions

github-actionsBot commented Feb 5, 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🥇 Next.js (Turbopack)0.039s (+2.9%)1.017s (~)0.978s101.00x
💻 LocalNitro0.042s (+48.3% 🔺)1.008s (~)0.966s101.08x
💻 LocalExpress0.043s (-2.3%)1.007s (~)0.964s101.10x
🐘 PostgresNitro0.199s (-41.9% 🟢)1.014s (~)0.815s105.09x
🐘 PostgresExpress0.270s (+14.2% 🔺)1.014s (~)0.745s106.89x
🐘 PostgresNext.js (Turbopack)0.362s (+7.5% 🔺)1.022s (-1.2%)0.660s109.23x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.582s (-11.2% 🟢)1.639s (+10.4% 🔺)1.057s101.00x
▲ VercelNitro0.678s (-7.5% 🟢)1.484s (-14.9% 🟢)0.806s101.16x
▲ VercelNext.js (Turbopack)0.678s (-1.0%)1.484s (-3.2%)0.806s101.17x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.105s (+0.9%)2.013s (~)0.908s101.00x
💻 LocalNitro1.115s (+3.3%)2.007s (~)0.892s101.01x
💻 LocalExpress1.116s (~)2.007s (~)0.891s101.01x
🐘 PostgresExpress2.154s (-3.2%)3.017s (~)0.863s101.95x
🐘 PostgresNext.js (Turbopack)2.212s (+8.0% 🔺)2.921s (+3.5%)0.709s102.00x
🐘 PostgresNitro2.330s (-1.9%)3.015s (~)0.685s102.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.767s (-4.1%)3.736s (+2.0%)0.969s101.00x
▲ VercelNitro2.773s (-11.0% 🟢)3.702s (-6.4% 🟢)0.929s101.00x
▲ VercelNext.js (Turbopack)2.779s (-4.0%)3.661s (~)0.882s101.00x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.728s (~)11.021s (~)0.293s31.00x
💻 LocalExpress10.842s (~)11.017s (~)0.175s31.01x
💻 LocalNitro10.859s (+2.8%)11.017s (~)0.158s31.01x
🐘 PostgresNext.js (Turbopack)15.098s (~)16.041s (+3.3%)0.943s21.41x
🐘 PostgresNitro15.671s (-22.6% 🟢)16.033s (-23.8% 🟢)0.362s21.46x
🐘 PostgresExpress20.512s (~)21.034s (~)0.522s21.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express22.356s (-1.5%)23.602s (+2.3%)1.246s21.00x
▲ VercelNext.js (Turbopack)22.709s (-3.8%)23.792s (-0.9%)1.083s21.02x
▲ VercelNitro22.985s (-1.5%)23.324s (-4.0%)0.340s21.03x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)27.215s (~)28.041s (~)0.826s31.00x
💻 LocalExpress27.485s (~)28.029s (~)0.544s31.01x
💻 LocalNitro27.564s (+2.9%)28.034s (+3.7%)0.470s31.01x
🐘 PostgresNext.js (Turbopack)38.023s (+1.8%)38.547s (+1.2%)0.523s21.40x
🐘 PostgresNitro39.058s (-21.6% 🟢)39.560s (-21.8% 🟢)0.502s21.44x
🐘 PostgresExpress50.425s (~)51.073s (~)0.648s21.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)56.721s (-1.9%)57.529s (-1.3%)0.808s21.00x
▲ VercelNitro57.728s (~)58.766s (~)1.038s21.02x
▲ VercelExpress58.147s (+1.4%)58.952s (+1.1%)0.805s21.03x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)56.740s (+0.5%)57.060s (~)0.320s21.00x
💻 LocalExpress57.319s (~)58.046s (~)0.726s21.01x
💻 LocalNitro57.468s (+3.3%)58.044s (+3.6%)0.576s21.01x
🐘 PostgresNext.js (Turbopack)75.369s (~)76.129s (~)0.760s21.33x
🐘 PostgresNitro86.881s (-13.5% 🟢)87.112s (-13.9% 🟢)0.231s21.53x
🐘 PostgresExpress100.233s (~)101.156s (~)0.923s11.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express117.016s (-1.9%)117.547s (-2.2%)0.531s11.00x
▲ VercelNitro117.662s (-5.7% 🟢)118.650s (-5.1% 🟢)0.988s11.01x
▲ VercelNext.js (Turbopack)118.620s (-2.7%)119.046s (-3.0%)0.426s11.01x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.405s (+2.2%)2.010s (~)0.606s151.00x
💻 LocalExpress1.415s (-1.0%)2.007s (~)0.592s151.01x
💻 LocalNitro1.446s (+6.8% 🔺)2.007s (~)0.561s151.03x
🐘 PostgresNext.js (Turbopack)2.102s (-10.3% 🟢)2.751s (+1.7%)0.648s111.50x
🐘 PostgresNitro2.313s (-7.4% 🟢)3.013s (~)0.700s101.65x
🐘 PostgresExpress2.345s (+4.0%)3.014s (~)0.668s101.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.769s (-14.4% 🟢)3.616s (-11.7% 🟢)0.847s91.00x
▲ VercelExpress2.914s (+1.0%)3.944s (+4.2%)1.030s81.05x
▲ VercelNitro2.963s (~)3.842s (-2.2%)0.879s81.07x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.501s (+1.4%)3.039s (~)0.537s101.00x
💻 LocalExpress2.605s (-1.6%)3.013s (~)0.409s101.04x
💻 LocalNitro2.660s (+18.9% 🔺)3.014s (-6.3% 🟢)0.354s101.06x
🐘 PostgresExpress9.178s (+3.9%)9.856s (+5.9% 🔺)0.678s43.67x
🐘 PostgresNitro9.321s (+11.0% 🔺)10.041s (+11.1% 🔺)0.720s33.73x
🐘 PostgresNext.js (Turbopack)12.782s (-5.5% 🟢)13.371s (-4.7%)0.589s35.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.734s (+3.7%)4.477s (+4.0%)0.743s71.00x
▲ VercelNitro4.184s (+16.0% 🔺)4.914s (-6.7% 🟢)0.730s71.12x
▲ VercelExpress5.175s (+70.3% 🔺)5.733s (+50.8% 🔺)0.557s61.39x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)6.901s (+6.6% 🔺)7.575s (+5.8% 🔺)0.674s51.00x
💻 LocalExpress7.444s (-4.7%)8.435s (-3.3%)0.991s41.08x
💻 LocalNitro7.689s (+25.7% 🔺)8.676s (+28.7% 🔺)0.987s41.11x
🐘 PostgresNitro47.695s (-6.8% 🟢)48.189s (-7.6% 🟢)0.494s16.91x
🐘 PostgresExpress51.132s (+7.1% 🔺)51.462s (+6.5% 🔺)0.330s17.41x
🐘 PostgresNext.js (Turbopack)52.865s (-4.8%)53.101s (-5.7% 🟢)0.236s17.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.512s (-5.9% 🟢)4.038s (-9.4% 🟢)0.526s81.00x
▲ VercelNitro3.661s (+4.8%)4.344s (+5.4% 🔺)0.682s81.04x
▲ VercelExpress3.792s (+9.8% 🔺)4.407s (+7.7% 🔺)0.615s71.08x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.434s (+1.6%)2.011s (~)0.577s151.00x
💻 LocalExpress1.446s (~)2.006s (~)0.560s151.01x
💻 LocalNitro1.469s (+8.2% 🔺)2.007s (~)0.538s151.02x
🐘 PostgresExpress2.084s (+3.8%)2.515s (-3.7%)0.431s121.45x
🐘 PostgresNext.js (Turbopack)2.120s (-5.2% 🟢)2.606s (-8.3% 🟢)0.486s121.48x
🐘 PostgresNitro2.237s (+6.0% 🔺)2.833s (+12.1% 🔺)0.597s111.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.672s (-8.1% 🟢)3.774s (+2.4%)1.102s81.00x
▲ VercelNitro2.786s (-1.6%)3.633s (-2.7%)0.847s91.04x
▲ VercelNext.js (Turbopack)2.810s (-0.8%)3.660s (~)0.849s91.05x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.676s (-7.3% 🟢)3.015s (-0.7%)0.338s101.00x
💻 LocalNext.js (Turbopack)2.718s (+3.3%)3.021s (~)0.303s101.02x
💻 LocalNitro2.727s (+16.7% 🔺)3.034s (-8.3% 🟢)0.307s101.02x
🐘 PostgresExpress10.088s (-16.4% 🟢)10.703s (-13.5% 🟢)0.616s33.77x
🐘 PostgresNitro12.878s (+5.5% 🔺)13.083s (+5.9% 🔺)0.205s34.81x
🐘 PostgresNext.js (Turbopack)12.974s (-3.3%)13.375s (-3.0%)0.401s34.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.946s (-1.1%)3.811s (+2.0%)0.864s81.00x
▲ VercelNext.js (Turbopack)3.105s (+4.5%)3.776s (-1.0%)0.672s81.05x
▲ VercelExpress3.108s (+2.4%)3.986s (+9.6% 🔺)0.878s81.05x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)7.594s (+11.0% 🔺)8.132s (-1.2%)0.538s41.00x
💻 LocalExpress7.981s (-1.6%)8.789s (+3.9%)0.808s41.05x
💻 LocalNitro8.275s (+26.8% 🔺)9.235s (+22.6% 🔺)0.959s41.09x
🐘 PostgresExpress50.392s (-3.5%)51.147s (-3.9%)0.755s16.64x
🐘 PostgresNitro52.298s (-2.0%)53.129s (-1.9%)0.831s16.89x
🐘 PostgresNext.js (Turbopack)56.811s (+1.2%)57.197s (+1.6%)0.386s17.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.376s (+1.5%)3.943s (~)0.567s81.00x
▲ VercelExpress3.505s (-10.7% 🟢)4.302s (-4.3%)0.797s71.04x
▲ VercelNitro4.008s (+26.2% 🔺)4.533s (+19.7% 🔺)0.525s71.19x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.148s (+4.5%)1.003s (~)0.015s (+2.7%)1.027s (~)0.879s101.00x
💻 LocalExpress0.184s (-2.9%)0.992s (~)0.015s (-0.7%)1.022s (~)0.838s101.24x
💻 LocalNitro0.186s (+60.9% 🔺)0.993s (-0.7%)0.014s (+22.4% 🔺)1.022s (~)0.836s101.26x
🐘 PostgresNext.js (Turbopack)1.021s (-14.3% 🟢)1.452s (-21.7% 🟢)0.001s (+Infinity% 🔺)1.621s (-19.7% 🟢)0.600s106.91x
🐘 PostgresNitro1.333s (+16.3% 🔺)1.705s (-10.0% 🟢)0.000s (-100.0% 🟢)2.013s (~)0.680s109.03x
🐘 PostgresExpress2.426s (+2.0%)2.618s (-1.8%)0.000s (~)3.015s (~)0.590s1016.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.895s (+1.5%)3.279s (~)0.246s (+9.0% 🔺)4.031s (+1.4%)1.136s101.00x
▲ VercelNext.js (Turbopack)3.028s (+1.1%)3.181s (-3.8%)0.226s (+29.6% 🔺)3.933s (-1.2%)0.904s101.05x
▲ VercelExpress3.120s (+4.0%)3.393s (+1.9%)0.247s (+53.7% 🔺)4.204s (+6.0% 🔺)1.084s101.08x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)11/12
🐘 PostgresExpress5/12
▲ VercelExpress5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)💻 Local10/12
Nitro💻 Local10/12
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

…and improve graph lookup
- Consolidate mergeRawManifest into manifest-utils.ts as shared function
- Replace any types with proper ManifestEntry type using generics
- Fix graph lookup to check both workflow and default exports
TooTallNate

This comment was marked as outdated.

The manifest adapter now detects and handles both formats:
- Legacy (pre-1.0.0): file-path keyed structure
- New (1.0.0+): ID-keyed structure with exports
This ensures the web UI can display workflow graphs from both old
and new deployments during the transition period.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Addressed the backwards compatibility concern for web-shared and web o11y tooling.

The manifest-adapter.ts in the web package now detects and handles both formats:

  • Legacy (pre-1.0.0): file-path keyed structure { [filePath]: { [workflowName]: { workflowId, graph } } }
  • New (1.0.0+): ID-keyed structure { [workflowId]: { name, exports, graph } }

The adapter auto-detects the format by checking for the presence of name and exports fields in workflow entries. This ensures the web UI can display workflow graphs from both old and new deployments during the transition period.

See commit e5b5cff for the changes.

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.

4 participants

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

New and improved manifest.json format - #902

Open
TooTallNate wants to merge 4 commits into
mainfrom
01-30-new_and_improved_manifest.json_format
Open

New and improved manifest.json format#902
TooTallNate wants to merge 4 commits into
mainfrom
01-30-new_and_improved_manifest.json_format

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Jan 30, 2026

Copy link
Copy Markdown
Member

Overview

The manifest.json format has been inverted from a file-path-keyed structure to an ID-keyed structure. This makes it easier to look up entries by their ID and allows manifest entries to be passed directly to APIs like start().

Old Format (file-path-keyed)

{
steps: {
workflows/addition.ts: {
add: {
stepId: step//./workflows/addition//add
}
}
},
workflows: {
workflows/addition.ts: {
addition: {
workflowId: workflow//./workflows/addition//addition
}
}
}
}

New Format (ID-keyed)

{
steps: {
step//./workflows/addition//add: {
stepId: step//./workflows/addition//add,
name: add,
exports: {
default: workflows/addition.ts,
workflow: workflows/addition.ts
}
}
},
workflows: {
workflow//./workflows/addition//addition: {
workflowId: workflow//./workflows/addition//addition,
name: addition,
exports: {
default: workflows/addition.ts,
workflow: workflows/addition.ts
},
graph: {
nodes: [],
edges: []
}
}
},
classes: {
class//./utils/point//Point: {
classId: class//./utils/point//Point,
name: Point,
exports: {
default: utils/point.ts,
workflow: utils/point.ts
}
}
}
}

Key Changes

AspectOld FormatNew Format
Primary keyFile pathFull ID (e.g., step//./path//name)
Secondary keyFunction/class nameN/A (flat structure)
ID fieldOnly field in entryIncluded alongside other fields
Name fieldUsed as keyExplicit name field
Source/exportsNot includedexports object with condition keys

Benefits

  1. Direct API usage: Manifest entries can be passed directly to start() since they include workflowId
  2. O(1) lookups: Find any entry by ID without iterating through file paths
  3. Export conditions: The exports object maps bundle conditions (default, workflow) to source files
  4. Self-describing: Each entry contains its own ID, making entries portable and self-contained

Migration Notes

Code that previously accessed the manifest like this:

// Old formatconstworkflow=manifest.workflows[filePath][functionName];constid=workflow.workflowId;

Should now use:

// New format - direct lookup by IDconstworkflow=manifest.workflows[workflowId];// Or find by nameconstworkflow=Object.values(manifest.workflows).find(w=>w.name===functionName);

@changeset-bot

changeset-botBot commented Jan 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e5b5cff

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

This PR includes changesets to release 17 packages
NameType
@workflow/swc-pluginPatch
@workflow/world-testingPatch
@workflow/sveltekitPatch
@workflow/buildersPatch
@workflow/nitroPatch
@workflow/corePatch
@workflow/nestPatch
@workflow/nextPatch
workflow-devkit-compiler-playgroundPatch
@workflow/astroPatch
@workflow/cliPatch
@workflow/rollupPatch
workflowPatch
@workflow/vitePatch
@workflow/nuxtPatch
@workflow/docs-typecheckPatch
@workflow/web-sharedPatch

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

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

@github-actions

github-actionsBot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production479038517
✅ 💻 Local Development438032470
✅ 📦 Local Production438032470
✅ 🐘 Local Postgres438032470
✅ 🪟 Windows470047
❌ 🌍 Community Worlds311690200
✅ 📋 Other129012141
Total20001691462315

❌ Failed Tests

🌍 Community Worlds (169 failed)

mongodb (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (43 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (42 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
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4304
✅ example4304
✅ express4304
✅ fastify4304
✅ hono4304
✅ nextjs-turbopack4601
✅ nextjs-webpack4601
✅ nitro4304
✅ nuxt4304
✅ sveltekit4304
✅ vite4304
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4304
✅ express-stable4304
✅ fastify-stable4304
✅ hono-stable4304
✅ nextjs-turbopack-stable4700
✅ nextjs-webpack-stable4700
✅ nitro-stable4304
✅ nuxt-stable4304
✅ sveltekit-stable4304
✅ vite-stable4304
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5420
✅ redis-dev300
❌ redis5420
✅ starter-dev300
❌ starter4430
✅ turso-dev300
❌ turso5420
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4304
✅ e2e-local-postgres-nest-stable4304
✅ e2e-local-prod-nest-stable4304

📋 View full workflow run

@vercel

vercelBot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

@TooTallNate
TooTallNate marked this pull request as ready for review January 30, 2026 19:34
CopilotAI review requested due to automatic review settings January 30, 2026 19:34

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the manifest.json format from a file-path-keyed structure to an ID-keyed structure, making manifest entries directly usable with APIs like start() and enabling O(1) lookups by ID.

Changes:

  • Rust SWC plugin now emits ID-keyed manifest format with name and source fields
  • TypeScript builders convert raw manifests (with source) to final manifests (with exports keyed by condition)
  • New mergeManifests utility provides deep merging of exports from multiple bundle contexts
  • All test fixtures, integration tests, and documentation updated to reflect the new format

Reviewed changes

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

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsRust transform updated to emit ID-keyed format with name/source fields
packages/builders/src/apply-swc-transform.tsAdded RawWorkflowManifest and updated WorkflowManifest types for new format
packages/builders/src/manifest-utils.tsNew file with deepMergeManifestEntries and mergeManifests utilities
packages/builders/src/base-builder.tsUpdated mergeRawManifest and addGraphsToWorkflows for new format
packages/builders/src/swc-esbuild-plugin.tsAdded mergeRawManifest function to convert raw to final manifest
packages/sveltekit/src/builder.tsUpdated to use new mergeManifests utility
packages/nitro/src/builders.tsUpdated to use new mergeManifests utility
packages/next/src/builder.tsUpdated to use new mergeManifests utility
packages/nest/src/builder.tsUpdated to use new mergeManifests utility
packages/builders/src/standalone.tsRemoved local mergeManifests in favor of shared utility
packages/builders/src/vercel-build-output-api.tsUpdated to use new mergeManifests utility
packages/builders/src/index.tsExported new mergeManifests utilities
packages/core/e2e/manifest.test.tsUpdated tests for ID-keyed manifest structure
workbench/example/api/trigger.tsUpdated to look up workflows by ID with backwards compatibility
packages/world-testing/src/*.mtsUpdated to use ID-keyed manifest for workflow invocation
packages/swc-plugin-workflow/spec.mdComprehensive documentation update explaining new format
All test fixture filesUpdated expected output for new manifest format

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

@TooTallNate
TooTallNateforce-pushed the 01-30-new_and_improved_manifest.json_format branch from 6b5c84a to 67fe853CompareJanuary 30, 2026 20:24
pranaygp
pranaygp previously approved these changes Jan 30, 2026

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

Code Review Summary

The core changes are solid and well-implemented. The transformation from file-path-keyed to ID-keyed manifest format is correctly implemented across all packages with good test coverage and excellent documentation.

Highlights

  • Well-documented PR description with clear migration notes
  • New manifest-utils.ts provides clean, reusable utilities
  • Types are well-defined with RawWorkflowManifest vs WorkflowManifest distinction
  • SWC plugin spec document updated comprehensively
  • O(1) lookups by ID is a nice performance improvement

Minor Suggestions (non-blocking)

  1. Duplicate mergeRawManifest function - The function exists in both base-builder.ts:27-48 and swc-esbuild-plugin.ts:26-51. Consider consolidating into manifest-utils.ts.

  2. Use of any types in manifest-utils.ts:20-23 - Could use proper typing given WorkflowManifest types are available:

    typeManifestEntry={name: string;exports: Record<string,string>;[key: string]: unknown;};
  3. Consider marking as breaking in changeset if this affects external tooling that reads manifest.json.

  4. Graph lookup fallback - In addGraphsToWorkflows, the lookup relies on exports.workflow being present. Consider checking both exports.workflow and exports.default.

LGTM! 🚀

Comment threadpackages/builders/src/base-builder.ts Outdated
Comment threadpackages/builders/src/manifest-utils.ts Outdated
Comment threadpackages/builders/src/base-builder.ts Outdated
"@workflow/next": patch
---

New and improved `manifest.json` format

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.

This is a significant format change. Should this be marked as BREAKING CHANGE per project conventions if external tooling reads manifest.json?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

This is a valid concern. However, the manifest.json format is currently internal to the build tooling and not intended as a public API for external consumers. The format is read by our own runtime and tooling. If there are external tools relying on this format, we should document and version it properly in a separate PR. For now, keeping this as a patch release seems appropriate since it's an internal improvement.

@VaguelySeriousVaguelySerious left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

web-shared and web o11y code use the manifest and should presumably be updated, CC @karthikscale3

@github-actions

github-actionsBot commented Feb 5, 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🥇 Next.js (Turbopack)0.039s (+2.9%)1.017s (~)0.978s101.00x
💻 LocalNitro0.042s (+48.3% 🔺)1.008s (~)0.966s101.08x
💻 LocalExpress0.043s (-2.3%)1.007s (~)0.964s101.10x
🐘 PostgresNitro0.199s (-41.9% 🟢)1.014s (~)0.815s105.09x
🐘 PostgresExpress0.270s (+14.2% 🔺)1.014s (~)0.745s106.89x
🐘 PostgresNext.js (Turbopack)0.362s (+7.5% 🔺)1.022s (-1.2%)0.660s109.23x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.582s (-11.2% 🟢)1.639s (+10.4% 🔺)1.057s101.00x
▲ VercelNitro0.678s (-7.5% 🟢)1.484s (-14.9% 🟢)0.806s101.16x
▲ VercelNext.js (Turbopack)0.678s (-1.0%)1.484s (-3.2%)0.806s101.17x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.105s (+0.9%)2.013s (~)0.908s101.00x
💻 LocalNitro1.115s (+3.3%)2.007s (~)0.892s101.01x
💻 LocalExpress1.116s (~)2.007s (~)0.891s101.01x
🐘 PostgresExpress2.154s (-3.2%)3.017s (~)0.863s101.95x
🐘 PostgresNext.js (Turbopack)2.212s (+8.0% 🔺)2.921s (+3.5%)0.709s102.00x
🐘 PostgresNitro2.330s (-1.9%)3.015s (~)0.685s102.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.767s (-4.1%)3.736s (+2.0%)0.969s101.00x
▲ VercelNitro2.773s (-11.0% 🟢)3.702s (-6.4% 🟢)0.929s101.00x
▲ VercelNext.js (Turbopack)2.779s (-4.0%)3.661s (~)0.882s101.00x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.728s (~)11.021s (~)0.293s31.00x
💻 LocalExpress10.842s (~)11.017s (~)0.175s31.01x
💻 LocalNitro10.859s (+2.8%)11.017s (~)0.158s31.01x
🐘 PostgresNext.js (Turbopack)15.098s (~)16.041s (+3.3%)0.943s21.41x
🐘 PostgresNitro15.671s (-22.6% 🟢)16.033s (-23.8% 🟢)0.362s21.46x
🐘 PostgresExpress20.512s (~)21.034s (~)0.522s21.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express22.356s (-1.5%)23.602s (+2.3%)1.246s21.00x
▲ VercelNext.js (Turbopack)22.709s (-3.8%)23.792s (-0.9%)1.083s21.02x
▲ VercelNitro22.985s (-1.5%)23.324s (-4.0%)0.340s21.03x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)27.215s (~)28.041s (~)0.826s31.00x
💻 LocalExpress27.485s (~)28.029s (~)0.544s31.01x
💻 LocalNitro27.564s (+2.9%)28.034s (+3.7%)0.470s31.01x
🐘 PostgresNext.js (Turbopack)38.023s (+1.8%)38.547s (+1.2%)0.523s21.40x
🐘 PostgresNitro39.058s (-21.6% 🟢)39.560s (-21.8% 🟢)0.502s21.44x
🐘 PostgresExpress50.425s (~)51.073s (~)0.648s21.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)56.721s (-1.9%)57.529s (-1.3%)0.808s21.00x
▲ VercelNitro57.728s (~)58.766s (~)1.038s21.02x
▲ VercelExpress58.147s (+1.4%)58.952s (+1.1%)0.805s21.03x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)56.740s (+0.5%)57.060s (~)0.320s21.00x
💻 LocalExpress57.319s (~)58.046s (~)0.726s21.01x
💻 LocalNitro57.468s (+3.3%)58.044s (+3.6%)0.576s21.01x
🐘 PostgresNext.js (Turbopack)75.369s (~)76.129s (~)0.760s21.33x
🐘 PostgresNitro86.881s (-13.5% 🟢)87.112s (-13.9% 🟢)0.231s21.53x
🐘 PostgresExpress100.233s (~)101.156s (~)0.923s11.77x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express117.016s (-1.9%)117.547s (-2.2%)0.531s11.00x
▲ VercelNitro117.662s (-5.7% 🟢)118.650s (-5.1% 🟢)0.988s11.01x
▲ VercelNext.js (Turbopack)118.620s (-2.7%)119.046s (-3.0%)0.426s11.01x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.405s (+2.2%)2.010s (~)0.606s151.00x
💻 LocalExpress1.415s (-1.0%)2.007s (~)0.592s151.01x
💻 LocalNitro1.446s (+6.8% 🔺)2.007s (~)0.561s151.03x
🐘 PostgresNext.js (Turbopack)2.102s (-10.3% 🟢)2.751s (+1.7%)0.648s111.50x
🐘 PostgresNitro2.313s (-7.4% 🟢)3.013s (~)0.700s101.65x
🐘 PostgresExpress2.345s (+4.0%)3.014s (~)0.668s101.67x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.769s (-14.4% 🟢)3.616s (-11.7% 🟢)0.847s91.00x
▲ VercelExpress2.914s (+1.0%)3.944s (+4.2%)1.030s81.05x
▲ VercelNitro2.963s (~)3.842s (-2.2%)0.879s81.07x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.501s (+1.4%)3.039s (~)0.537s101.00x
💻 LocalExpress2.605s (-1.6%)3.013s (~)0.409s101.04x
💻 LocalNitro2.660s (+18.9% 🔺)3.014s (-6.3% 🟢)0.354s101.06x
🐘 PostgresExpress9.178s (+3.9%)9.856s (+5.9% 🔺)0.678s43.67x
🐘 PostgresNitro9.321s (+11.0% 🔺)10.041s (+11.1% 🔺)0.720s33.73x
🐘 PostgresNext.js (Turbopack)12.782s (-5.5% 🟢)13.371s (-4.7%)0.589s35.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.734s (+3.7%)4.477s (+4.0%)0.743s71.00x
▲ VercelNitro4.184s (+16.0% 🔺)4.914s (-6.7% 🟢)0.730s71.12x
▲ VercelExpress5.175s (+70.3% 🔺)5.733s (+50.8% 🔺)0.557s61.39x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)6.901s (+6.6% 🔺)7.575s (+5.8% 🔺)0.674s51.00x
💻 LocalExpress7.444s (-4.7%)8.435s (-3.3%)0.991s41.08x
💻 LocalNitro7.689s (+25.7% 🔺)8.676s (+28.7% 🔺)0.987s41.11x
🐘 PostgresNitro47.695s (-6.8% 🟢)48.189s (-7.6% 🟢)0.494s16.91x
🐘 PostgresExpress51.132s (+7.1% 🔺)51.462s (+6.5% 🔺)0.330s17.41x
🐘 PostgresNext.js (Turbopack)52.865s (-4.8%)53.101s (-5.7% 🟢)0.236s17.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.512s (-5.9% 🟢)4.038s (-9.4% 🟢)0.526s81.00x
▲ VercelNitro3.661s (+4.8%)4.344s (+5.4% 🔺)0.682s81.04x
▲ VercelExpress3.792s (+9.8% 🔺)4.407s (+7.7% 🔺)0.615s71.08x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.434s (+1.6%)2.011s (~)0.577s151.00x
💻 LocalExpress1.446s (~)2.006s (~)0.560s151.01x
💻 LocalNitro1.469s (+8.2% 🔺)2.007s (~)0.538s151.02x
🐘 PostgresExpress2.084s (+3.8%)2.515s (-3.7%)0.431s121.45x
🐘 PostgresNext.js (Turbopack)2.120s (-5.2% 🟢)2.606s (-8.3% 🟢)0.486s121.48x
🐘 PostgresNitro2.237s (+6.0% 🔺)2.833s (+12.1% 🔺)0.597s111.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.672s (-8.1% 🟢)3.774s (+2.4%)1.102s81.00x
▲ VercelNitro2.786s (-1.6%)3.633s (-2.7%)0.847s91.04x
▲ VercelNext.js (Turbopack)2.810s (-0.8%)3.660s (~)0.849s91.05x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.676s (-7.3% 🟢)3.015s (-0.7%)0.338s101.00x
💻 LocalNext.js (Turbopack)2.718s (+3.3%)3.021s (~)0.303s101.02x
💻 LocalNitro2.727s (+16.7% 🔺)3.034s (-8.3% 🟢)0.307s101.02x
🐘 PostgresExpress10.088s (-16.4% 🟢)10.703s (-13.5% 🟢)0.616s33.77x
🐘 PostgresNitro12.878s (+5.5% 🔺)13.083s (+5.9% 🔺)0.205s34.81x
🐘 PostgresNext.js (Turbopack)12.974s (-3.3%)13.375s (-3.0%)0.401s34.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.946s (-1.1%)3.811s (+2.0%)0.864s81.00x
▲ VercelNext.js (Turbopack)3.105s (+4.5%)3.776s (-1.0%)0.672s81.05x
▲ VercelExpress3.108s (+2.4%)3.986s (+9.6% 🔺)0.878s81.05x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)7.594s (+11.0% 🔺)8.132s (-1.2%)0.538s41.00x
💻 LocalExpress7.981s (-1.6%)8.789s (+3.9%)0.808s41.05x
💻 LocalNitro8.275s (+26.8% 🔺)9.235s (+22.6% 🔺)0.959s41.09x
🐘 PostgresExpress50.392s (-3.5%)51.147s (-3.9%)0.755s16.64x
🐘 PostgresNitro52.298s (-2.0%)53.129s (-1.9%)0.831s16.89x
🐘 PostgresNext.js (Turbopack)56.811s (+1.2%)57.197s (+1.6%)0.386s17.48x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.376s (+1.5%)3.943s (~)0.567s81.00x
▲ VercelExpress3.505s (-10.7% 🟢)4.302s (-4.3%)0.797s71.04x
▲ VercelNitro4.008s (+26.2% 🔺)4.533s (+19.7% 🔺)0.525s71.19x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.148s (+4.5%)1.003s (~)0.015s (+2.7%)1.027s (~)0.879s101.00x
💻 LocalExpress0.184s (-2.9%)0.992s (~)0.015s (-0.7%)1.022s (~)0.838s101.24x
💻 LocalNitro0.186s (+60.9% 🔺)0.993s (-0.7%)0.014s (+22.4% 🔺)1.022s (~)0.836s101.26x
🐘 PostgresNext.js (Turbopack)1.021s (-14.3% 🟢)1.452s (-21.7% 🟢)0.001s (+Infinity% 🔺)1.621s (-19.7% 🟢)0.600s106.91x
🐘 PostgresNitro1.333s (+16.3% 🔺)1.705s (-10.0% 🟢)0.000s (-100.0% 🟢)2.013s (~)0.680s109.03x
🐘 PostgresExpress2.426s (+2.0%)2.618s (-1.8%)0.000s (~)3.015s (~)0.590s1016.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.895s (+1.5%)3.279s (~)0.246s (+9.0% 🔺)4.031s (+1.4%)1.136s101.00x
▲ VercelNext.js (Turbopack)3.028s (+1.1%)3.181s (-3.8%)0.226s (+29.6% 🔺)3.933s (-1.2%)0.904s101.05x
▲ VercelExpress3.120s (+4.0%)3.393s (+1.9%)0.247s (+53.7% 🔺)4.204s (+6.0% 🔺)1.084s101.08x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)11/12
🐘 PostgresExpress5/12
▲ VercelExpress5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)💻 Local10/12
Nitro💻 Local10/12
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

…and improve graph lookup
- Consolidate mergeRawManifest into manifest-utils.ts as shared function
- Replace any types with proper ManifestEntry type using generics
- Fix graph lookup to check both workflow and default exports
TooTallNate

This comment was marked as outdated.

The manifest adapter now detects and handles both formats:
- Legacy (pre-1.0.0): file-path keyed structure
- New (1.0.0+): ID-keyed structure with exports
This ensures the web UI can display workflow graphs from both old
and new deployments during the transition period.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Addressed the backwards compatibility concern for web-shared and web o11y tooling.

The manifest-adapter.ts in the web package now detects and handles both formats:

  • Legacy (pre-1.0.0): file-path keyed structure { [filePath]: { [workflowName]: { workflowId, graph } } }
  • New (1.0.0+): ID-keyed structure { [workflowId]: { name, exports, graph } }

The adapter auto-detects the format by checking for the presence of name and exports fields in workflow entries. This ensures the web UI can display workflow graphs from both old and new deployments during the transition period.

See commit e5b5cff for the changes.

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.

4 participants

@TooTallNate@pranaygp@VaguelySerious