docs: rename Control Flow Patterns to Common Patterns and add new content - #846

Merged
pranaygp merged 6 commits into
mainfrom
happy-moon
Jan 26, 2026
Merged

docs: rename Control Flow Patterns to Common Patterns and add new content#846
pranaygp merged 6 commits into
mainfrom
happy-moon

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

Renames the "Control Flow Patterns" documentation page to "Common Patterns" and expands it with new content.

Changes

Page Rename

  • Renamed control-flow-patterns.mdxcommon-patterns.mdx
  • Updated title from "Control Flow Patterns" to "Common Patterns"
  • Added permanent redirect from old URL to prevent broken external links
  • Updated all internal references (navigation, links)

New Content

  • Timeout Pattern: Shows how to use Promise.race with sleep() to add timeouts to steps, hooks, and webhooks
  • Workflow Composition: Documents two approaches for calling workflows from workflows:
    • Direct await (flattening) - synchronous, single event log
    • Background execution via step - async, independent tracking

Code Block Enhancement

  • Implemented // @setup comment marker that hides lines from rendered output
  • Allows doc authors to include type declarations for type checking while keeping examples clean
  • Uses client-side DOM filtering via useEffect in the CodeBlock component

Testing

  • Verified all code examples render without setup lines
  • Confirmed redirect works for old URL
  • Link validation passes

CopilotAI review requested due to automatic review settings January 24, 2026 01:19
@changeset-bot

changeset-botBot commented Jan 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8f029d4

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

This PR includes no changesets

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

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

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

@vercel

vercelBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 26, 2026 7:22pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 26, 2026 7:22pm
example-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-astro-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-express-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-fastify-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-hono-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-nitro-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-nuxt-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-vite-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workflow-docsReadyReadyPreview, CommentJan 26, 2026 7:22pm

@github-actions

github-actionsBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.029s (-36.6% 🟢)1.008s (~)0.979s101.00x
💻 LocalNext.js (Turbopack)0.043s (-1.8%)1.018s (~)0.974s101.50x
💻 LocalNitro0.044s (+1.4%)1.008s (~)0.964s101.52x
🐘 PostgresNext.js (Turbopack)0.195s (+36.2% 🔺)1.021s (~)0.826s106.74x
🐘 PostgresNitro0.237s (-6.4% 🟢)1.019s (+0.6%)0.782s108.21x
🐘 PostgresExpress0.272s (-6.2% 🟢)1.013s (~)0.742s109.41x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.635s (-28.5% 🟢)1.479s (-16.1% 🟢)0.844s101.00x
▲ VercelNitro0.668s (-15.5% 🟢)1.530s (-9.6% 🟢)0.861s101.05x
▲ VercelNext.js (Turbopack)0.686s (-9.1% 🟢)1.742s (-11.3% 🟢)1.055s101.08x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.078s (-3.2%)2.008s (~)0.930s101.00x
💻 LocalNext.js (Turbopack)1.101s (~)2.011s (~)0.910s101.02x
💻 LocalNitro1.117s (~)2.007s (~)0.890s101.04x
🐘 PostgresNext.js (Turbopack)1.885s (-2.8%)2.017s (-4.7%)0.132s101.75x
🐘 PostgresExpress2.118s (~)3.014s (~)0.896s101.97x
🐘 PostgresNitro2.391s (+9.2% 🔺)3.019s (~)0.628s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.006s (+3.8%)3.659s (-1.5%)0.652s101.00x
▲ VercelExpress3.096s (+4.8%)3.964s (+8.1% 🔺)0.868s101.03x
▲ VercelNext.js (Turbopack)3.112s (+9.4% 🔺)4.087s (+12.2% 🔺)0.975s101.04x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.554s (-2.6%)11.018s (~)0.465s51.00x
💻 LocalNext.js (Turbopack)10.679s (~)11.015s (~)0.336s51.01x
💻 LocalNitro10.839s (~)11.017s (~)0.178s51.03x
🐘 PostgresNext.js (Turbopack)15.169s (-0.6%)16.036s (~)0.867s51.44x
🐘 PostgresNitro20.192s (-1.2%)21.055s (~)0.863s51.91x
🐘 PostgresExpress20.444s (+14.4% 🔺)21.035s (+15.4% 🔺)0.591s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)24.583s (-6.6% 🟢)25.291s (-5.6% 🟢)0.708s51.00x
▲ VercelExpress25.001s (-0.8%)26.020s (+0.8%)1.019s51.02x
▲ VercelNitro25.117s (-4.7%)25.655s (-4.7%)0.538s51.02x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.352s (-4.3%)2.007s (~)0.654s151.00x
💻 LocalNext.js (Turbopack)1.370s (-1.5%)2.010s (~)0.639s151.01x
💻 LocalNitro1.399s (~)2.005s (~)0.606s151.04x
🐘 PostgresNext.js (Turbopack)1.720s (+1.8%)2.012s (-1.3%)0.293s151.27x
🐘 PostgresExpress2.178s (+7.2% 🔺)3.013s (+9.8% 🔺)0.835s101.61x
🐘 PostgresNitro2.345s (+6.4% 🔺)3.016s (~)0.672s101.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.468s (+11.1% 🔺)4.169s (+7.1% 🔺)0.701s81.00x
▲ VercelNext.js (Turbopack)3.485s (+16.4% 🔺)4.121s (+13.4% 🔺)0.636s81.00x
▲ VercelExpress3.867s (+33.6% 🔺)4.564s (+24.7% 🔺)0.698s71.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.172s (-12.3% 🟢)3.158s (+4.1%)0.986s101.00x
💻 LocalNext.js (Turbopack)2.447s (+1.4%)3.115s (-7.8% 🟢)0.669s101.13x
💻 LocalNitro2.533s (~)3.035s (+0.6%)0.503s101.17x
🐘 PostgresNitro6.774s (-20.2% 🟢)7.244s (-20.2% 🟢)0.470s53.12x
🐘 PostgresExpress8.295s (-6.4% 🟢)9.064s (-5.1% 🟢)0.769s43.82x
🐘 PostgresNext.js (Turbopack)10.296s (-6.2% 🟢)11.026s (-5.7% 🟢)0.730s34.74x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.885s (+20.9% 🔺)4.758s (+28.1% 🔺)0.873s71.00x
▲ VercelExpress4.487s (+25.7% 🔺)5.107s (+22.4% 🔺)0.620s61.15x
▲ VercelNitro5.034s (+39.9% 🔺)5.868s (+42.6% 🔺)0.833s61.30x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.375s (-3.8%)2.006s (~)0.630s151.00x
💻 LocalNext.js (Turbopack)1.384s (-1.2%)2.008s (~)0.624s151.01x
💻 LocalNitro1.412s (~)2.006s (~)0.593s151.03x
🐘 PostgresExpress2.220s (+3.4%)2.829s (+9.0% 🔺)0.609s111.61x
🐘 PostgresNitro2.236s (+10.6% 🔺)2.746s (+2.3%)0.509s111.63x
🐘 PostgresNext.js (Turbopack)2.282s (+52.5% 🔺)2.689s (+33.6% 🔺)0.407s121.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.995s (+3.8%)3.742s (~)0.747s91.00x
▲ VercelNitro3.441s (+16.1% 🔺)4.161s (+11.8% 🔺)0.720s81.15x
▲ VercelNext.js (Turbopack)3.537s (+21.7% 🔺)4.495s (+20.3% 🔺)0.958s71.18x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.290s (-11.2% 🟢)3.258s (+7.7% 🔺)0.968s101.00x
💻 LocalNext.js (Turbopack)2.501s (~)3.006s (-1.3%)0.504s101.09x
💻 LocalNitro2.648s (~)3.021s (~)0.372s101.16x
🐘 PostgresExpress12.342s (+7.1% 🔺)12.694s (+8.4% 🔺)0.352s35.39x
🐘 PostgresNitro12.936s (+13.6% 🔺)13.358s (+10.8% 🔺)0.422s35.65x
🐘 PostgresNext.js (Turbopack)13.693s (+26.0% 🔺)14.373s (+25.7% 🔺)0.679s35.98x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.634s (+16.6% 🔺)4.296s (+18.8% 🔺)0.662s71.00x
▲ VercelNitro4.020s (+27.4% 🔺)4.680s (+23.9% 🔺)0.660s71.11x
▲ VercelNext.js (Turbopack)4.354s (+25.4% 🔺)5.326s (+30.2% 🔺)0.972s61.20x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.114s (-37.5% 🟢)0.999s (+0.6%)0.012s (-21.7% 🟢)1.019s (~)0.905s101.00x
💻 LocalNext.js (Turbopack)0.138s (~)1.003s (~)0.016s (+4.5%)1.026s (~)0.888s101.22x
💻 LocalNitro0.183s (-2.9%)0.992s (~)0.015s (-12.3% 🟢)1.021s (~)0.837s101.62x
🐘 PostgresNext.js (Turbopack)1.272s (+3.9%)1.629s (-10.6% 🟢)0.000s (-100.0% 🟢)1.819s (-10.0% 🟢)0.548s1011.20x
🐘 PostgresExpress2.235s (+68.8% 🔺)2.809s (+56.6% 🔺)0.000s (NaN%)3.016s (+49.7% 🔺)0.782s1019.69x
🐘 PostgresNitro2.418s (+8.3% 🔺)2.635s (-6.3% 🟢)0.000s (+Infinity% 🔺)3.021s (~)0.603s1021.30x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.189s (+8.0% 🔺)3.156s (-4.0%)0.852s (+191.7% 🔺)4.617s (+11.3% 🔺)1.428s101.00x
▲ VercelNext.js (Turbopack)3.235s (+10.4% 🔺)3.441s (+8.0% 🔺)0.728s (+98.6% 🔺)4.724s (+18.3% 🔺)1.489s101.01x
▲ VercelExpress3.331s (+15.5% 🔺)3.304s (~)0.699s (+39.4% 🔺)4.587s (+7.5% 🔺)1.256s101.04x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress8/8
🐘 PostgresNext.js (Turbopack)5/8
▲ VercelExpress3/8
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

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

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

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

📋 View full workflow run

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 overhauls the “Worlds” documentation and UI, introduces a new /worlds section with richer CI test/benchmark visualizations, and renames/expands the “Control Flow Patterns” docs into “Common Patterns,” including the new timeout and workflow-composition patterns plus // @setup support in code blocks.

Changes:

  • Renames and extends the “Control Flow Patterns” foundations doc into “Common Patterns,” adding examples for timeouts and workflow composition plus support for hidden // @setup lines in code blocks.
  • Introduces a new /worlds landing page, per-world detail pages (including OpenGraph images), and a benchmark comparison view driven by CI artifacts, with updated world metadata and redirects from the old docs URLs.
  • Adds a benchmark history API backed by GitHub CI artifacts and corresponding UI components (charts, E2E/performance summaries, globe visualization) to surface compatibility and performance data across worlds.

Reviewed changes

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

Show a summary per file
FileDescription
worlds-manifest.jsonUpdates Local/Postgres/Vercel world descriptions and adds an example URL for Postgres, supporting richer world metadata in the new Worlds UI.
pnpm-lock.yamlLocks the new cobe and transitive phenomenon dependencies for the globe visualization.
docs/package.jsonAdds the cobe dependency used by the Worlds globe component.
docs/next.config.tsAdds redirects from legacy world and control-flow-pattern docs URLs to the new /worlds routes and /docs/foundations/common-patterns.
docs/lib/worlds-data.tsExtends the worlds data fetcher to include framework-level E2E details, workflow timing metrics, and a derived benchmark10SeqMs KPI, plus helpers to fetch a single world and all world IDs.
docs/content/docs/worlds/meta.jsonRemoves the old MDX-based /docs/worlds index to be replaced by the new /worlds app route.
docs/content/docs/worlds/index.mdxRemoves the old Worlds ecosystem MDX page in favor of the new Worlds dashboard experience.
docs/content/docs/foundations/starting-workflows.mdxUpdates the link from “Control Flow Patterns” to the new “Common Patterns” page.
docs/content/docs/foundations/meta.jsonReplaces control-flow-patterns with common-patterns in the foundations nav metadata.
docs/content/docs/foundations/index.mdxUpdates the card to point to /docs/foundations/common-patterns with a new title and description.
docs/content/docs/foundations/control-flow-patterns.mdxRemoves the old patterns page in preparation for the new common-patterns.mdx.
docs/content/docs/foundations/common-patterns.mdxNew, expanded “Common Patterns” doc including sequential/parallel patterns, timeout patterns, workflow composition, and a full birthday workflow example, using // @setup-annotated declarations.
docs/content/docs/deploying/world/vercel-world.mdxRewrites Vercel World docs to align with the new Worlds UX, link to observability, and use <WorldTestingPerformance /> for live CI data.
docs/content/docs/deploying/world/postgres-world.mdxReworks Postgres World docs with clearer installation, configuration, and deployment guidance and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/local-world.mdxSimplifies Local World docs to emphasize zero-config usage, observability, configuration knobs, and limitations, and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/index.mdxReplaces the WIP notice with a fuller explanation of the World abstraction, how to choose worlds, and how to build/contribute worlds, linking to the new /worlds ecosystem.
docs/components/worlds/types.tsExtends typings to include per-framework E2E data, new benchmark timing fields (workflow vs wall time, TTFB, slurp), an example URL, and a benchmark10SeqMs KPI, plus a formatTime helper.
docs/components/worlds/index.tsRe-exports new world UI components (detail hero/TOC, instructions, testing/performance, benchmark history) for use across the docs/app.
docs/components/worlds/WorldTestingPerformanceMDX.tsxWraps WorldTestingPerformance in a context-based MDX component that pulls world data from WorldDataProvider.
docs/components/worlds/WorldTestingPerformance.tsxNew client component that renders E2E test summaries, benchmark tables (standard and streaming), and an interactive history chart per world.
docs/components/worlds/WorldInstructions.tsxNew component rendering installation/usage and GitHub/docs links for community worlds.
docs/components/worlds/WorldDetailToc.tsxNew sticky “On this page” TOC that tracks the active section via IntersectionObserver on world detail pages.
docs/components/worlds/WorldDetailHero.tsxNew hero section for /worlds/[id] pages with badges, install snippets (for community worlds), quick E2E/PERF stats, and npm/GitHub/example links.
docs/components/worlds/WorldDataProvider.tsxProvides world and CI metadata via React context for world detail pages and MDX components.
docs/components/worlds/WorldCardSimple.tsxNew simplified card used on the /worlds landing page, showing basic info plus condensed E2E and PERF indicators.
docs/components/worlds/WorldCard.tsxTweaks the existing dashboard card to compute E2E pass percentage excluding skipped tests and removes the unused community emoji and average benchmark summary.
docs/components/worlds/Globe.tsxNew animated globe visualization using cobe that adapts to theme and supports pointer drag.
docs/components/worlds/BenchmarkHistoryChart.tsxNew dialog-driven chart showing benchmark history over releases/commits using Recharts and linking out to GitHub; powers the per-metric history view in WorldTestingPerformance.
docs/components/worlds/BenchmarkChart.tsxUpdates benchmark comparison table/bar to use formatTime for displaying durations in ms/s and to consume the extended benchmark metrics.
docs/components/geistdocs/code-block.tsxEnhances the docs code block to hide any lines containing // @setup in the rendered view while retaining them in the underlying code for type checking.
docs/app/worlds/page.tsxNew /worlds landing page with hero, stats, grid of WorldCardSimples, a placeholder provider benchmark visualization, explanation of Worlds, and contribution CTA, backed by getWorldsData().
docs/app/worlds/layout.tsxWraps the Worlds routes in the shared HomeLayout with appropriate padding.
docs/app/worlds/compare/page.tsxNew (non-indexed) /worlds/compare page that renders the full BenchmarkChart overview and per-benchmark BenchmarkBars using getWorldsData().
docs/app/worlds/[id]/page.tsxNew /worlds/[id] detail page that stitches together the hero, MDX-based official documentation, or templated community docs, plus the sticky TOC, via WorldDataProvider.
docs/app/worlds/[id]/opengraph-image.tsxAdds per-world OpenGraph image generation using getWorldIds/getWorldData for rich link previews.
docs/app/layout.tsxAdds a “Worlds” link to the global navigation bar pointing at the new /worlds section.
docs/app/docs/[[...slug]]/page.tsxRegisters WorldTestingPerformance as a no-op in the docs MDX context to avoid mismatch when world MDX pages are statically generated outside /worlds.
docs/app/api/benchmark-history/route.tsNew API route that aggregates benchmark history by walking GitHub gh-pages CI artifacts and main/tags history, feeding BenchmarkHistoryChart.
.github/scripts/generate-docs-data.jsExtends benchmark parsing to record separate workflow execution times, min/max, TTFB, and slurp metrics used by the Worlds dashboard and history charts.

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

Base automatically changed from pranaygp/finish-benchmarking to mainJanuary 26, 2026 19:16
- Update title format to '{Name} World | Workflow DevKit'
- Update worlds index page title to 'Worlds | Workflow DevKit'
- Improve world descriptions in worlds-manifest.json for better SEO
- Add dynamic OG image generation at /worlds/[id]/og
- Add openGraph and twitter metadata to world detail pages
- Replace route-based og/route.tsx with opengraph-image.tsx file convention
- Remove runtime = 'edge' to allow generateStaticParams for static generation
- Simplify page.tsx metadata (Next.js auto-detects opengraph-image.tsx)
…tent
- Rename page from control-flow-patterns to common-patterns
- Add redirect for old URL to prevent broken external links
- Add new Timeout Pattern section (Promise.race with sleep)
- Add new Workflow Composition section (direct await vs background execution)
- Implement @setup comment marker to hide type declarations in code examples
- Update navigation and references to new page name
The Full Example only demonstrates sequential and parallel execution,
so it should come before the new Timeout and Workflow Composition patterns.
@pranaygp
pranaygp merged commit 243bf8f into mainJan 26, 2026
86 of 87 checks passed
@pranaygp
pranaygp deleted the happy-moon branch January 26, 2026 19:23
pranaygp added a commit that referenced this pull request Jan 28, 2026
…s-and-commands
* origin/main:
fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
Publish "workflow" and "@workflow/core" package versions in sync (#870)
Add SDK version to workflow run executionContext for observability (#868)
Allow recreateRun to accept an optional deploymentId parameter (#869)
Add support for top-level `using` declarations inside of step / workflow functions (#866)
docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
Add "classes" object to `manifest.json` file (#864)
Fix Nest workbench app build (#865)
Ignore Astro on local dev tests for source map e2e tests (#863)
Enable custom class serialization transformations for "client" mode (#860)
Submit request bodies with CBOR encoding (#844)
[world-vercel] Update queue to use VQS v3 API (#799)
NestJS framework support (#840)
Fix resolve hook theming and token fetching. (#856)
docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
docs: revamp World documentation pages (#763)
Remove unused `getWritable` stub function (#855)
# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
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

@pranaygp@TooTallNate@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n 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;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

docs: rename Control Flow Patterns to Common Patterns and add new content - #846

Merged
pranaygp merged 6 commits into
mainfrom
happy-moon
Jan 26, 2026
Merged

docs: rename Control Flow Patterns to Common Patterns and add new content#846
pranaygp merged 6 commits into
mainfrom
happy-moon

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

Renames the "Control Flow Patterns" documentation page to "Common Patterns" and expands it with new content.

Changes

Page Rename

  • Renamed control-flow-patterns.mdxcommon-patterns.mdx
  • Updated title from "Control Flow Patterns" to "Common Patterns"
  • Added permanent redirect from old URL to prevent broken external links
  • Updated all internal references (navigation, links)

New Content

  • Timeout Pattern: Shows how to use Promise.race with sleep() to add timeouts to steps, hooks, and webhooks
  • Workflow Composition: Documents two approaches for calling workflows from workflows:
    • Direct await (flattening) - synchronous, single event log
    • Background execution via step - async, independent tracking

Code Block Enhancement

  • Implemented // @setup comment marker that hides lines from rendered output
  • Allows doc authors to include type declarations for type checking while keeping examples clean
  • Uses client-side DOM filtering via useEffect in the CodeBlock component

Testing

  • Verified all code examples render without setup lines
  • Confirmed redirect works for old URL
  • Link validation passes

CopilotAI review requested due to automatic review settings January 24, 2026 01:19
@changeset-bot

changeset-botBot commented Jan 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8f029d4

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

This PR includes no changesets

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

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

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

@vercel

vercelBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 26, 2026 7:22pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 26, 2026 7:22pm
example-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-astro-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-express-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-fastify-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-hono-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-nitro-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-nuxt-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-vite-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workflow-docsReadyReadyPreview, CommentJan 26, 2026 7:22pm

@github-actions

github-actionsBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.029s (-36.6% 🟢)1.008s (~)0.979s101.00x
💻 LocalNext.js (Turbopack)0.043s (-1.8%)1.018s (~)0.974s101.50x
💻 LocalNitro0.044s (+1.4%)1.008s (~)0.964s101.52x
🐘 PostgresNext.js (Turbopack)0.195s (+36.2% 🔺)1.021s (~)0.826s106.74x
🐘 PostgresNitro0.237s (-6.4% 🟢)1.019s (+0.6%)0.782s108.21x
🐘 PostgresExpress0.272s (-6.2% 🟢)1.013s (~)0.742s109.41x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.635s (-28.5% 🟢)1.479s (-16.1% 🟢)0.844s101.00x
▲ VercelNitro0.668s (-15.5% 🟢)1.530s (-9.6% 🟢)0.861s101.05x
▲ VercelNext.js (Turbopack)0.686s (-9.1% 🟢)1.742s (-11.3% 🟢)1.055s101.08x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.078s (-3.2%)2.008s (~)0.930s101.00x
💻 LocalNext.js (Turbopack)1.101s (~)2.011s (~)0.910s101.02x
💻 LocalNitro1.117s (~)2.007s (~)0.890s101.04x
🐘 PostgresNext.js (Turbopack)1.885s (-2.8%)2.017s (-4.7%)0.132s101.75x
🐘 PostgresExpress2.118s (~)3.014s (~)0.896s101.97x
🐘 PostgresNitro2.391s (+9.2% 🔺)3.019s (~)0.628s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.006s (+3.8%)3.659s (-1.5%)0.652s101.00x
▲ VercelExpress3.096s (+4.8%)3.964s (+8.1% 🔺)0.868s101.03x
▲ VercelNext.js (Turbopack)3.112s (+9.4% 🔺)4.087s (+12.2% 🔺)0.975s101.04x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.554s (-2.6%)11.018s (~)0.465s51.00x
💻 LocalNext.js (Turbopack)10.679s (~)11.015s (~)0.336s51.01x
💻 LocalNitro10.839s (~)11.017s (~)0.178s51.03x
🐘 PostgresNext.js (Turbopack)15.169s (-0.6%)16.036s (~)0.867s51.44x
🐘 PostgresNitro20.192s (-1.2%)21.055s (~)0.863s51.91x
🐘 PostgresExpress20.444s (+14.4% 🔺)21.035s (+15.4% 🔺)0.591s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)24.583s (-6.6% 🟢)25.291s (-5.6% 🟢)0.708s51.00x
▲ VercelExpress25.001s (-0.8%)26.020s (+0.8%)1.019s51.02x
▲ VercelNitro25.117s (-4.7%)25.655s (-4.7%)0.538s51.02x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.352s (-4.3%)2.007s (~)0.654s151.00x
💻 LocalNext.js (Turbopack)1.370s (-1.5%)2.010s (~)0.639s151.01x
💻 LocalNitro1.399s (~)2.005s (~)0.606s151.04x
🐘 PostgresNext.js (Turbopack)1.720s (+1.8%)2.012s (-1.3%)0.293s151.27x
🐘 PostgresExpress2.178s (+7.2% 🔺)3.013s (+9.8% 🔺)0.835s101.61x
🐘 PostgresNitro2.345s (+6.4% 🔺)3.016s (~)0.672s101.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.468s (+11.1% 🔺)4.169s (+7.1% 🔺)0.701s81.00x
▲ VercelNext.js (Turbopack)3.485s (+16.4% 🔺)4.121s (+13.4% 🔺)0.636s81.00x
▲ VercelExpress3.867s (+33.6% 🔺)4.564s (+24.7% 🔺)0.698s71.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.172s (-12.3% 🟢)3.158s (+4.1%)0.986s101.00x
💻 LocalNext.js (Turbopack)2.447s (+1.4%)3.115s (-7.8% 🟢)0.669s101.13x
💻 LocalNitro2.533s (~)3.035s (+0.6%)0.503s101.17x
🐘 PostgresNitro6.774s (-20.2% 🟢)7.244s (-20.2% 🟢)0.470s53.12x
🐘 PostgresExpress8.295s (-6.4% 🟢)9.064s (-5.1% 🟢)0.769s43.82x
🐘 PostgresNext.js (Turbopack)10.296s (-6.2% 🟢)11.026s (-5.7% 🟢)0.730s34.74x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.885s (+20.9% 🔺)4.758s (+28.1% 🔺)0.873s71.00x
▲ VercelExpress4.487s (+25.7% 🔺)5.107s (+22.4% 🔺)0.620s61.15x
▲ VercelNitro5.034s (+39.9% 🔺)5.868s (+42.6% 🔺)0.833s61.30x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.375s (-3.8%)2.006s (~)0.630s151.00x
💻 LocalNext.js (Turbopack)1.384s (-1.2%)2.008s (~)0.624s151.01x
💻 LocalNitro1.412s (~)2.006s (~)0.593s151.03x
🐘 PostgresExpress2.220s (+3.4%)2.829s (+9.0% 🔺)0.609s111.61x
🐘 PostgresNitro2.236s (+10.6% 🔺)2.746s (+2.3%)0.509s111.63x
🐘 PostgresNext.js (Turbopack)2.282s (+52.5% 🔺)2.689s (+33.6% 🔺)0.407s121.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.995s (+3.8%)3.742s (~)0.747s91.00x
▲ VercelNitro3.441s (+16.1% 🔺)4.161s (+11.8% 🔺)0.720s81.15x
▲ VercelNext.js (Turbopack)3.537s (+21.7% 🔺)4.495s (+20.3% 🔺)0.958s71.18x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.290s (-11.2% 🟢)3.258s (+7.7% 🔺)0.968s101.00x
💻 LocalNext.js (Turbopack)2.501s (~)3.006s (-1.3%)0.504s101.09x
💻 LocalNitro2.648s (~)3.021s (~)0.372s101.16x
🐘 PostgresExpress12.342s (+7.1% 🔺)12.694s (+8.4% 🔺)0.352s35.39x
🐘 PostgresNitro12.936s (+13.6% 🔺)13.358s (+10.8% 🔺)0.422s35.65x
🐘 PostgresNext.js (Turbopack)13.693s (+26.0% 🔺)14.373s (+25.7% 🔺)0.679s35.98x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.634s (+16.6% 🔺)4.296s (+18.8% 🔺)0.662s71.00x
▲ VercelNitro4.020s (+27.4% 🔺)4.680s (+23.9% 🔺)0.660s71.11x
▲ VercelNext.js (Turbopack)4.354s (+25.4% 🔺)5.326s (+30.2% 🔺)0.972s61.20x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.114s (-37.5% 🟢)0.999s (+0.6%)0.012s (-21.7% 🟢)1.019s (~)0.905s101.00x
💻 LocalNext.js (Turbopack)0.138s (~)1.003s (~)0.016s (+4.5%)1.026s (~)0.888s101.22x
💻 LocalNitro0.183s (-2.9%)0.992s (~)0.015s (-12.3% 🟢)1.021s (~)0.837s101.62x
🐘 PostgresNext.js (Turbopack)1.272s (+3.9%)1.629s (-10.6% 🟢)0.000s (-100.0% 🟢)1.819s (-10.0% 🟢)0.548s1011.20x
🐘 PostgresExpress2.235s (+68.8% 🔺)2.809s (+56.6% 🔺)0.000s (NaN%)3.016s (+49.7% 🔺)0.782s1019.69x
🐘 PostgresNitro2.418s (+8.3% 🔺)2.635s (-6.3% 🟢)0.000s (+Infinity% 🔺)3.021s (~)0.603s1021.30x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.189s (+8.0% 🔺)3.156s (-4.0%)0.852s (+191.7% 🔺)4.617s (+11.3% 🔺)1.428s101.00x
▲ VercelNext.js (Turbopack)3.235s (+10.4% 🔺)3.441s (+8.0% 🔺)0.728s (+98.6% 🔺)4.724s (+18.3% 🔺)1.489s101.01x
▲ VercelExpress3.331s (+15.5% 🔺)3.304s (~)0.699s (+39.4% 🔺)4.587s (+7.5% 🔺)1.256s101.04x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress8/8
🐘 PostgresNext.js (Turbopack)5/8
▲ VercelExpress3/8
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

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

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

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

📋 View full workflow run

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 overhauls the “Worlds” documentation and UI, introduces a new /worlds section with richer CI test/benchmark visualizations, and renames/expands the “Control Flow Patterns” docs into “Common Patterns,” including the new timeout and workflow-composition patterns plus // @setup support in code blocks.

Changes:

  • Renames and extends the “Control Flow Patterns” foundations doc into “Common Patterns,” adding examples for timeouts and workflow composition plus support for hidden // @setup lines in code blocks.
  • Introduces a new /worlds landing page, per-world detail pages (including OpenGraph images), and a benchmark comparison view driven by CI artifacts, with updated world metadata and redirects from the old docs URLs.
  • Adds a benchmark history API backed by GitHub CI artifacts and corresponding UI components (charts, E2E/performance summaries, globe visualization) to surface compatibility and performance data across worlds.

Reviewed changes

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

Show a summary per file
FileDescription
worlds-manifest.jsonUpdates Local/Postgres/Vercel world descriptions and adds an example URL for Postgres, supporting richer world metadata in the new Worlds UI.
pnpm-lock.yamlLocks the new cobe and transitive phenomenon dependencies for the globe visualization.
docs/package.jsonAdds the cobe dependency used by the Worlds globe component.
docs/next.config.tsAdds redirects from legacy world and control-flow-pattern docs URLs to the new /worlds routes and /docs/foundations/common-patterns.
docs/lib/worlds-data.tsExtends the worlds data fetcher to include framework-level E2E details, workflow timing metrics, and a derived benchmark10SeqMs KPI, plus helpers to fetch a single world and all world IDs.
docs/content/docs/worlds/meta.jsonRemoves the old MDX-based /docs/worlds index to be replaced by the new /worlds app route.
docs/content/docs/worlds/index.mdxRemoves the old Worlds ecosystem MDX page in favor of the new Worlds dashboard experience.
docs/content/docs/foundations/starting-workflows.mdxUpdates the link from “Control Flow Patterns” to the new “Common Patterns” page.
docs/content/docs/foundations/meta.jsonReplaces control-flow-patterns with common-patterns in the foundations nav metadata.
docs/content/docs/foundations/index.mdxUpdates the card to point to /docs/foundations/common-patterns with a new title and description.
docs/content/docs/foundations/control-flow-patterns.mdxRemoves the old patterns page in preparation for the new common-patterns.mdx.
docs/content/docs/foundations/common-patterns.mdxNew, expanded “Common Patterns” doc including sequential/parallel patterns, timeout patterns, workflow composition, and a full birthday workflow example, using // @setup-annotated declarations.
docs/content/docs/deploying/world/vercel-world.mdxRewrites Vercel World docs to align with the new Worlds UX, link to observability, and use <WorldTestingPerformance /> for live CI data.
docs/content/docs/deploying/world/postgres-world.mdxReworks Postgres World docs with clearer installation, configuration, and deployment guidance and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/local-world.mdxSimplifies Local World docs to emphasize zero-config usage, observability, configuration knobs, and limitations, and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/index.mdxReplaces the WIP notice with a fuller explanation of the World abstraction, how to choose worlds, and how to build/contribute worlds, linking to the new /worlds ecosystem.
docs/components/worlds/types.tsExtends typings to include per-framework E2E data, new benchmark timing fields (workflow vs wall time, TTFB, slurp), an example URL, and a benchmark10SeqMs KPI, plus a formatTime helper.
docs/components/worlds/index.tsRe-exports new world UI components (detail hero/TOC, instructions, testing/performance, benchmark history) for use across the docs/app.
docs/components/worlds/WorldTestingPerformanceMDX.tsxWraps WorldTestingPerformance in a context-based MDX component that pulls world data from WorldDataProvider.
docs/components/worlds/WorldTestingPerformance.tsxNew client component that renders E2E test summaries, benchmark tables (standard and streaming), and an interactive history chart per world.
docs/components/worlds/WorldInstructions.tsxNew component rendering installation/usage and GitHub/docs links for community worlds.
docs/components/worlds/WorldDetailToc.tsxNew sticky “On this page” TOC that tracks the active section via IntersectionObserver on world detail pages.
docs/components/worlds/WorldDetailHero.tsxNew hero section for /worlds/[id] pages with badges, install snippets (for community worlds), quick E2E/PERF stats, and npm/GitHub/example links.
docs/components/worlds/WorldDataProvider.tsxProvides world and CI metadata via React context for world detail pages and MDX components.
docs/components/worlds/WorldCardSimple.tsxNew simplified card used on the /worlds landing page, showing basic info plus condensed E2E and PERF indicators.
docs/components/worlds/WorldCard.tsxTweaks the existing dashboard card to compute E2E pass percentage excluding skipped tests and removes the unused community emoji and average benchmark summary.
docs/components/worlds/Globe.tsxNew animated globe visualization using cobe that adapts to theme and supports pointer drag.
docs/components/worlds/BenchmarkHistoryChart.tsxNew dialog-driven chart showing benchmark history over releases/commits using Recharts and linking out to GitHub; powers the per-metric history view in WorldTestingPerformance.
docs/components/worlds/BenchmarkChart.tsxUpdates benchmark comparison table/bar to use formatTime for displaying durations in ms/s and to consume the extended benchmark metrics.
docs/components/geistdocs/code-block.tsxEnhances the docs code block to hide any lines containing // @setup in the rendered view while retaining them in the underlying code for type checking.
docs/app/worlds/page.tsxNew /worlds landing page with hero, stats, grid of WorldCardSimples, a placeholder provider benchmark visualization, explanation of Worlds, and contribution CTA, backed by getWorldsData().
docs/app/worlds/layout.tsxWraps the Worlds routes in the shared HomeLayout with appropriate padding.
docs/app/worlds/compare/page.tsxNew (non-indexed) /worlds/compare page that renders the full BenchmarkChart overview and per-benchmark BenchmarkBars using getWorldsData().
docs/app/worlds/[id]/page.tsxNew /worlds/[id] detail page that stitches together the hero, MDX-based official documentation, or templated community docs, plus the sticky TOC, via WorldDataProvider.
docs/app/worlds/[id]/opengraph-image.tsxAdds per-world OpenGraph image generation using getWorldIds/getWorldData for rich link previews.
docs/app/layout.tsxAdds a “Worlds” link to the global navigation bar pointing at the new /worlds section.
docs/app/docs/[[...slug]]/page.tsxRegisters WorldTestingPerformance as a no-op in the docs MDX context to avoid mismatch when world MDX pages are statically generated outside /worlds.
docs/app/api/benchmark-history/route.tsNew API route that aggregates benchmark history by walking GitHub gh-pages CI artifacts and main/tags history, feeding BenchmarkHistoryChart.
.github/scripts/generate-docs-data.jsExtends benchmark parsing to record separate workflow execution times, min/max, TTFB, and slurp metrics used by the Worlds dashboard and history charts.

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

Base automatically changed from pranaygp/finish-benchmarking to mainJanuary 26, 2026 19:16
- Update title format to '{Name} World | Workflow DevKit'
- Update worlds index page title to 'Worlds | Workflow DevKit'
- Improve world descriptions in worlds-manifest.json for better SEO
- Add dynamic OG image generation at /worlds/[id]/og
- Add openGraph and twitter metadata to world detail pages
- Replace route-based og/route.tsx with opengraph-image.tsx file convention
- Remove runtime = 'edge' to allow generateStaticParams for static generation
- Simplify page.tsx metadata (Next.js auto-detects opengraph-image.tsx)
…tent
- Rename page from control-flow-patterns to common-patterns
- Add redirect for old URL to prevent broken external links
- Add new Timeout Pattern section (Promise.race with sleep)
- Add new Workflow Composition section (direct await vs background execution)
- Implement @setup comment marker to hide type declarations in code examples
- Update navigation and references to new page name
The Full Example only demonstrates sequential and parallel execution,
so it should come before the new Timeout and Workflow Composition patterns.
@pranaygp
pranaygp merged commit 243bf8f into mainJan 26, 2026
86 of 87 checks passed
@pranaygp
pranaygp deleted the happy-moon branch January 26, 2026 19:23
pranaygp added a commit that referenced this pull request Jan 28, 2026
…s-and-commands
* origin/main:
fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
Publish "workflow" and "@workflow/core" package versions in sync (#870)
Add SDK version to workflow run executionContext for observability (#868)
Allow recreateRun to accept an optional deploymentId parameter (#869)
Add support for top-level `using` declarations inside of step / workflow functions (#866)
docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
Add "classes" object to `manifest.json` file (#864)
Fix Nest workbench app build (#865)
Ignore Astro on local dev tests for source map e2e tests (#863)
Enable custom class serialization transformations for "client" mode (#860)
Submit request bodies with CBOR encoding (#844)
[world-vercel] Update queue to use VQS v3 API (#799)
NestJS framework support (#840)
Fix resolve hook theming and token fetching. (#856)
docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
docs: revamp World documentation pages (#763)
Remove unused `getWritable` stub function (#855)
# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
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

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

docs: rename Control Flow Patterns to Common Patterns and add new content - #846

Merged
pranaygp merged 6 commits into
mainfrom
happy-moon
Jan 26, 2026
Merged

docs: rename Control Flow Patterns to Common Patterns and add new content#846
pranaygp merged 6 commits into
mainfrom
happy-moon

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

Renames the "Control Flow Patterns" documentation page to "Common Patterns" and expands it with new content.

Changes

Page Rename

  • Renamed control-flow-patterns.mdxcommon-patterns.mdx
  • Updated title from "Control Flow Patterns" to "Common Patterns"
  • Added permanent redirect from old URL to prevent broken external links
  • Updated all internal references (navigation, links)

New Content

  • Timeout Pattern: Shows how to use Promise.race with sleep() to add timeouts to steps, hooks, and webhooks
  • Workflow Composition: Documents two approaches for calling workflows from workflows:
    • Direct await (flattening) - synchronous, single event log
    • Background execution via step - async, independent tracking

Code Block Enhancement

  • Implemented // @setup comment marker that hides lines from rendered output
  • Allows doc authors to include type declarations for type checking while keeping examples clean
  • Uses client-side DOM filtering via useEffect in the CodeBlock component

Testing

  • Verified all code examples render without setup lines
  • Confirmed redirect works for old URL
  • Link validation passes

CopilotAI review requested due to automatic review settings January 24, 2026 01:19
@changeset-bot

changeset-botBot commented Jan 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8f029d4

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

This PR includes no changesets

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

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

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

@vercel

vercelBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 26, 2026 7:22pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 26, 2026 7:22pm
example-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-astro-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-express-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-fastify-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-hono-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-nitro-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-nuxt-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-vite-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workflow-docsReadyReadyPreview, CommentJan 26, 2026 7:22pm

@github-actions

github-actionsBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.029s (-36.6% 🟢)1.008s (~)0.979s101.00x
💻 LocalNext.js (Turbopack)0.043s (-1.8%)1.018s (~)0.974s101.50x
💻 LocalNitro0.044s (+1.4%)1.008s (~)0.964s101.52x
🐘 PostgresNext.js (Turbopack)0.195s (+36.2% 🔺)1.021s (~)0.826s106.74x
🐘 PostgresNitro0.237s (-6.4% 🟢)1.019s (+0.6%)0.782s108.21x
🐘 PostgresExpress0.272s (-6.2% 🟢)1.013s (~)0.742s109.41x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.635s (-28.5% 🟢)1.479s (-16.1% 🟢)0.844s101.00x
▲ VercelNitro0.668s (-15.5% 🟢)1.530s (-9.6% 🟢)0.861s101.05x
▲ VercelNext.js (Turbopack)0.686s (-9.1% 🟢)1.742s (-11.3% 🟢)1.055s101.08x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.078s (-3.2%)2.008s (~)0.930s101.00x
💻 LocalNext.js (Turbopack)1.101s (~)2.011s (~)0.910s101.02x
💻 LocalNitro1.117s (~)2.007s (~)0.890s101.04x
🐘 PostgresNext.js (Turbopack)1.885s (-2.8%)2.017s (-4.7%)0.132s101.75x
🐘 PostgresExpress2.118s (~)3.014s (~)0.896s101.97x
🐘 PostgresNitro2.391s (+9.2% 🔺)3.019s (~)0.628s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.006s (+3.8%)3.659s (-1.5%)0.652s101.00x
▲ VercelExpress3.096s (+4.8%)3.964s (+8.1% 🔺)0.868s101.03x
▲ VercelNext.js (Turbopack)3.112s (+9.4% 🔺)4.087s (+12.2% 🔺)0.975s101.04x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.554s (-2.6%)11.018s (~)0.465s51.00x
💻 LocalNext.js (Turbopack)10.679s (~)11.015s (~)0.336s51.01x
💻 LocalNitro10.839s (~)11.017s (~)0.178s51.03x
🐘 PostgresNext.js (Turbopack)15.169s (-0.6%)16.036s (~)0.867s51.44x
🐘 PostgresNitro20.192s (-1.2%)21.055s (~)0.863s51.91x
🐘 PostgresExpress20.444s (+14.4% 🔺)21.035s (+15.4% 🔺)0.591s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)24.583s (-6.6% 🟢)25.291s (-5.6% 🟢)0.708s51.00x
▲ VercelExpress25.001s (-0.8%)26.020s (+0.8%)1.019s51.02x
▲ VercelNitro25.117s (-4.7%)25.655s (-4.7%)0.538s51.02x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.352s (-4.3%)2.007s (~)0.654s151.00x
💻 LocalNext.js (Turbopack)1.370s (-1.5%)2.010s (~)0.639s151.01x
💻 LocalNitro1.399s (~)2.005s (~)0.606s151.04x
🐘 PostgresNext.js (Turbopack)1.720s (+1.8%)2.012s (-1.3%)0.293s151.27x
🐘 PostgresExpress2.178s (+7.2% 🔺)3.013s (+9.8% 🔺)0.835s101.61x
🐘 PostgresNitro2.345s (+6.4% 🔺)3.016s (~)0.672s101.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.468s (+11.1% 🔺)4.169s (+7.1% 🔺)0.701s81.00x
▲ VercelNext.js (Turbopack)3.485s (+16.4% 🔺)4.121s (+13.4% 🔺)0.636s81.00x
▲ VercelExpress3.867s (+33.6% 🔺)4.564s (+24.7% 🔺)0.698s71.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.172s (-12.3% 🟢)3.158s (+4.1%)0.986s101.00x
💻 LocalNext.js (Turbopack)2.447s (+1.4%)3.115s (-7.8% 🟢)0.669s101.13x
💻 LocalNitro2.533s (~)3.035s (+0.6%)0.503s101.17x
🐘 PostgresNitro6.774s (-20.2% 🟢)7.244s (-20.2% 🟢)0.470s53.12x
🐘 PostgresExpress8.295s (-6.4% 🟢)9.064s (-5.1% 🟢)0.769s43.82x
🐘 PostgresNext.js (Turbopack)10.296s (-6.2% 🟢)11.026s (-5.7% 🟢)0.730s34.74x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.885s (+20.9% 🔺)4.758s (+28.1% 🔺)0.873s71.00x
▲ VercelExpress4.487s (+25.7% 🔺)5.107s (+22.4% 🔺)0.620s61.15x
▲ VercelNitro5.034s (+39.9% 🔺)5.868s (+42.6% 🔺)0.833s61.30x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.375s (-3.8%)2.006s (~)0.630s151.00x
💻 LocalNext.js (Turbopack)1.384s (-1.2%)2.008s (~)0.624s151.01x
💻 LocalNitro1.412s (~)2.006s (~)0.593s151.03x
🐘 PostgresExpress2.220s (+3.4%)2.829s (+9.0% 🔺)0.609s111.61x
🐘 PostgresNitro2.236s (+10.6% 🔺)2.746s (+2.3%)0.509s111.63x
🐘 PostgresNext.js (Turbopack)2.282s (+52.5% 🔺)2.689s (+33.6% 🔺)0.407s121.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.995s (+3.8%)3.742s (~)0.747s91.00x
▲ VercelNitro3.441s (+16.1% 🔺)4.161s (+11.8% 🔺)0.720s81.15x
▲ VercelNext.js (Turbopack)3.537s (+21.7% 🔺)4.495s (+20.3% 🔺)0.958s71.18x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.290s (-11.2% 🟢)3.258s (+7.7% 🔺)0.968s101.00x
💻 LocalNext.js (Turbopack)2.501s (~)3.006s (-1.3%)0.504s101.09x
💻 LocalNitro2.648s (~)3.021s (~)0.372s101.16x
🐘 PostgresExpress12.342s (+7.1% 🔺)12.694s (+8.4% 🔺)0.352s35.39x
🐘 PostgresNitro12.936s (+13.6% 🔺)13.358s (+10.8% 🔺)0.422s35.65x
🐘 PostgresNext.js (Turbopack)13.693s (+26.0% 🔺)14.373s (+25.7% 🔺)0.679s35.98x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.634s (+16.6% 🔺)4.296s (+18.8% 🔺)0.662s71.00x
▲ VercelNitro4.020s (+27.4% 🔺)4.680s (+23.9% 🔺)0.660s71.11x
▲ VercelNext.js (Turbopack)4.354s (+25.4% 🔺)5.326s (+30.2% 🔺)0.972s61.20x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.114s (-37.5% 🟢)0.999s (+0.6%)0.012s (-21.7% 🟢)1.019s (~)0.905s101.00x
💻 LocalNext.js (Turbopack)0.138s (~)1.003s (~)0.016s (+4.5%)1.026s (~)0.888s101.22x
💻 LocalNitro0.183s (-2.9%)0.992s (~)0.015s (-12.3% 🟢)1.021s (~)0.837s101.62x
🐘 PostgresNext.js (Turbopack)1.272s (+3.9%)1.629s (-10.6% 🟢)0.000s (-100.0% 🟢)1.819s (-10.0% 🟢)0.548s1011.20x
🐘 PostgresExpress2.235s (+68.8% 🔺)2.809s (+56.6% 🔺)0.000s (NaN%)3.016s (+49.7% 🔺)0.782s1019.69x
🐘 PostgresNitro2.418s (+8.3% 🔺)2.635s (-6.3% 🟢)0.000s (+Infinity% 🔺)3.021s (~)0.603s1021.30x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.189s (+8.0% 🔺)3.156s (-4.0%)0.852s (+191.7% 🔺)4.617s (+11.3% 🔺)1.428s101.00x
▲ VercelNext.js (Turbopack)3.235s (+10.4% 🔺)3.441s (+8.0% 🔺)0.728s (+98.6% 🔺)4.724s (+18.3% 🔺)1.489s101.01x
▲ VercelExpress3.331s (+15.5% 🔺)3.304s (~)0.699s (+39.4% 🔺)4.587s (+7.5% 🔺)1.256s101.04x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress8/8
🐘 PostgresNext.js (Turbopack)5/8
▲ VercelExpress3/8
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

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

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

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

📋 View full workflow run

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 overhauls the “Worlds” documentation and UI, introduces a new /worlds section with richer CI test/benchmark visualizations, and renames/expands the “Control Flow Patterns” docs into “Common Patterns,” including the new timeout and workflow-composition patterns plus // @setup support in code blocks.

Changes:

  • Renames and extends the “Control Flow Patterns” foundations doc into “Common Patterns,” adding examples for timeouts and workflow composition plus support for hidden // @setup lines in code blocks.
  • Introduces a new /worlds landing page, per-world detail pages (including OpenGraph images), and a benchmark comparison view driven by CI artifacts, with updated world metadata and redirects from the old docs URLs.
  • Adds a benchmark history API backed by GitHub CI artifacts and corresponding UI components (charts, E2E/performance summaries, globe visualization) to surface compatibility and performance data across worlds.

Reviewed changes

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

Show a summary per file
FileDescription
worlds-manifest.jsonUpdates Local/Postgres/Vercel world descriptions and adds an example URL for Postgres, supporting richer world metadata in the new Worlds UI.
pnpm-lock.yamlLocks the new cobe and transitive phenomenon dependencies for the globe visualization.
docs/package.jsonAdds the cobe dependency used by the Worlds globe component.
docs/next.config.tsAdds redirects from legacy world and control-flow-pattern docs URLs to the new /worlds routes and /docs/foundations/common-patterns.
docs/lib/worlds-data.tsExtends the worlds data fetcher to include framework-level E2E details, workflow timing metrics, and a derived benchmark10SeqMs KPI, plus helpers to fetch a single world and all world IDs.
docs/content/docs/worlds/meta.jsonRemoves the old MDX-based /docs/worlds index to be replaced by the new /worlds app route.
docs/content/docs/worlds/index.mdxRemoves the old Worlds ecosystem MDX page in favor of the new Worlds dashboard experience.
docs/content/docs/foundations/starting-workflows.mdxUpdates the link from “Control Flow Patterns” to the new “Common Patterns” page.
docs/content/docs/foundations/meta.jsonReplaces control-flow-patterns with common-patterns in the foundations nav metadata.
docs/content/docs/foundations/index.mdxUpdates the card to point to /docs/foundations/common-patterns with a new title and description.
docs/content/docs/foundations/control-flow-patterns.mdxRemoves the old patterns page in preparation for the new common-patterns.mdx.
docs/content/docs/foundations/common-patterns.mdxNew, expanded “Common Patterns” doc including sequential/parallel patterns, timeout patterns, workflow composition, and a full birthday workflow example, using // @setup-annotated declarations.
docs/content/docs/deploying/world/vercel-world.mdxRewrites Vercel World docs to align with the new Worlds UX, link to observability, and use <WorldTestingPerformance /> for live CI data.
docs/content/docs/deploying/world/postgres-world.mdxReworks Postgres World docs with clearer installation, configuration, and deployment guidance and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/local-world.mdxSimplifies Local World docs to emphasize zero-config usage, observability, configuration knobs, and limitations, and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/index.mdxReplaces the WIP notice with a fuller explanation of the World abstraction, how to choose worlds, and how to build/contribute worlds, linking to the new /worlds ecosystem.
docs/components/worlds/types.tsExtends typings to include per-framework E2E data, new benchmark timing fields (workflow vs wall time, TTFB, slurp), an example URL, and a benchmark10SeqMs KPI, plus a formatTime helper.
docs/components/worlds/index.tsRe-exports new world UI components (detail hero/TOC, instructions, testing/performance, benchmark history) for use across the docs/app.
docs/components/worlds/WorldTestingPerformanceMDX.tsxWraps WorldTestingPerformance in a context-based MDX component that pulls world data from WorldDataProvider.
docs/components/worlds/WorldTestingPerformance.tsxNew client component that renders E2E test summaries, benchmark tables (standard and streaming), and an interactive history chart per world.
docs/components/worlds/WorldInstructions.tsxNew component rendering installation/usage and GitHub/docs links for community worlds.
docs/components/worlds/WorldDetailToc.tsxNew sticky “On this page” TOC that tracks the active section via IntersectionObserver on world detail pages.
docs/components/worlds/WorldDetailHero.tsxNew hero section for /worlds/[id] pages with badges, install snippets (for community worlds), quick E2E/PERF stats, and npm/GitHub/example links.
docs/components/worlds/WorldDataProvider.tsxProvides world and CI metadata via React context for world detail pages and MDX components.
docs/components/worlds/WorldCardSimple.tsxNew simplified card used on the /worlds landing page, showing basic info plus condensed E2E and PERF indicators.
docs/components/worlds/WorldCard.tsxTweaks the existing dashboard card to compute E2E pass percentage excluding skipped tests and removes the unused community emoji and average benchmark summary.
docs/components/worlds/Globe.tsxNew animated globe visualization using cobe that adapts to theme and supports pointer drag.
docs/components/worlds/BenchmarkHistoryChart.tsxNew dialog-driven chart showing benchmark history over releases/commits using Recharts and linking out to GitHub; powers the per-metric history view in WorldTestingPerformance.
docs/components/worlds/BenchmarkChart.tsxUpdates benchmark comparison table/bar to use formatTime for displaying durations in ms/s and to consume the extended benchmark metrics.
docs/components/geistdocs/code-block.tsxEnhances the docs code block to hide any lines containing // @setup in the rendered view while retaining them in the underlying code for type checking.
docs/app/worlds/page.tsxNew /worlds landing page with hero, stats, grid of WorldCardSimples, a placeholder provider benchmark visualization, explanation of Worlds, and contribution CTA, backed by getWorldsData().
docs/app/worlds/layout.tsxWraps the Worlds routes in the shared HomeLayout with appropriate padding.
docs/app/worlds/compare/page.tsxNew (non-indexed) /worlds/compare page that renders the full BenchmarkChart overview and per-benchmark BenchmarkBars using getWorldsData().
docs/app/worlds/[id]/page.tsxNew /worlds/[id] detail page that stitches together the hero, MDX-based official documentation, or templated community docs, plus the sticky TOC, via WorldDataProvider.
docs/app/worlds/[id]/opengraph-image.tsxAdds per-world OpenGraph image generation using getWorldIds/getWorldData for rich link previews.
docs/app/layout.tsxAdds a “Worlds” link to the global navigation bar pointing at the new /worlds section.
docs/app/docs/[[...slug]]/page.tsxRegisters WorldTestingPerformance as a no-op in the docs MDX context to avoid mismatch when world MDX pages are statically generated outside /worlds.
docs/app/api/benchmark-history/route.tsNew API route that aggregates benchmark history by walking GitHub gh-pages CI artifacts and main/tags history, feeding BenchmarkHistoryChart.
.github/scripts/generate-docs-data.jsExtends benchmark parsing to record separate workflow execution times, min/max, TTFB, and slurp metrics used by the Worlds dashboard and history charts.

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

Base automatically changed from pranaygp/finish-benchmarking to mainJanuary 26, 2026 19:16
- Update title format to '{Name} World | Workflow DevKit'
- Update worlds index page title to 'Worlds | Workflow DevKit'
- Improve world descriptions in worlds-manifest.json for better SEO
- Add dynamic OG image generation at /worlds/[id]/og
- Add openGraph and twitter metadata to world detail pages
- Replace route-based og/route.tsx with opengraph-image.tsx file convention
- Remove runtime = 'edge' to allow generateStaticParams for static generation
- Simplify page.tsx metadata (Next.js auto-detects opengraph-image.tsx)
…tent
- Rename page from control-flow-patterns to common-patterns
- Add redirect for old URL to prevent broken external links
- Add new Timeout Pattern section (Promise.race with sleep)
- Add new Workflow Composition section (direct await vs background execution)
- Implement @setup comment marker to hide type declarations in code examples
- Update navigation and references to new page name
The Full Example only demonstrates sequential and parallel execution,
so it should come before the new Timeout and Workflow Composition patterns.
@pranaygp
pranaygp merged commit 243bf8f into mainJan 26, 2026
86 of 87 checks passed
@pranaygp
pranaygp deleted the happy-moon branch January 26, 2026 19:23
pranaygp added a commit that referenced this pull request Jan 28, 2026
…s-and-commands
* origin/main:
fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
Publish "workflow" and "@workflow/core" package versions in sync (#870)
Add SDK version to workflow run executionContext for observability (#868)
Allow recreateRun to accept an optional deploymentId parameter (#869)
Add support for top-level `using` declarations inside of step / workflow functions (#866)
docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
Add "classes" object to `manifest.json` file (#864)
Fix Nest workbench app build (#865)
Ignore Astro on local dev tests for source map e2e tests (#863)
Enable custom class serialization transformations for "client" mode (#860)
Submit request bodies with CBOR encoding (#844)
[world-vercel] Update queue to use VQS v3 API (#799)
NestJS framework support (#840)
Fix resolve hook theming and token fetching. (#856)
docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
docs: revamp World documentation pages (#763)
Remove unused `getWritable` stub function (#855)
# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
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

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

docs: rename Control Flow Patterns to Common Patterns and add new content - #846

Merged
pranaygp merged 6 commits into
mainfrom
happy-moon
Jan 26, 2026
Merged

docs: rename Control Flow Patterns to Common Patterns and add new content#846
pranaygp merged 6 commits into
mainfrom
happy-moon

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

Renames the "Control Flow Patterns" documentation page to "Common Patterns" and expands it with new content.

Changes

Page Rename

  • Renamed control-flow-patterns.mdxcommon-patterns.mdx
  • Updated title from "Control Flow Patterns" to "Common Patterns"
  • Added permanent redirect from old URL to prevent broken external links
  • Updated all internal references (navigation, links)

New Content

  • Timeout Pattern: Shows how to use Promise.race with sleep() to add timeouts to steps, hooks, and webhooks
  • Workflow Composition: Documents two approaches for calling workflows from workflows:
    • Direct await (flattening) - synchronous, single event log
    • Background execution via step - async, independent tracking

Code Block Enhancement

  • Implemented // @setup comment marker that hides lines from rendered output
  • Allows doc authors to include type declarations for type checking while keeping examples clean
  • Uses client-side DOM filtering via useEffect in the CodeBlock component

Testing

  • Verified all code examples render without setup lines
  • Confirmed redirect works for old URL
  • Link validation passes

CopilotAI review requested due to automatic review settings January 24, 2026 01:19
@changeset-bot

changeset-botBot commented Jan 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8f029d4

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

This PR includes no changesets

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

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

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

@vercel

vercelBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 26, 2026 7:22pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 26, 2026 7:22pm
example-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-astro-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-express-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-fastify-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-hono-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-nitro-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-nuxt-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-vite-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workflow-docsReadyReadyPreview, CommentJan 26, 2026 7:22pm

@github-actions

github-actionsBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.029s (-36.6% 🟢)1.008s (~)0.979s101.00x
💻 LocalNext.js (Turbopack)0.043s (-1.8%)1.018s (~)0.974s101.50x
💻 LocalNitro0.044s (+1.4%)1.008s (~)0.964s101.52x
🐘 PostgresNext.js (Turbopack)0.195s (+36.2% 🔺)1.021s (~)0.826s106.74x
🐘 PostgresNitro0.237s (-6.4% 🟢)1.019s (+0.6%)0.782s108.21x
🐘 PostgresExpress0.272s (-6.2% 🟢)1.013s (~)0.742s109.41x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.635s (-28.5% 🟢)1.479s (-16.1% 🟢)0.844s101.00x
▲ VercelNitro0.668s (-15.5% 🟢)1.530s (-9.6% 🟢)0.861s101.05x
▲ VercelNext.js (Turbopack)0.686s (-9.1% 🟢)1.742s (-11.3% 🟢)1.055s101.08x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.078s (-3.2%)2.008s (~)0.930s101.00x
💻 LocalNext.js (Turbopack)1.101s (~)2.011s (~)0.910s101.02x
💻 LocalNitro1.117s (~)2.007s (~)0.890s101.04x
🐘 PostgresNext.js (Turbopack)1.885s (-2.8%)2.017s (-4.7%)0.132s101.75x
🐘 PostgresExpress2.118s (~)3.014s (~)0.896s101.97x
🐘 PostgresNitro2.391s (+9.2% 🔺)3.019s (~)0.628s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.006s (+3.8%)3.659s (-1.5%)0.652s101.00x
▲ VercelExpress3.096s (+4.8%)3.964s (+8.1% 🔺)0.868s101.03x
▲ VercelNext.js (Turbopack)3.112s (+9.4% 🔺)4.087s (+12.2% 🔺)0.975s101.04x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.554s (-2.6%)11.018s (~)0.465s51.00x
💻 LocalNext.js (Turbopack)10.679s (~)11.015s (~)0.336s51.01x
💻 LocalNitro10.839s (~)11.017s (~)0.178s51.03x
🐘 PostgresNext.js (Turbopack)15.169s (-0.6%)16.036s (~)0.867s51.44x
🐘 PostgresNitro20.192s (-1.2%)21.055s (~)0.863s51.91x
🐘 PostgresExpress20.444s (+14.4% 🔺)21.035s (+15.4% 🔺)0.591s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)24.583s (-6.6% 🟢)25.291s (-5.6% 🟢)0.708s51.00x
▲ VercelExpress25.001s (-0.8%)26.020s (+0.8%)1.019s51.02x
▲ VercelNitro25.117s (-4.7%)25.655s (-4.7%)0.538s51.02x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.352s (-4.3%)2.007s (~)0.654s151.00x
💻 LocalNext.js (Turbopack)1.370s (-1.5%)2.010s (~)0.639s151.01x
💻 LocalNitro1.399s (~)2.005s (~)0.606s151.04x
🐘 PostgresNext.js (Turbopack)1.720s (+1.8%)2.012s (-1.3%)0.293s151.27x
🐘 PostgresExpress2.178s (+7.2% 🔺)3.013s (+9.8% 🔺)0.835s101.61x
🐘 PostgresNitro2.345s (+6.4% 🔺)3.016s (~)0.672s101.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.468s (+11.1% 🔺)4.169s (+7.1% 🔺)0.701s81.00x
▲ VercelNext.js (Turbopack)3.485s (+16.4% 🔺)4.121s (+13.4% 🔺)0.636s81.00x
▲ VercelExpress3.867s (+33.6% 🔺)4.564s (+24.7% 🔺)0.698s71.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.172s (-12.3% 🟢)3.158s (+4.1%)0.986s101.00x
💻 LocalNext.js (Turbopack)2.447s (+1.4%)3.115s (-7.8% 🟢)0.669s101.13x
💻 LocalNitro2.533s (~)3.035s (+0.6%)0.503s101.17x
🐘 PostgresNitro6.774s (-20.2% 🟢)7.244s (-20.2% 🟢)0.470s53.12x
🐘 PostgresExpress8.295s (-6.4% 🟢)9.064s (-5.1% 🟢)0.769s43.82x
🐘 PostgresNext.js (Turbopack)10.296s (-6.2% 🟢)11.026s (-5.7% 🟢)0.730s34.74x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.885s (+20.9% 🔺)4.758s (+28.1% 🔺)0.873s71.00x
▲ VercelExpress4.487s (+25.7% 🔺)5.107s (+22.4% 🔺)0.620s61.15x
▲ VercelNitro5.034s (+39.9% 🔺)5.868s (+42.6% 🔺)0.833s61.30x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.375s (-3.8%)2.006s (~)0.630s151.00x
💻 LocalNext.js (Turbopack)1.384s (-1.2%)2.008s (~)0.624s151.01x
💻 LocalNitro1.412s (~)2.006s (~)0.593s151.03x
🐘 PostgresExpress2.220s (+3.4%)2.829s (+9.0% 🔺)0.609s111.61x
🐘 PostgresNitro2.236s (+10.6% 🔺)2.746s (+2.3%)0.509s111.63x
🐘 PostgresNext.js (Turbopack)2.282s (+52.5% 🔺)2.689s (+33.6% 🔺)0.407s121.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.995s (+3.8%)3.742s (~)0.747s91.00x
▲ VercelNitro3.441s (+16.1% 🔺)4.161s (+11.8% 🔺)0.720s81.15x
▲ VercelNext.js (Turbopack)3.537s (+21.7% 🔺)4.495s (+20.3% 🔺)0.958s71.18x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.290s (-11.2% 🟢)3.258s (+7.7% 🔺)0.968s101.00x
💻 LocalNext.js (Turbopack)2.501s (~)3.006s (-1.3%)0.504s101.09x
💻 LocalNitro2.648s (~)3.021s (~)0.372s101.16x
🐘 PostgresExpress12.342s (+7.1% 🔺)12.694s (+8.4% 🔺)0.352s35.39x
🐘 PostgresNitro12.936s (+13.6% 🔺)13.358s (+10.8% 🔺)0.422s35.65x
🐘 PostgresNext.js (Turbopack)13.693s (+26.0% 🔺)14.373s (+25.7% 🔺)0.679s35.98x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.634s (+16.6% 🔺)4.296s (+18.8% 🔺)0.662s71.00x
▲ VercelNitro4.020s (+27.4% 🔺)4.680s (+23.9% 🔺)0.660s71.11x
▲ VercelNext.js (Turbopack)4.354s (+25.4% 🔺)5.326s (+30.2% 🔺)0.972s61.20x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.114s (-37.5% 🟢)0.999s (+0.6%)0.012s (-21.7% 🟢)1.019s (~)0.905s101.00x
💻 LocalNext.js (Turbopack)0.138s (~)1.003s (~)0.016s (+4.5%)1.026s (~)0.888s101.22x
💻 LocalNitro0.183s (-2.9%)0.992s (~)0.015s (-12.3% 🟢)1.021s (~)0.837s101.62x
🐘 PostgresNext.js (Turbopack)1.272s (+3.9%)1.629s (-10.6% 🟢)0.000s (-100.0% 🟢)1.819s (-10.0% 🟢)0.548s1011.20x
🐘 PostgresExpress2.235s (+68.8% 🔺)2.809s (+56.6% 🔺)0.000s (NaN%)3.016s (+49.7% 🔺)0.782s1019.69x
🐘 PostgresNitro2.418s (+8.3% 🔺)2.635s (-6.3% 🟢)0.000s (+Infinity% 🔺)3.021s (~)0.603s1021.30x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.189s (+8.0% 🔺)3.156s (-4.0%)0.852s (+191.7% 🔺)4.617s (+11.3% 🔺)1.428s101.00x
▲ VercelNext.js (Turbopack)3.235s (+10.4% 🔺)3.441s (+8.0% 🔺)0.728s (+98.6% 🔺)4.724s (+18.3% 🔺)1.489s101.01x
▲ VercelExpress3.331s (+15.5% 🔺)3.304s (~)0.699s (+39.4% 🔺)4.587s (+7.5% 🔺)1.256s101.04x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress8/8
🐘 PostgresNext.js (Turbopack)5/8
▲ VercelExpress3/8
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

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

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

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

📋 View full workflow run

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 overhauls the “Worlds” documentation and UI, introduces a new /worlds section with richer CI test/benchmark visualizations, and renames/expands the “Control Flow Patterns” docs into “Common Patterns,” including the new timeout and workflow-composition patterns plus // @setup support in code blocks.

Changes:

  • Renames and extends the “Control Flow Patterns” foundations doc into “Common Patterns,” adding examples for timeouts and workflow composition plus support for hidden // @setup lines in code blocks.
  • Introduces a new /worlds landing page, per-world detail pages (including OpenGraph images), and a benchmark comparison view driven by CI artifacts, with updated world metadata and redirects from the old docs URLs.
  • Adds a benchmark history API backed by GitHub CI artifacts and corresponding UI components (charts, E2E/performance summaries, globe visualization) to surface compatibility and performance data across worlds.

Reviewed changes

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

Show a summary per file
FileDescription
worlds-manifest.jsonUpdates Local/Postgres/Vercel world descriptions and adds an example URL for Postgres, supporting richer world metadata in the new Worlds UI.
pnpm-lock.yamlLocks the new cobe and transitive phenomenon dependencies for the globe visualization.
docs/package.jsonAdds the cobe dependency used by the Worlds globe component.
docs/next.config.tsAdds redirects from legacy world and control-flow-pattern docs URLs to the new /worlds routes and /docs/foundations/common-patterns.
docs/lib/worlds-data.tsExtends the worlds data fetcher to include framework-level E2E details, workflow timing metrics, and a derived benchmark10SeqMs KPI, plus helpers to fetch a single world and all world IDs.
docs/content/docs/worlds/meta.jsonRemoves the old MDX-based /docs/worlds index to be replaced by the new /worlds app route.
docs/content/docs/worlds/index.mdxRemoves the old Worlds ecosystem MDX page in favor of the new Worlds dashboard experience.
docs/content/docs/foundations/starting-workflows.mdxUpdates the link from “Control Flow Patterns” to the new “Common Patterns” page.
docs/content/docs/foundations/meta.jsonReplaces control-flow-patterns with common-patterns in the foundations nav metadata.
docs/content/docs/foundations/index.mdxUpdates the card to point to /docs/foundations/common-patterns with a new title and description.
docs/content/docs/foundations/control-flow-patterns.mdxRemoves the old patterns page in preparation for the new common-patterns.mdx.
docs/content/docs/foundations/common-patterns.mdxNew, expanded “Common Patterns” doc including sequential/parallel patterns, timeout patterns, workflow composition, and a full birthday workflow example, using // @setup-annotated declarations.
docs/content/docs/deploying/world/vercel-world.mdxRewrites Vercel World docs to align with the new Worlds UX, link to observability, and use <WorldTestingPerformance /> for live CI data.
docs/content/docs/deploying/world/postgres-world.mdxReworks Postgres World docs with clearer installation, configuration, and deployment guidance and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/local-world.mdxSimplifies Local World docs to emphasize zero-config usage, observability, configuration knobs, and limitations, and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/index.mdxReplaces the WIP notice with a fuller explanation of the World abstraction, how to choose worlds, and how to build/contribute worlds, linking to the new /worlds ecosystem.
docs/components/worlds/types.tsExtends typings to include per-framework E2E data, new benchmark timing fields (workflow vs wall time, TTFB, slurp), an example URL, and a benchmark10SeqMs KPI, plus a formatTime helper.
docs/components/worlds/index.tsRe-exports new world UI components (detail hero/TOC, instructions, testing/performance, benchmark history) for use across the docs/app.
docs/components/worlds/WorldTestingPerformanceMDX.tsxWraps WorldTestingPerformance in a context-based MDX component that pulls world data from WorldDataProvider.
docs/components/worlds/WorldTestingPerformance.tsxNew client component that renders E2E test summaries, benchmark tables (standard and streaming), and an interactive history chart per world.
docs/components/worlds/WorldInstructions.tsxNew component rendering installation/usage and GitHub/docs links for community worlds.
docs/components/worlds/WorldDetailToc.tsxNew sticky “On this page” TOC that tracks the active section via IntersectionObserver on world detail pages.
docs/components/worlds/WorldDetailHero.tsxNew hero section for /worlds/[id] pages with badges, install snippets (for community worlds), quick E2E/PERF stats, and npm/GitHub/example links.
docs/components/worlds/WorldDataProvider.tsxProvides world and CI metadata via React context for world detail pages and MDX components.
docs/components/worlds/WorldCardSimple.tsxNew simplified card used on the /worlds landing page, showing basic info plus condensed E2E and PERF indicators.
docs/components/worlds/WorldCard.tsxTweaks the existing dashboard card to compute E2E pass percentage excluding skipped tests and removes the unused community emoji and average benchmark summary.
docs/components/worlds/Globe.tsxNew animated globe visualization using cobe that adapts to theme and supports pointer drag.
docs/components/worlds/BenchmarkHistoryChart.tsxNew dialog-driven chart showing benchmark history over releases/commits using Recharts and linking out to GitHub; powers the per-metric history view in WorldTestingPerformance.
docs/components/worlds/BenchmarkChart.tsxUpdates benchmark comparison table/bar to use formatTime for displaying durations in ms/s and to consume the extended benchmark metrics.
docs/components/geistdocs/code-block.tsxEnhances the docs code block to hide any lines containing // @setup in the rendered view while retaining them in the underlying code for type checking.
docs/app/worlds/page.tsxNew /worlds landing page with hero, stats, grid of WorldCardSimples, a placeholder provider benchmark visualization, explanation of Worlds, and contribution CTA, backed by getWorldsData().
docs/app/worlds/layout.tsxWraps the Worlds routes in the shared HomeLayout with appropriate padding.
docs/app/worlds/compare/page.tsxNew (non-indexed) /worlds/compare page that renders the full BenchmarkChart overview and per-benchmark BenchmarkBars using getWorldsData().
docs/app/worlds/[id]/page.tsxNew /worlds/[id] detail page that stitches together the hero, MDX-based official documentation, or templated community docs, plus the sticky TOC, via WorldDataProvider.
docs/app/worlds/[id]/opengraph-image.tsxAdds per-world OpenGraph image generation using getWorldIds/getWorldData for rich link previews.
docs/app/layout.tsxAdds a “Worlds” link to the global navigation bar pointing at the new /worlds section.
docs/app/docs/[[...slug]]/page.tsxRegisters WorldTestingPerformance as a no-op in the docs MDX context to avoid mismatch when world MDX pages are statically generated outside /worlds.
docs/app/api/benchmark-history/route.tsNew API route that aggregates benchmark history by walking GitHub gh-pages CI artifacts and main/tags history, feeding BenchmarkHistoryChart.
.github/scripts/generate-docs-data.jsExtends benchmark parsing to record separate workflow execution times, min/max, TTFB, and slurp metrics used by the Worlds dashboard and history charts.

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

Base automatically changed from pranaygp/finish-benchmarking to mainJanuary 26, 2026 19:16
- Update title format to '{Name} World | Workflow DevKit'
- Update worlds index page title to 'Worlds | Workflow DevKit'
- Improve world descriptions in worlds-manifest.json for better SEO
- Add dynamic OG image generation at /worlds/[id]/og
- Add openGraph and twitter metadata to world detail pages
- Replace route-based og/route.tsx with opengraph-image.tsx file convention
- Remove runtime = 'edge' to allow generateStaticParams for static generation
- Simplify page.tsx metadata (Next.js auto-detects opengraph-image.tsx)
…tent
- Rename page from control-flow-patterns to common-patterns
- Add redirect for old URL to prevent broken external links
- Add new Timeout Pattern section (Promise.race with sleep)
- Add new Workflow Composition section (direct await vs background execution)
- Implement @setup comment marker to hide type declarations in code examples
- Update navigation and references to new page name
The Full Example only demonstrates sequential and parallel execution,
so it should come before the new Timeout and Workflow Composition patterns.
@pranaygp
pranaygp merged commit 243bf8f into mainJan 26, 2026
86 of 87 checks passed
@pranaygp
pranaygp deleted the happy-moon branch January 26, 2026 19:23
pranaygp added a commit that referenced this pull request Jan 28, 2026
…s-and-commands
* origin/main:
fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
Publish "workflow" and "@workflow/core" package versions in sync (#870)
Add SDK version to workflow run executionContext for observability (#868)
Allow recreateRun to accept an optional deploymentId parameter (#869)
Add support for top-level `using` declarations inside of step / workflow functions (#866)
docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
Add "classes" object to `manifest.json` file (#864)
Fix Nest workbench app build (#865)
Ignore Astro on local dev tests for source map e2e tests (#863)
Enable custom class serialization transformations for "client" mode (#860)
Submit request bodies with CBOR encoding (#844)
[world-vercel] Update queue to use VQS v3 API (#799)
NestJS framework support (#840)
Fix resolve hook theming and token fetching. (#856)
docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
docs: revamp World documentation pages (#763)
Remove unused `getWritable` stub function (#855)
# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
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

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

docs: rename Control Flow Patterns to Common Patterns and add new content - #846

Merged
pranaygp merged 6 commits into
mainfrom
happy-moon
Jan 26, 2026
Merged

docs: rename Control Flow Patterns to Common Patterns and add new content#846
pranaygp merged 6 commits into
mainfrom
happy-moon

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

Renames the "Control Flow Patterns" documentation page to "Common Patterns" and expands it with new content.

Changes

Page Rename

  • Renamed control-flow-patterns.mdxcommon-patterns.mdx
  • Updated title from "Control Flow Patterns" to "Common Patterns"
  • Added permanent redirect from old URL to prevent broken external links
  • Updated all internal references (navigation, links)

New Content

  • Timeout Pattern: Shows how to use Promise.race with sleep() to add timeouts to steps, hooks, and webhooks
  • Workflow Composition: Documents two approaches for calling workflows from workflows:
    • Direct await (flattening) - synchronous, single event log
    • Background execution via step - async, independent tracking

Code Block Enhancement

  • Implemented // @setup comment marker that hides lines from rendered output
  • Allows doc authors to include type declarations for type checking while keeping examples clean
  • Uses client-side DOM filtering via useEffect in the CodeBlock component

Testing

  • Verified all code examples render without setup lines
  • Confirmed redirect works for old URL
  • Link validation passes

CopilotAI review requested due to automatic review settings January 24, 2026 01:19
@changeset-bot

changeset-botBot commented Jan 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8f029d4

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

This PR includes no changesets

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

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

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

@vercel

vercelBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 26, 2026 7:22pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 26, 2026 7:22pm
example-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-astro-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-express-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-fastify-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-hono-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-nitro-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-nuxt-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-vite-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workflow-docsReadyReadyPreview, CommentJan 26, 2026 7:22pm

@github-actions

github-actionsBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.029s (-36.6% 🟢)1.008s (~)0.979s101.00x
💻 LocalNext.js (Turbopack)0.043s (-1.8%)1.018s (~)0.974s101.50x
💻 LocalNitro0.044s (+1.4%)1.008s (~)0.964s101.52x
🐘 PostgresNext.js (Turbopack)0.195s (+36.2% 🔺)1.021s (~)0.826s106.74x
🐘 PostgresNitro0.237s (-6.4% 🟢)1.019s (+0.6%)0.782s108.21x
🐘 PostgresExpress0.272s (-6.2% 🟢)1.013s (~)0.742s109.41x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.635s (-28.5% 🟢)1.479s (-16.1% 🟢)0.844s101.00x
▲ VercelNitro0.668s (-15.5% 🟢)1.530s (-9.6% 🟢)0.861s101.05x
▲ VercelNext.js (Turbopack)0.686s (-9.1% 🟢)1.742s (-11.3% 🟢)1.055s101.08x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.078s (-3.2%)2.008s (~)0.930s101.00x
💻 LocalNext.js (Turbopack)1.101s (~)2.011s (~)0.910s101.02x
💻 LocalNitro1.117s (~)2.007s (~)0.890s101.04x
🐘 PostgresNext.js (Turbopack)1.885s (-2.8%)2.017s (-4.7%)0.132s101.75x
🐘 PostgresExpress2.118s (~)3.014s (~)0.896s101.97x
🐘 PostgresNitro2.391s (+9.2% 🔺)3.019s (~)0.628s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.006s (+3.8%)3.659s (-1.5%)0.652s101.00x
▲ VercelExpress3.096s (+4.8%)3.964s (+8.1% 🔺)0.868s101.03x
▲ VercelNext.js (Turbopack)3.112s (+9.4% 🔺)4.087s (+12.2% 🔺)0.975s101.04x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.554s (-2.6%)11.018s (~)0.465s51.00x
💻 LocalNext.js (Turbopack)10.679s (~)11.015s (~)0.336s51.01x
💻 LocalNitro10.839s (~)11.017s (~)0.178s51.03x
🐘 PostgresNext.js (Turbopack)15.169s (-0.6%)16.036s (~)0.867s51.44x
🐘 PostgresNitro20.192s (-1.2%)21.055s (~)0.863s51.91x
🐘 PostgresExpress20.444s (+14.4% 🔺)21.035s (+15.4% 🔺)0.591s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)24.583s (-6.6% 🟢)25.291s (-5.6% 🟢)0.708s51.00x
▲ VercelExpress25.001s (-0.8%)26.020s (+0.8%)1.019s51.02x
▲ VercelNitro25.117s (-4.7%)25.655s (-4.7%)0.538s51.02x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.352s (-4.3%)2.007s (~)0.654s151.00x
💻 LocalNext.js (Turbopack)1.370s (-1.5%)2.010s (~)0.639s151.01x
💻 LocalNitro1.399s (~)2.005s (~)0.606s151.04x
🐘 PostgresNext.js (Turbopack)1.720s (+1.8%)2.012s (-1.3%)0.293s151.27x
🐘 PostgresExpress2.178s (+7.2% 🔺)3.013s (+9.8% 🔺)0.835s101.61x
🐘 PostgresNitro2.345s (+6.4% 🔺)3.016s (~)0.672s101.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.468s (+11.1% 🔺)4.169s (+7.1% 🔺)0.701s81.00x
▲ VercelNext.js (Turbopack)3.485s (+16.4% 🔺)4.121s (+13.4% 🔺)0.636s81.00x
▲ VercelExpress3.867s (+33.6% 🔺)4.564s (+24.7% 🔺)0.698s71.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.172s (-12.3% 🟢)3.158s (+4.1%)0.986s101.00x
💻 LocalNext.js (Turbopack)2.447s (+1.4%)3.115s (-7.8% 🟢)0.669s101.13x
💻 LocalNitro2.533s (~)3.035s (+0.6%)0.503s101.17x
🐘 PostgresNitro6.774s (-20.2% 🟢)7.244s (-20.2% 🟢)0.470s53.12x
🐘 PostgresExpress8.295s (-6.4% 🟢)9.064s (-5.1% 🟢)0.769s43.82x
🐘 PostgresNext.js (Turbopack)10.296s (-6.2% 🟢)11.026s (-5.7% 🟢)0.730s34.74x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.885s (+20.9% 🔺)4.758s (+28.1% 🔺)0.873s71.00x
▲ VercelExpress4.487s (+25.7% 🔺)5.107s (+22.4% 🔺)0.620s61.15x
▲ VercelNitro5.034s (+39.9% 🔺)5.868s (+42.6% 🔺)0.833s61.30x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.375s (-3.8%)2.006s (~)0.630s151.00x
💻 LocalNext.js (Turbopack)1.384s (-1.2%)2.008s (~)0.624s151.01x
💻 LocalNitro1.412s (~)2.006s (~)0.593s151.03x
🐘 PostgresExpress2.220s (+3.4%)2.829s (+9.0% 🔺)0.609s111.61x
🐘 PostgresNitro2.236s (+10.6% 🔺)2.746s (+2.3%)0.509s111.63x
🐘 PostgresNext.js (Turbopack)2.282s (+52.5% 🔺)2.689s (+33.6% 🔺)0.407s121.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.995s (+3.8%)3.742s (~)0.747s91.00x
▲ VercelNitro3.441s (+16.1% 🔺)4.161s (+11.8% 🔺)0.720s81.15x
▲ VercelNext.js (Turbopack)3.537s (+21.7% 🔺)4.495s (+20.3% 🔺)0.958s71.18x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.290s (-11.2% 🟢)3.258s (+7.7% 🔺)0.968s101.00x
💻 LocalNext.js (Turbopack)2.501s (~)3.006s (-1.3%)0.504s101.09x
💻 LocalNitro2.648s (~)3.021s (~)0.372s101.16x
🐘 PostgresExpress12.342s (+7.1% 🔺)12.694s (+8.4% 🔺)0.352s35.39x
🐘 PostgresNitro12.936s (+13.6% 🔺)13.358s (+10.8% 🔺)0.422s35.65x
🐘 PostgresNext.js (Turbopack)13.693s (+26.0% 🔺)14.373s (+25.7% 🔺)0.679s35.98x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.634s (+16.6% 🔺)4.296s (+18.8% 🔺)0.662s71.00x
▲ VercelNitro4.020s (+27.4% 🔺)4.680s (+23.9% 🔺)0.660s71.11x
▲ VercelNext.js (Turbopack)4.354s (+25.4% 🔺)5.326s (+30.2% 🔺)0.972s61.20x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.114s (-37.5% 🟢)0.999s (+0.6%)0.012s (-21.7% 🟢)1.019s (~)0.905s101.00x
💻 LocalNext.js (Turbopack)0.138s (~)1.003s (~)0.016s (+4.5%)1.026s (~)0.888s101.22x
💻 LocalNitro0.183s (-2.9%)0.992s (~)0.015s (-12.3% 🟢)1.021s (~)0.837s101.62x
🐘 PostgresNext.js (Turbopack)1.272s (+3.9%)1.629s (-10.6% 🟢)0.000s (-100.0% 🟢)1.819s (-10.0% 🟢)0.548s1011.20x
🐘 PostgresExpress2.235s (+68.8% 🔺)2.809s (+56.6% 🔺)0.000s (NaN%)3.016s (+49.7% 🔺)0.782s1019.69x
🐘 PostgresNitro2.418s (+8.3% 🔺)2.635s (-6.3% 🟢)0.000s (+Infinity% 🔺)3.021s (~)0.603s1021.30x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.189s (+8.0% 🔺)3.156s (-4.0%)0.852s (+191.7% 🔺)4.617s (+11.3% 🔺)1.428s101.00x
▲ VercelNext.js (Turbopack)3.235s (+10.4% 🔺)3.441s (+8.0% 🔺)0.728s (+98.6% 🔺)4.724s (+18.3% 🔺)1.489s101.01x
▲ VercelExpress3.331s (+15.5% 🔺)3.304s (~)0.699s (+39.4% 🔺)4.587s (+7.5% 🔺)1.256s101.04x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress8/8
🐘 PostgresNext.js (Turbopack)5/8
▲ VercelExpress3/8
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

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

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

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

📋 View full workflow run

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 overhauls the “Worlds” documentation and UI, introduces a new /worlds section with richer CI test/benchmark visualizations, and renames/expands the “Control Flow Patterns” docs into “Common Patterns,” including the new timeout and workflow-composition patterns plus // @setup support in code blocks.

Changes:

  • Renames and extends the “Control Flow Patterns” foundations doc into “Common Patterns,” adding examples for timeouts and workflow composition plus support for hidden // @setup lines in code blocks.
  • Introduces a new /worlds landing page, per-world detail pages (including OpenGraph images), and a benchmark comparison view driven by CI artifacts, with updated world metadata and redirects from the old docs URLs.
  • Adds a benchmark history API backed by GitHub CI artifacts and corresponding UI components (charts, E2E/performance summaries, globe visualization) to surface compatibility and performance data across worlds.

Reviewed changes

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

Show a summary per file
FileDescription
worlds-manifest.jsonUpdates Local/Postgres/Vercel world descriptions and adds an example URL for Postgres, supporting richer world metadata in the new Worlds UI.
pnpm-lock.yamlLocks the new cobe and transitive phenomenon dependencies for the globe visualization.
docs/package.jsonAdds the cobe dependency used by the Worlds globe component.
docs/next.config.tsAdds redirects from legacy world and control-flow-pattern docs URLs to the new /worlds routes and /docs/foundations/common-patterns.
docs/lib/worlds-data.tsExtends the worlds data fetcher to include framework-level E2E details, workflow timing metrics, and a derived benchmark10SeqMs KPI, plus helpers to fetch a single world and all world IDs.
docs/content/docs/worlds/meta.jsonRemoves the old MDX-based /docs/worlds index to be replaced by the new /worlds app route.
docs/content/docs/worlds/index.mdxRemoves the old Worlds ecosystem MDX page in favor of the new Worlds dashboard experience.
docs/content/docs/foundations/starting-workflows.mdxUpdates the link from “Control Flow Patterns” to the new “Common Patterns” page.
docs/content/docs/foundations/meta.jsonReplaces control-flow-patterns with common-patterns in the foundations nav metadata.
docs/content/docs/foundations/index.mdxUpdates the card to point to /docs/foundations/common-patterns with a new title and description.
docs/content/docs/foundations/control-flow-patterns.mdxRemoves the old patterns page in preparation for the new common-patterns.mdx.
docs/content/docs/foundations/common-patterns.mdxNew, expanded “Common Patterns” doc including sequential/parallel patterns, timeout patterns, workflow composition, and a full birthday workflow example, using // @setup-annotated declarations.
docs/content/docs/deploying/world/vercel-world.mdxRewrites Vercel World docs to align with the new Worlds UX, link to observability, and use <WorldTestingPerformance /> for live CI data.
docs/content/docs/deploying/world/postgres-world.mdxReworks Postgres World docs with clearer installation, configuration, and deployment guidance and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/local-world.mdxSimplifies Local World docs to emphasize zero-config usage, observability, configuration knobs, and limitations, and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/index.mdxReplaces the WIP notice with a fuller explanation of the World abstraction, how to choose worlds, and how to build/contribute worlds, linking to the new /worlds ecosystem.
docs/components/worlds/types.tsExtends typings to include per-framework E2E data, new benchmark timing fields (workflow vs wall time, TTFB, slurp), an example URL, and a benchmark10SeqMs KPI, plus a formatTime helper.
docs/components/worlds/index.tsRe-exports new world UI components (detail hero/TOC, instructions, testing/performance, benchmark history) for use across the docs/app.
docs/components/worlds/WorldTestingPerformanceMDX.tsxWraps WorldTestingPerformance in a context-based MDX component that pulls world data from WorldDataProvider.
docs/components/worlds/WorldTestingPerformance.tsxNew client component that renders E2E test summaries, benchmark tables (standard and streaming), and an interactive history chart per world.
docs/components/worlds/WorldInstructions.tsxNew component rendering installation/usage and GitHub/docs links for community worlds.
docs/components/worlds/WorldDetailToc.tsxNew sticky “On this page” TOC that tracks the active section via IntersectionObserver on world detail pages.
docs/components/worlds/WorldDetailHero.tsxNew hero section for /worlds/[id] pages with badges, install snippets (for community worlds), quick E2E/PERF stats, and npm/GitHub/example links.
docs/components/worlds/WorldDataProvider.tsxProvides world and CI metadata via React context for world detail pages and MDX components.
docs/components/worlds/WorldCardSimple.tsxNew simplified card used on the /worlds landing page, showing basic info plus condensed E2E and PERF indicators.
docs/components/worlds/WorldCard.tsxTweaks the existing dashboard card to compute E2E pass percentage excluding skipped tests and removes the unused community emoji and average benchmark summary.
docs/components/worlds/Globe.tsxNew animated globe visualization using cobe that adapts to theme and supports pointer drag.
docs/components/worlds/BenchmarkHistoryChart.tsxNew dialog-driven chart showing benchmark history over releases/commits using Recharts and linking out to GitHub; powers the per-metric history view in WorldTestingPerformance.
docs/components/worlds/BenchmarkChart.tsxUpdates benchmark comparison table/bar to use formatTime for displaying durations in ms/s and to consume the extended benchmark metrics.
docs/components/geistdocs/code-block.tsxEnhances the docs code block to hide any lines containing // @setup in the rendered view while retaining them in the underlying code for type checking.
docs/app/worlds/page.tsxNew /worlds landing page with hero, stats, grid of WorldCardSimples, a placeholder provider benchmark visualization, explanation of Worlds, and contribution CTA, backed by getWorldsData().
docs/app/worlds/layout.tsxWraps the Worlds routes in the shared HomeLayout with appropriate padding.
docs/app/worlds/compare/page.tsxNew (non-indexed) /worlds/compare page that renders the full BenchmarkChart overview and per-benchmark BenchmarkBars using getWorldsData().
docs/app/worlds/[id]/page.tsxNew /worlds/[id] detail page that stitches together the hero, MDX-based official documentation, or templated community docs, plus the sticky TOC, via WorldDataProvider.
docs/app/worlds/[id]/opengraph-image.tsxAdds per-world OpenGraph image generation using getWorldIds/getWorldData for rich link previews.
docs/app/layout.tsxAdds a “Worlds” link to the global navigation bar pointing at the new /worlds section.
docs/app/docs/[[...slug]]/page.tsxRegisters WorldTestingPerformance as a no-op in the docs MDX context to avoid mismatch when world MDX pages are statically generated outside /worlds.
docs/app/api/benchmark-history/route.tsNew API route that aggregates benchmark history by walking GitHub gh-pages CI artifacts and main/tags history, feeding BenchmarkHistoryChart.
.github/scripts/generate-docs-data.jsExtends benchmark parsing to record separate workflow execution times, min/max, TTFB, and slurp metrics used by the Worlds dashboard and history charts.

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

Base automatically changed from pranaygp/finish-benchmarking to mainJanuary 26, 2026 19:16
- Update title format to '{Name} World | Workflow DevKit'
- Update worlds index page title to 'Worlds | Workflow DevKit'
- Improve world descriptions in worlds-manifest.json for better SEO
- Add dynamic OG image generation at /worlds/[id]/og
- Add openGraph and twitter metadata to world detail pages
- Replace route-based og/route.tsx with opengraph-image.tsx file convention
- Remove runtime = 'edge' to allow generateStaticParams for static generation
- Simplify page.tsx metadata (Next.js auto-detects opengraph-image.tsx)
…tent
- Rename page from control-flow-patterns to common-patterns
- Add redirect for old URL to prevent broken external links
- Add new Timeout Pattern section (Promise.race with sleep)
- Add new Workflow Composition section (direct await vs background execution)
- Implement @setup comment marker to hide type declarations in code examples
- Update navigation and references to new page name
The Full Example only demonstrates sequential and parallel execution,
so it should come before the new Timeout and Workflow Composition patterns.
@pranaygp
pranaygp merged commit 243bf8f into mainJan 26, 2026
86 of 87 checks passed
@pranaygp
pranaygp deleted the happy-moon branch January 26, 2026 19:23
pranaygp added a commit that referenced this pull request Jan 28, 2026
…s-and-commands
* origin/main:
fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
Publish "workflow" and "@workflow/core" package versions in sync (#870)
Add SDK version to workflow run executionContext for observability (#868)
Allow recreateRun to accept an optional deploymentId parameter (#869)
Add support for top-level `using` declarations inside of step / workflow functions (#866)
docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
Add "classes" object to `manifest.json` file (#864)
Fix Nest workbench app build (#865)
Ignore Astro on local dev tests for source map e2e tests (#863)
Enable custom class serialization transformations for "client" mode (#860)
Submit request bodies with CBOR encoding (#844)
[world-vercel] Update queue to use VQS v3 API (#799)
NestJS framework support (#840)
Fix resolve hook theming and token fetching. (#856)
docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
docs: revamp World documentation pages (#763)
Remove unused `getWritable` stub function (#855)
# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
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

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

docs: rename Control Flow Patterns to Common Patterns and add new content - #846

Merged
pranaygp merged 6 commits into
mainfrom
happy-moon
Jan 26, 2026
Merged

docs: rename Control Flow Patterns to Common Patterns and add new content#846
pranaygp merged 6 commits into
mainfrom
happy-moon

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

Renames the "Control Flow Patterns" documentation page to "Common Patterns" and expands it with new content.

Changes

Page Rename

  • Renamed control-flow-patterns.mdxcommon-patterns.mdx
  • Updated title from "Control Flow Patterns" to "Common Patterns"
  • Added permanent redirect from old URL to prevent broken external links
  • Updated all internal references (navigation, links)

New Content

  • Timeout Pattern: Shows how to use Promise.race with sleep() to add timeouts to steps, hooks, and webhooks
  • Workflow Composition: Documents two approaches for calling workflows from workflows:
    • Direct await (flattening) - synchronous, single event log
    • Background execution via step - async, independent tracking

Code Block Enhancement

  • Implemented // @setup comment marker that hides lines from rendered output
  • Allows doc authors to include type declarations for type checking while keeping examples clean
  • Uses client-side DOM filtering via useEffect in the CodeBlock component

Testing

  • Verified all code examples render without setup lines
  • Confirmed redirect works for old URL
  • Link validation passes

CopilotAI review requested due to automatic review settings January 24, 2026 01:19
@changeset-bot

changeset-botBot commented Jan 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8f029d4

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

This PR includes no changesets

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

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

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

@vercel

vercelBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 26, 2026 7:22pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 26, 2026 7:22pm
example-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-astro-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-express-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-fastify-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-hono-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-nitro-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-nuxt-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-vite-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workflow-docsReadyReadyPreview, CommentJan 26, 2026 7:22pm

@github-actions

github-actionsBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.029s (-36.6% 🟢)1.008s (~)0.979s101.00x
💻 LocalNext.js (Turbopack)0.043s (-1.8%)1.018s (~)0.974s101.50x
💻 LocalNitro0.044s (+1.4%)1.008s (~)0.964s101.52x
🐘 PostgresNext.js (Turbopack)0.195s (+36.2% 🔺)1.021s (~)0.826s106.74x
🐘 PostgresNitro0.237s (-6.4% 🟢)1.019s (+0.6%)0.782s108.21x
🐘 PostgresExpress0.272s (-6.2% 🟢)1.013s (~)0.742s109.41x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.635s (-28.5% 🟢)1.479s (-16.1% 🟢)0.844s101.00x
▲ VercelNitro0.668s (-15.5% 🟢)1.530s (-9.6% 🟢)0.861s101.05x
▲ VercelNext.js (Turbopack)0.686s (-9.1% 🟢)1.742s (-11.3% 🟢)1.055s101.08x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.078s (-3.2%)2.008s (~)0.930s101.00x
💻 LocalNext.js (Turbopack)1.101s (~)2.011s (~)0.910s101.02x
💻 LocalNitro1.117s (~)2.007s (~)0.890s101.04x
🐘 PostgresNext.js (Turbopack)1.885s (-2.8%)2.017s (-4.7%)0.132s101.75x
🐘 PostgresExpress2.118s (~)3.014s (~)0.896s101.97x
🐘 PostgresNitro2.391s (+9.2% 🔺)3.019s (~)0.628s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.006s (+3.8%)3.659s (-1.5%)0.652s101.00x
▲ VercelExpress3.096s (+4.8%)3.964s (+8.1% 🔺)0.868s101.03x
▲ VercelNext.js (Turbopack)3.112s (+9.4% 🔺)4.087s (+12.2% 🔺)0.975s101.04x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.554s (-2.6%)11.018s (~)0.465s51.00x
💻 LocalNext.js (Turbopack)10.679s (~)11.015s (~)0.336s51.01x
💻 LocalNitro10.839s (~)11.017s (~)0.178s51.03x
🐘 PostgresNext.js (Turbopack)15.169s (-0.6%)16.036s (~)0.867s51.44x
🐘 PostgresNitro20.192s (-1.2%)21.055s (~)0.863s51.91x
🐘 PostgresExpress20.444s (+14.4% 🔺)21.035s (+15.4% 🔺)0.591s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)24.583s (-6.6% 🟢)25.291s (-5.6% 🟢)0.708s51.00x
▲ VercelExpress25.001s (-0.8%)26.020s (+0.8%)1.019s51.02x
▲ VercelNitro25.117s (-4.7%)25.655s (-4.7%)0.538s51.02x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.352s (-4.3%)2.007s (~)0.654s151.00x
💻 LocalNext.js (Turbopack)1.370s (-1.5%)2.010s (~)0.639s151.01x
💻 LocalNitro1.399s (~)2.005s (~)0.606s151.04x
🐘 PostgresNext.js (Turbopack)1.720s (+1.8%)2.012s (-1.3%)0.293s151.27x
🐘 PostgresExpress2.178s (+7.2% 🔺)3.013s (+9.8% 🔺)0.835s101.61x
🐘 PostgresNitro2.345s (+6.4% 🔺)3.016s (~)0.672s101.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.468s (+11.1% 🔺)4.169s (+7.1% 🔺)0.701s81.00x
▲ VercelNext.js (Turbopack)3.485s (+16.4% 🔺)4.121s (+13.4% 🔺)0.636s81.00x
▲ VercelExpress3.867s (+33.6% 🔺)4.564s (+24.7% 🔺)0.698s71.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.172s (-12.3% 🟢)3.158s (+4.1%)0.986s101.00x
💻 LocalNext.js (Turbopack)2.447s (+1.4%)3.115s (-7.8% 🟢)0.669s101.13x
💻 LocalNitro2.533s (~)3.035s (+0.6%)0.503s101.17x
🐘 PostgresNitro6.774s (-20.2% 🟢)7.244s (-20.2% 🟢)0.470s53.12x
🐘 PostgresExpress8.295s (-6.4% 🟢)9.064s (-5.1% 🟢)0.769s43.82x
🐘 PostgresNext.js (Turbopack)10.296s (-6.2% 🟢)11.026s (-5.7% 🟢)0.730s34.74x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.885s (+20.9% 🔺)4.758s (+28.1% 🔺)0.873s71.00x
▲ VercelExpress4.487s (+25.7% 🔺)5.107s (+22.4% 🔺)0.620s61.15x
▲ VercelNitro5.034s (+39.9% 🔺)5.868s (+42.6% 🔺)0.833s61.30x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.375s (-3.8%)2.006s (~)0.630s151.00x
💻 LocalNext.js (Turbopack)1.384s (-1.2%)2.008s (~)0.624s151.01x
💻 LocalNitro1.412s (~)2.006s (~)0.593s151.03x
🐘 PostgresExpress2.220s (+3.4%)2.829s (+9.0% 🔺)0.609s111.61x
🐘 PostgresNitro2.236s (+10.6% 🔺)2.746s (+2.3%)0.509s111.63x
🐘 PostgresNext.js (Turbopack)2.282s (+52.5% 🔺)2.689s (+33.6% 🔺)0.407s121.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.995s (+3.8%)3.742s (~)0.747s91.00x
▲ VercelNitro3.441s (+16.1% 🔺)4.161s (+11.8% 🔺)0.720s81.15x
▲ VercelNext.js (Turbopack)3.537s (+21.7% 🔺)4.495s (+20.3% 🔺)0.958s71.18x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.290s (-11.2% 🟢)3.258s (+7.7% 🔺)0.968s101.00x
💻 LocalNext.js (Turbopack)2.501s (~)3.006s (-1.3%)0.504s101.09x
💻 LocalNitro2.648s (~)3.021s (~)0.372s101.16x
🐘 PostgresExpress12.342s (+7.1% 🔺)12.694s (+8.4% 🔺)0.352s35.39x
🐘 PostgresNitro12.936s (+13.6% 🔺)13.358s (+10.8% 🔺)0.422s35.65x
🐘 PostgresNext.js (Turbopack)13.693s (+26.0% 🔺)14.373s (+25.7% 🔺)0.679s35.98x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.634s (+16.6% 🔺)4.296s (+18.8% 🔺)0.662s71.00x
▲ VercelNitro4.020s (+27.4% 🔺)4.680s (+23.9% 🔺)0.660s71.11x
▲ VercelNext.js (Turbopack)4.354s (+25.4% 🔺)5.326s (+30.2% 🔺)0.972s61.20x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.114s (-37.5% 🟢)0.999s (+0.6%)0.012s (-21.7% 🟢)1.019s (~)0.905s101.00x
💻 LocalNext.js (Turbopack)0.138s (~)1.003s (~)0.016s (+4.5%)1.026s (~)0.888s101.22x
💻 LocalNitro0.183s (-2.9%)0.992s (~)0.015s (-12.3% 🟢)1.021s (~)0.837s101.62x
🐘 PostgresNext.js (Turbopack)1.272s (+3.9%)1.629s (-10.6% 🟢)0.000s (-100.0% 🟢)1.819s (-10.0% 🟢)0.548s1011.20x
🐘 PostgresExpress2.235s (+68.8% 🔺)2.809s (+56.6% 🔺)0.000s (NaN%)3.016s (+49.7% 🔺)0.782s1019.69x
🐘 PostgresNitro2.418s (+8.3% 🔺)2.635s (-6.3% 🟢)0.000s (+Infinity% 🔺)3.021s (~)0.603s1021.30x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.189s (+8.0% 🔺)3.156s (-4.0%)0.852s (+191.7% 🔺)4.617s (+11.3% 🔺)1.428s101.00x
▲ VercelNext.js (Turbopack)3.235s (+10.4% 🔺)3.441s (+8.0% 🔺)0.728s (+98.6% 🔺)4.724s (+18.3% 🔺)1.489s101.01x
▲ VercelExpress3.331s (+15.5% 🔺)3.304s (~)0.699s (+39.4% 🔺)4.587s (+7.5% 🔺)1.256s101.04x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress8/8
🐘 PostgresNext.js (Turbopack)5/8
▲ VercelExpress3/8
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

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

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

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

📋 View full workflow run

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 overhauls the “Worlds” documentation and UI, introduces a new /worlds section with richer CI test/benchmark visualizations, and renames/expands the “Control Flow Patterns” docs into “Common Patterns,” including the new timeout and workflow-composition patterns plus // @setup support in code blocks.

Changes:

  • Renames and extends the “Control Flow Patterns” foundations doc into “Common Patterns,” adding examples for timeouts and workflow composition plus support for hidden // @setup lines in code blocks.
  • Introduces a new /worlds landing page, per-world detail pages (including OpenGraph images), and a benchmark comparison view driven by CI artifacts, with updated world metadata and redirects from the old docs URLs.
  • Adds a benchmark history API backed by GitHub CI artifacts and corresponding UI components (charts, E2E/performance summaries, globe visualization) to surface compatibility and performance data across worlds.

Reviewed changes

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

Show a summary per file
FileDescription
worlds-manifest.jsonUpdates Local/Postgres/Vercel world descriptions and adds an example URL for Postgres, supporting richer world metadata in the new Worlds UI.
pnpm-lock.yamlLocks the new cobe and transitive phenomenon dependencies for the globe visualization.
docs/package.jsonAdds the cobe dependency used by the Worlds globe component.
docs/next.config.tsAdds redirects from legacy world and control-flow-pattern docs URLs to the new /worlds routes and /docs/foundations/common-patterns.
docs/lib/worlds-data.tsExtends the worlds data fetcher to include framework-level E2E details, workflow timing metrics, and a derived benchmark10SeqMs KPI, plus helpers to fetch a single world and all world IDs.
docs/content/docs/worlds/meta.jsonRemoves the old MDX-based /docs/worlds index to be replaced by the new /worlds app route.
docs/content/docs/worlds/index.mdxRemoves the old Worlds ecosystem MDX page in favor of the new Worlds dashboard experience.
docs/content/docs/foundations/starting-workflows.mdxUpdates the link from “Control Flow Patterns” to the new “Common Patterns” page.
docs/content/docs/foundations/meta.jsonReplaces control-flow-patterns with common-patterns in the foundations nav metadata.
docs/content/docs/foundations/index.mdxUpdates the card to point to /docs/foundations/common-patterns with a new title and description.
docs/content/docs/foundations/control-flow-patterns.mdxRemoves the old patterns page in preparation for the new common-patterns.mdx.
docs/content/docs/foundations/common-patterns.mdxNew, expanded “Common Patterns” doc including sequential/parallel patterns, timeout patterns, workflow composition, and a full birthday workflow example, using // @setup-annotated declarations.
docs/content/docs/deploying/world/vercel-world.mdxRewrites Vercel World docs to align with the new Worlds UX, link to observability, and use <WorldTestingPerformance /> for live CI data.
docs/content/docs/deploying/world/postgres-world.mdxReworks Postgres World docs with clearer installation, configuration, and deployment guidance and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/local-world.mdxSimplifies Local World docs to emphasize zero-config usage, observability, configuration knobs, and limitations, and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/index.mdxReplaces the WIP notice with a fuller explanation of the World abstraction, how to choose worlds, and how to build/contribute worlds, linking to the new /worlds ecosystem.
docs/components/worlds/types.tsExtends typings to include per-framework E2E data, new benchmark timing fields (workflow vs wall time, TTFB, slurp), an example URL, and a benchmark10SeqMs KPI, plus a formatTime helper.
docs/components/worlds/index.tsRe-exports new world UI components (detail hero/TOC, instructions, testing/performance, benchmark history) for use across the docs/app.
docs/components/worlds/WorldTestingPerformanceMDX.tsxWraps WorldTestingPerformance in a context-based MDX component that pulls world data from WorldDataProvider.
docs/components/worlds/WorldTestingPerformance.tsxNew client component that renders E2E test summaries, benchmark tables (standard and streaming), and an interactive history chart per world.
docs/components/worlds/WorldInstructions.tsxNew component rendering installation/usage and GitHub/docs links for community worlds.
docs/components/worlds/WorldDetailToc.tsxNew sticky “On this page” TOC that tracks the active section via IntersectionObserver on world detail pages.
docs/components/worlds/WorldDetailHero.tsxNew hero section for /worlds/[id] pages with badges, install snippets (for community worlds), quick E2E/PERF stats, and npm/GitHub/example links.
docs/components/worlds/WorldDataProvider.tsxProvides world and CI metadata via React context for world detail pages and MDX components.
docs/components/worlds/WorldCardSimple.tsxNew simplified card used on the /worlds landing page, showing basic info plus condensed E2E and PERF indicators.
docs/components/worlds/WorldCard.tsxTweaks the existing dashboard card to compute E2E pass percentage excluding skipped tests and removes the unused community emoji and average benchmark summary.
docs/components/worlds/Globe.tsxNew animated globe visualization using cobe that adapts to theme and supports pointer drag.
docs/components/worlds/BenchmarkHistoryChart.tsxNew dialog-driven chart showing benchmark history over releases/commits using Recharts and linking out to GitHub; powers the per-metric history view in WorldTestingPerformance.
docs/components/worlds/BenchmarkChart.tsxUpdates benchmark comparison table/bar to use formatTime for displaying durations in ms/s and to consume the extended benchmark metrics.
docs/components/geistdocs/code-block.tsxEnhances the docs code block to hide any lines containing // @setup in the rendered view while retaining them in the underlying code for type checking.
docs/app/worlds/page.tsxNew /worlds landing page with hero, stats, grid of WorldCardSimples, a placeholder provider benchmark visualization, explanation of Worlds, and contribution CTA, backed by getWorldsData().
docs/app/worlds/layout.tsxWraps the Worlds routes in the shared HomeLayout with appropriate padding.
docs/app/worlds/compare/page.tsxNew (non-indexed) /worlds/compare page that renders the full BenchmarkChart overview and per-benchmark BenchmarkBars using getWorldsData().
docs/app/worlds/[id]/page.tsxNew /worlds/[id] detail page that stitches together the hero, MDX-based official documentation, or templated community docs, plus the sticky TOC, via WorldDataProvider.
docs/app/worlds/[id]/opengraph-image.tsxAdds per-world OpenGraph image generation using getWorldIds/getWorldData for rich link previews.
docs/app/layout.tsxAdds a “Worlds” link to the global navigation bar pointing at the new /worlds section.
docs/app/docs/[[...slug]]/page.tsxRegisters WorldTestingPerformance as a no-op in the docs MDX context to avoid mismatch when world MDX pages are statically generated outside /worlds.
docs/app/api/benchmark-history/route.tsNew API route that aggregates benchmark history by walking GitHub gh-pages CI artifacts and main/tags history, feeding BenchmarkHistoryChart.
.github/scripts/generate-docs-data.jsExtends benchmark parsing to record separate workflow execution times, min/max, TTFB, and slurp metrics used by the Worlds dashboard and history charts.

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

Base automatically changed from pranaygp/finish-benchmarking to mainJanuary 26, 2026 19:16
- Update title format to '{Name} World | Workflow DevKit'
- Update worlds index page title to 'Worlds | Workflow DevKit'
- Improve world descriptions in worlds-manifest.json for better SEO
- Add dynamic OG image generation at /worlds/[id]/og
- Add openGraph and twitter metadata to world detail pages
- Replace route-based og/route.tsx with opengraph-image.tsx file convention
- Remove runtime = 'edge' to allow generateStaticParams for static generation
- Simplify page.tsx metadata (Next.js auto-detects opengraph-image.tsx)
…tent
- Rename page from control-flow-patterns to common-patterns
- Add redirect for old URL to prevent broken external links
- Add new Timeout Pattern section (Promise.race with sleep)
- Add new Workflow Composition section (direct await vs background execution)
- Implement @setup comment marker to hide type declarations in code examples
- Update navigation and references to new page name
The Full Example only demonstrates sequential and parallel execution,
so it should come before the new Timeout and Workflow Composition patterns.
@pranaygp
pranaygp merged commit 243bf8f into mainJan 26, 2026
86 of 87 checks passed
@pranaygp
pranaygp deleted the happy-moon branch January 26, 2026 19:23
pranaygp added a commit that referenced this pull request Jan 28, 2026
…s-and-commands
* origin/main:
fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
Publish "workflow" and "@workflow/core" package versions in sync (#870)
Add SDK version to workflow run executionContext for observability (#868)
Allow recreateRun to accept an optional deploymentId parameter (#869)
Add support for top-level `using` declarations inside of step / workflow functions (#866)
docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
Add "classes" object to `manifest.json` file (#864)
Fix Nest workbench app build (#865)
Ignore Astro on local dev tests for source map e2e tests (#863)
Enable custom class serialization transformations for "client" mode (#860)
Submit request bodies with CBOR encoding (#844)
[world-vercel] Update queue to use VQS v3 API (#799)
NestJS framework support (#840)
Fix resolve hook theming and token fetching. (#856)
docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
docs: revamp World documentation pages (#763)
Remove unused `getWritable` stub function (#855)
# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
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

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

docs: rename Control Flow Patterns to Common Patterns and add new content - #846

Merged
pranaygp merged 6 commits into
mainfrom
happy-moon
Jan 26, 2026
Merged

docs: rename Control Flow Patterns to Common Patterns and add new content#846
pranaygp merged 6 commits into
mainfrom
happy-moon

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

Renames the "Control Flow Patterns" documentation page to "Common Patterns" and expands it with new content.

Changes

Page Rename

  • Renamed control-flow-patterns.mdxcommon-patterns.mdx
  • Updated title from "Control Flow Patterns" to "Common Patterns"
  • Added permanent redirect from old URL to prevent broken external links
  • Updated all internal references (navigation, links)

New Content

  • Timeout Pattern: Shows how to use Promise.race with sleep() to add timeouts to steps, hooks, and webhooks
  • Workflow Composition: Documents two approaches for calling workflows from workflows:
    • Direct await (flattening) - synchronous, single event log
    • Background execution via step - async, independent tracking

Code Block Enhancement

  • Implemented // @setup comment marker that hides lines from rendered output
  • Allows doc authors to include type declarations for type checking while keeping examples clean
  • Uses client-side DOM filtering via useEffect in the CodeBlock component

Testing

  • Verified all code examples render without setup lines
  • Confirmed redirect works for old URL
  • Link validation passes

CopilotAI review requested due to automatic review settings January 24, 2026 01:19
@changeset-bot

changeset-botBot commented Jan 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8f029d4

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

This PR includes no changesets

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

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

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

@vercel

vercelBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 26, 2026 7:22pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 26, 2026 7:22pm
example-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-astro-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-express-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-fastify-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-hono-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-nitro-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-nuxt-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-vite-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workflow-docsReadyReadyPreview, CommentJan 26, 2026 7:22pm

@github-actions

github-actionsBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.029s (-36.6% 🟢)1.008s (~)0.979s101.00x
💻 LocalNext.js (Turbopack)0.043s (-1.8%)1.018s (~)0.974s101.50x
💻 LocalNitro0.044s (+1.4%)1.008s (~)0.964s101.52x
🐘 PostgresNext.js (Turbopack)0.195s (+36.2% 🔺)1.021s (~)0.826s106.74x
🐘 PostgresNitro0.237s (-6.4% 🟢)1.019s (+0.6%)0.782s108.21x
🐘 PostgresExpress0.272s (-6.2% 🟢)1.013s (~)0.742s109.41x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.635s (-28.5% 🟢)1.479s (-16.1% 🟢)0.844s101.00x
▲ VercelNitro0.668s (-15.5% 🟢)1.530s (-9.6% 🟢)0.861s101.05x
▲ VercelNext.js (Turbopack)0.686s (-9.1% 🟢)1.742s (-11.3% 🟢)1.055s101.08x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.078s (-3.2%)2.008s (~)0.930s101.00x
💻 LocalNext.js (Turbopack)1.101s (~)2.011s (~)0.910s101.02x
💻 LocalNitro1.117s (~)2.007s (~)0.890s101.04x
🐘 PostgresNext.js (Turbopack)1.885s (-2.8%)2.017s (-4.7%)0.132s101.75x
🐘 PostgresExpress2.118s (~)3.014s (~)0.896s101.97x
🐘 PostgresNitro2.391s (+9.2% 🔺)3.019s (~)0.628s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.006s (+3.8%)3.659s (-1.5%)0.652s101.00x
▲ VercelExpress3.096s (+4.8%)3.964s (+8.1% 🔺)0.868s101.03x
▲ VercelNext.js (Turbopack)3.112s (+9.4% 🔺)4.087s (+12.2% 🔺)0.975s101.04x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.554s (-2.6%)11.018s (~)0.465s51.00x
💻 LocalNext.js (Turbopack)10.679s (~)11.015s (~)0.336s51.01x
💻 LocalNitro10.839s (~)11.017s (~)0.178s51.03x
🐘 PostgresNext.js (Turbopack)15.169s (-0.6%)16.036s (~)0.867s51.44x
🐘 PostgresNitro20.192s (-1.2%)21.055s (~)0.863s51.91x
🐘 PostgresExpress20.444s (+14.4% 🔺)21.035s (+15.4% 🔺)0.591s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)24.583s (-6.6% 🟢)25.291s (-5.6% 🟢)0.708s51.00x
▲ VercelExpress25.001s (-0.8%)26.020s (+0.8%)1.019s51.02x
▲ VercelNitro25.117s (-4.7%)25.655s (-4.7%)0.538s51.02x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.352s (-4.3%)2.007s (~)0.654s151.00x
💻 LocalNext.js (Turbopack)1.370s (-1.5%)2.010s (~)0.639s151.01x
💻 LocalNitro1.399s (~)2.005s (~)0.606s151.04x
🐘 PostgresNext.js (Turbopack)1.720s (+1.8%)2.012s (-1.3%)0.293s151.27x
🐘 PostgresExpress2.178s (+7.2% 🔺)3.013s (+9.8% 🔺)0.835s101.61x
🐘 PostgresNitro2.345s (+6.4% 🔺)3.016s (~)0.672s101.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.468s (+11.1% 🔺)4.169s (+7.1% 🔺)0.701s81.00x
▲ VercelNext.js (Turbopack)3.485s (+16.4% 🔺)4.121s (+13.4% 🔺)0.636s81.00x
▲ VercelExpress3.867s (+33.6% 🔺)4.564s (+24.7% 🔺)0.698s71.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.172s (-12.3% 🟢)3.158s (+4.1%)0.986s101.00x
💻 LocalNext.js (Turbopack)2.447s (+1.4%)3.115s (-7.8% 🟢)0.669s101.13x
💻 LocalNitro2.533s (~)3.035s (+0.6%)0.503s101.17x
🐘 PostgresNitro6.774s (-20.2% 🟢)7.244s (-20.2% 🟢)0.470s53.12x
🐘 PostgresExpress8.295s (-6.4% 🟢)9.064s (-5.1% 🟢)0.769s43.82x
🐘 PostgresNext.js (Turbopack)10.296s (-6.2% 🟢)11.026s (-5.7% 🟢)0.730s34.74x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.885s (+20.9% 🔺)4.758s (+28.1% 🔺)0.873s71.00x
▲ VercelExpress4.487s (+25.7% 🔺)5.107s (+22.4% 🔺)0.620s61.15x
▲ VercelNitro5.034s (+39.9% 🔺)5.868s (+42.6% 🔺)0.833s61.30x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.375s (-3.8%)2.006s (~)0.630s151.00x
💻 LocalNext.js (Turbopack)1.384s (-1.2%)2.008s (~)0.624s151.01x
💻 LocalNitro1.412s (~)2.006s (~)0.593s151.03x
🐘 PostgresExpress2.220s (+3.4%)2.829s (+9.0% 🔺)0.609s111.61x
🐘 PostgresNitro2.236s (+10.6% 🔺)2.746s (+2.3%)0.509s111.63x
🐘 PostgresNext.js (Turbopack)2.282s (+52.5% 🔺)2.689s (+33.6% 🔺)0.407s121.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.995s (+3.8%)3.742s (~)0.747s91.00x
▲ VercelNitro3.441s (+16.1% 🔺)4.161s (+11.8% 🔺)0.720s81.15x
▲ VercelNext.js (Turbopack)3.537s (+21.7% 🔺)4.495s (+20.3% 🔺)0.958s71.18x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.290s (-11.2% 🟢)3.258s (+7.7% 🔺)0.968s101.00x
💻 LocalNext.js (Turbopack)2.501s (~)3.006s (-1.3%)0.504s101.09x
💻 LocalNitro2.648s (~)3.021s (~)0.372s101.16x
🐘 PostgresExpress12.342s (+7.1% 🔺)12.694s (+8.4% 🔺)0.352s35.39x
🐘 PostgresNitro12.936s (+13.6% 🔺)13.358s (+10.8% 🔺)0.422s35.65x
🐘 PostgresNext.js (Turbopack)13.693s (+26.0% 🔺)14.373s (+25.7% 🔺)0.679s35.98x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.634s (+16.6% 🔺)4.296s (+18.8% 🔺)0.662s71.00x
▲ VercelNitro4.020s (+27.4% 🔺)4.680s (+23.9% 🔺)0.660s71.11x
▲ VercelNext.js (Turbopack)4.354s (+25.4% 🔺)5.326s (+30.2% 🔺)0.972s61.20x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.114s (-37.5% 🟢)0.999s (+0.6%)0.012s (-21.7% 🟢)1.019s (~)0.905s101.00x
💻 LocalNext.js (Turbopack)0.138s (~)1.003s (~)0.016s (+4.5%)1.026s (~)0.888s101.22x
💻 LocalNitro0.183s (-2.9%)0.992s (~)0.015s (-12.3% 🟢)1.021s (~)0.837s101.62x
🐘 PostgresNext.js (Turbopack)1.272s (+3.9%)1.629s (-10.6% 🟢)0.000s (-100.0% 🟢)1.819s (-10.0% 🟢)0.548s1011.20x
🐘 PostgresExpress2.235s (+68.8% 🔺)2.809s (+56.6% 🔺)0.000s (NaN%)3.016s (+49.7% 🔺)0.782s1019.69x
🐘 PostgresNitro2.418s (+8.3% 🔺)2.635s (-6.3% 🟢)0.000s (+Infinity% 🔺)3.021s (~)0.603s1021.30x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.189s (+8.0% 🔺)3.156s (-4.0%)0.852s (+191.7% 🔺)4.617s (+11.3% 🔺)1.428s101.00x
▲ VercelNext.js (Turbopack)3.235s (+10.4% 🔺)3.441s (+8.0% 🔺)0.728s (+98.6% 🔺)4.724s (+18.3% 🔺)1.489s101.01x
▲ VercelExpress3.331s (+15.5% 🔺)3.304s (~)0.699s (+39.4% 🔺)4.587s (+7.5% 🔺)1.256s101.04x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress8/8
🐘 PostgresNext.js (Turbopack)5/8
▲ VercelExpress3/8
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

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

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

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

📋 View full workflow run

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 overhauls the “Worlds” documentation and UI, introduces a new /worlds section with richer CI test/benchmark visualizations, and renames/expands the “Control Flow Patterns” docs into “Common Patterns,” including the new timeout and workflow-composition patterns plus // @setup support in code blocks.

Changes:

  • Renames and extends the “Control Flow Patterns” foundations doc into “Common Patterns,” adding examples for timeouts and workflow composition plus support for hidden // @setup lines in code blocks.
  • Introduces a new /worlds landing page, per-world detail pages (including OpenGraph images), and a benchmark comparison view driven by CI artifacts, with updated world metadata and redirects from the old docs URLs.
  • Adds a benchmark history API backed by GitHub CI artifacts and corresponding UI components (charts, E2E/performance summaries, globe visualization) to surface compatibility and performance data across worlds.

Reviewed changes

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

Show a summary per file
FileDescription
worlds-manifest.jsonUpdates Local/Postgres/Vercel world descriptions and adds an example URL for Postgres, supporting richer world metadata in the new Worlds UI.
pnpm-lock.yamlLocks the new cobe and transitive phenomenon dependencies for the globe visualization.
docs/package.jsonAdds the cobe dependency used by the Worlds globe component.
docs/next.config.tsAdds redirects from legacy world and control-flow-pattern docs URLs to the new /worlds routes and /docs/foundations/common-patterns.
docs/lib/worlds-data.tsExtends the worlds data fetcher to include framework-level E2E details, workflow timing metrics, and a derived benchmark10SeqMs KPI, plus helpers to fetch a single world and all world IDs.
docs/content/docs/worlds/meta.jsonRemoves the old MDX-based /docs/worlds index to be replaced by the new /worlds app route.
docs/content/docs/worlds/index.mdxRemoves the old Worlds ecosystem MDX page in favor of the new Worlds dashboard experience.
docs/content/docs/foundations/starting-workflows.mdxUpdates the link from “Control Flow Patterns” to the new “Common Patterns” page.
docs/content/docs/foundations/meta.jsonReplaces control-flow-patterns with common-patterns in the foundations nav metadata.
docs/content/docs/foundations/index.mdxUpdates the card to point to /docs/foundations/common-patterns with a new title and description.
docs/content/docs/foundations/control-flow-patterns.mdxRemoves the old patterns page in preparation for the new common-patterns.mdx.
docs/content/docs/foundations/common-patterns.mdxNew, expanded “Common Patterns” doc including sequential/parallel patterns, timeout patterns, workflow composition, and a full birthday workflow example, using // @setup-annotated declarations.
docs/content/docs/deploying/world/vercel-world.mdxRewrites Vercel World docs to align with the new Worlds UX, link to observability, and use <WorldTestingPerformance /> for live CI data.
docs/content/docs/deploying/world/postgres-world.mdxReworks Postgres World docs with clearer installation, configuration, and deployment guidance and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/local-world.mdxSimplifies Local World docs to emphasize zero-config usage, observability, configuration knobs, and limitations, and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/index.mdxReplaces the WIP notice with a fuller explanation of the World abstraction, how to choose worlds, and how to build/contribute worlds, linking to the new /worlds ecosystem.
docs/components/worlds/types.tsExtends typings to include per-framework E2E data, new benchmark timing fields (workflow vs wall time, TTFB, slurp), an example URL, and a benchmark10SeqMs KPI, plus a formatTime helper.
docs/components/worlds/index.tsRe-exports new world UI components (detail hero/TOC, instructions, testing/performance, benchmark history) for use across the docs/app.
docs/components/worlds/WorldTestingPerformanceMDX.tsxWraps WorldTestingPerformance in a context-based MDX component that pulls world data from WorldDataProvider.
docs/components/worlds/WorldTestingPerformance.tsxNew client component that renders E2E test summaries, benchmark tables (standard and streaming), and an interactive history chart per world.
docs/components/worlds/WorldInstructions.tsxNew component rendering installation/usage and GitHub/docs links for community worlds.
docs/components/worlds/WorldDetailToc.tsxNew sticky “On this page” TOC that tracks the active section via IntersectionObserver on world detail pages.
docs/components/worlds/WorldDetailHero.tsxNew hero section for /worlds/[id] pages with badges, install snippets (for community worlds), quick E2E/PERF stats, and npm/GitHub/example links.
docs/components/worlds/WorldDataProvider.tsxProvides world and CI metadata via React context for world detail pages and MDX components.
docs/components/worlds/WorldCardSimple.tsxNew simplified card used on the /worlds landing page, showing basic info plus condensed E2E and PERF indicators.
docs/components/worlds/WorldCard.tsxTweaks the existing dashboard card to compute E2E pass percentage excluding skipped tests and removes the unused community emoji and average benchmark summary.
docs/components/worlds/Globe.tsxNew animated globe visualization using cobe that adapts to theme and supports pointer drag.
docs/components/worlds/BenchmarkHistoryChart.tsxNew dialog-driven chart showing benchmark history over releases/commits using Recharts and linking out to GitHub; powers the per-metric history view in WorldTestingPerformance.
docs/components/worlds/BenchmarkChart.tsxUpdates benchmark comparison table/bar to use formatTime for displaying durations in ms/s and to consume the extended benchmark metrics.
docs/components/geistdocs/code-block.tsxEnhances the docs code block to hide any lines containing // @setup in the rendered view while retaining them in the underlying code for type checking.
docs/app/worlds/page.tsxNew /worlds landing page with hero, stats, grid of WorldCardSimples, a placeholder provider benchmark visualization, explanation of Worlds, and contribution CTA, backed by getWorldsData().
docs/app/worlds/layout.tsxWraps the Worlds routes in the shared HomeLayout with appropriate padding.
docs/app/worlds/compare/page.tsxNew (non-indexed) /worlds/compare page that renders the full BenchmarkChart overview and per-benchmark BenchmarkBars using getWorldsData().
docs/app/worlds/[id]/page.tsxNew /worlds/[id] detail page that stitches together the hero, MDX-based official documentation, or templated community docs, plus the sticky TOC, via WorldDataProvider.
docs/app/worlds/[id]/opengraph-image.tsxAdds per-world OpenGraph image generation using getWorldIds/getWorldData for rich link previews.
docs/app/layout.tsxAdds a “Worlds” link to the global navigation bar pointing at the new /worlds section.
docs/app/docs/[[...slug]]/page.tsxRegisters WorldTestingPerformance as a no-op in the docs MDX context to avoid mismatch when world MDX pages are statically generated outside /worlds.
docs/app/api/benchmark-history/route.tsNew API route that aggregates benchmark history by walking GitHub gh-pages CI artifacts and main/tags history, feeding BenchmarkHistoryChart.
.github/scripts/generate-docs-data.jsExtends benchmark parsing to record separate workflow execution times, min/max, TTFB, and slurp metrics used by the Worlds dashboard and history charts.

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

Base automatically changed from pranaygp/finish-benchmarking to mainJanuary 26, 2026 19:16
- Update title format to '{Name} World | Workflow DevKit'
- Update worlds index page title to 'Worlds | Workflow DevKit'
- Improve world descriptions in worlds-manifest.json for better SEO
- Add dynamic OG image generation at /worlds/[id]/og
- Add openGraph and twitter metadata to world detail pages
- Replace route-based og/route.tsx with opengraph-image.tsx file convention
- Remove runtime = 'edge' to allow generateStaticParams for static generation
- Simplify page.tsx metadata (Next.js auto-detects opengraph-image.tsx)
…tent
- Rename page from control-flow-patterns to common-patterns
- Add redirect for old URL to prevent broken external links
- Add new Timeout Pattern section (Promise.race with sleep)
- Add new Workflow Composition section (direct await vs background execution)
- Implement @setup comment marker to hide type declarations in code examples
- Update navigation and references to new page name
The Full Example only demonstrates sequential and parallel execution,
so it should come before the new Timeout and Workflow Composition patterns.
@pranaygp
pranaygp merged commit 243bf8f into mainJan 26, 2026
86 of 87 checks passed
@pranaygp
pranaygp deleted the happy-moon branch January 26, 2026 19:23
pranaygp added a commit that referenced this pull request Jan 28, 2026
…s-and-commands
* origin/main:
fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
Publish "workflow" and "@workflow/core" package versions in sync (#870)
Add SDK version to workflow run executionContext for observability (#868)
Allow recreateRun to accept an optional deploymentId parameter (#869)
Add support for top-level `using` declarations inside of step / workflow functions (#866)
docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
Add "classes" object to `manifest.json` file (#864)
Fix Nest workbench app build (#865)
Ignore Astro on local dev tests for source map e2e tests (#863)
Enable custom class serialization transformations for "client" mode (#860)
Submit request bodies with CBOR encoding (#844)
[world-vercel] Update queue to use VQS v3 API (#799)
NestJS framework support (#840)
Fix resolve hook theming and token fetching. (#856)
docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
docs: revamp World documentation pages (#763)
Remove unused `getWritable` stub function (#855)
# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
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

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

docs: rename Control Flow Patterns to Common Patterns and add new content - #846

Merged
pranaygp merged 6 commits into
mainfrom
happy-moon
Jan 26, 2026
Merged

docs: rename Control Flow Patterns to Common Patterns and add new content#846
pranaygp merged 6 commits into
mainfrom
happy-moon

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

Renames the "Control Flow Patterns" documentation page to "Common Patterns" and expands it with new content.

Changes

Page Rename

  • Renamed control-flow-patterns.mdxcommon-patterns.mdx
  • Updated title from "Control Flow Patterns" to "Common Patterns"
  • Added permanent redirect from old URL to prevent broken external links
  • Updated all internal references (navigation, links)

New Content

  • Timeout Pattern: Shows how to use Promise.race with sleep() to add timeouts to steps, hooks, and webhooks
  • Workflow Composition: Documents two approaches for calling workflows from workflows:
    • Direct await (flattening) - synchronous, single event log
    • Background execution via step - async, independent tracking

Code Block Enhancement

  • Implemented // @setup comment marker that hides lines from rendered output
  • Allows doc authors to include type declarations for type checking while keeping examples clean
  • Uses client-side DOM filtering via useEffect in the CodeBlock component

Testing

  • Verified all code examples render without setup lines
  • Confirmed redirect works for old URL
  • Link validation passes

CopilotAI review requested due to automatic review settings January 24, 2026 01:19
@changeset-bot

changeset-botBot commented Jan 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8f029d4

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

This PR includes no changesets

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

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

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

@vercel

vercelBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJan 26, 2026 7:22pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentJan 26, 2026 7:22pm
example-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-astro-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-express-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-fastify-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-hono-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-nitro-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-nuxt-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-sveltekit-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workbench-vite-workflowReadyReadyPreview, CommentJan 26, 2026 7:22pm
workflow-docsReadyReadyPreview, CommentJan 26, 2026 7:22pm

@github-actions

github-actionsBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.029s (-36.6% 🟢)1.008s (~)0.979s101.00x
💻 LocalNext.js (Turbopack)0.043s (-1.8%)1.018s (~)0.974s101.50x
💻 LocalNitro0.044s (+1.4%)1.008s (~)0.964s101.52x
🐘 PostgresNext.js (Turbopack)0.195s (+36.2% 🔺)1.021s (~)0.826s106.74x
🐘 PostgresNitro0.237s (-6.4% 🟢)1.019s (+0.6%)0.782s108.21x
🐘 PostgresExpress0.272s (-6.2% 🟢)1.013s (~)0.742s109.41x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.635s (-28.5% 🟢)1.479s (-16.1% 🟢)0.844s101.00x
▲ VercelNitro0.668s (-15.5% 🟢)1.530s (-9.6% 🟢)0.861s101.05x
▲ VercelNext.js (Turbopack)0.686s (-9.1% 🟢)1.742s (-11.3% 🟢)1.055s101.08x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.078s (-3.2%)2.008s (~)0.930s101.00x
💻 LocalNext.js (Turbopack)1.101s (~)2.011s (~)0.910s101.02x
💻 LocalNitro1.117s (~)2.007s (~)0.890s101.04x
🐘 PostgresNext.js (Turbopack)1.885s (-2.8%)2.017s (-4.7%)0.132s101.75x
🐘 PostgresExpress2.118s (~)3.014s (~)0.896s101.97x
🐘 PostgresNitro2.391s (+9.2% 🔺)3.019s (~)0.628s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.006s (+3.8%)3.659s (-1.5%)0.652s101.00x
▲ VercelExpress3.096s (+4.8%)3.964s (+8.1% 🔺)0.868s101.03x
▲ VercelNext.js (Turbopack)3.112s (+9.4% 🔺)4.087s (+12.2% 🔺)0.975s101.04x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.554s (-2.6%)11.018s (~)0.465s51.00x
💻 LocalNext.js (Turbopack)10.679s (~)11.015s (~)0.336s51.01x
💻 LocalNitro10.839s (~)11.017s (~)0.178s51.03x
🐘 PostgresNext.js (Turbopack)15.169s (-0.6%)16.036s (~)0.867s51.44x
🐘 PostgresNitro20.192s (-1.2%)21.055s (~)0.863s51.91x
🐘 PostgresExpress20.444s (+14.4% 🔺)21.035s (+15.4% 🔺)0.591s51.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)24.583s (-6.6% 🟢)25.291s (-5.6% 🟢)0.708s51.00x
▲ VercelExpress25.001s (-0.8%)26.020s (+0.8%)1.019s51.02x
▲ VercelNitro25.117s (-4.7%)25.655s (-4.7%)0.538s51.02x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.352s (-4.3%)2.007s (~)0.654s151.00x
💻 LocalNext.js (Turbopack)1.370s (-1.5%)2.010s (~)0.639s151.01x
💻 LocalNitro1.399s (~)2.005s (~)0.606s151.04x
🐘 PostgresNext.js (Turbopack)1.720s (+1.8%)2.012s (-1.3%)0.293s151.27x
🐘 PostgresExpress2.178s (+7.2% 🔺)3.013s (+9.8% 🔺)0.835s101.61x
🐘 PostgresNitro2.345s (+6.4% 🔺)3.016s (~)0.672s101.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.468s (+11.1% 🔺)4.169s (+7.1% 🔺)0.701s81.00x
▲ VercelNext.js (Turbopack)3.485s (+16.4% 🔺)4.121s (+13.4% 🔺)0.636s81.00x
▲ VercelExpress3.867s (+33.6% 🔺)4.564s (+24.7% 🔺)0.698s71.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.172s (-12.3% 🟢)3.158s (+4.1%)0.986s101.00x
💻 LocalNext.js (Turbopack)2.447s (+1.4%)3.115s (-7.8% 🟢)0.669s101.13x
💻 LocalNitro2.533s (~)3.035s (+0.6%)0.503s101.17x
🐘 PostgresNitro6.774s (-20.2% 🟢)7.244s (-20.2% 🟢)0.470s53.12x
🐘 PostgresExpress8.295s (-6.4% 🟢)9.064s (-5.1% 🟢)0.769s43.82x
🐘 PostgresNext.js (Turbopack)10.296s (-6.2% 🟢)11.026s (-5.7% 🟢)0.730s34.74x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.885s (+20.9% 🔺)4.758s (+28.1% 🔺)0.873s71.00x
▲ VercelExpress4.487s (+25.7% 🔺)5.107s (+22.4% 🔺)0.620s61.15x
▲ VercelNitro5.034s (+39.9% 🔺)5.868s (+42.6% 🔺)0.833s61.30x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.375s (-3.8%)2.006s (~)0.630s151.00x
💻 LocalNext.js (Turbopack)1.384s (-1.2%)2.008s (~)0.624s151.01x
💻 LocalNitro1.412s (~)2.006s (~)0.593s151.03x
🐘 PostgresExpress2.220s (+3.4%)2.829s (+9.0% 🔺)0.609s111.61x
🐘 PostgresNitro2.236s (+10.6% 🔺)2.746s (+2.3%)0.509s111.63x
🐘 PostgresNext.js (Turbopack)2.282s (+52.5% 🔺)2.689s (+33.6% 🔺)0.407s121.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.995s (+3.8%)3.742s (~)0.747s91.00x
▲ VercelNitro3.441s (+16.1% 🔺)4.161s (+11.8% 🔺)0.720s81.15x
▲ VercelNext.js (Turbopack)3.537s (+21.7% 🔺)4.495s (+20.3% 🔺)0.958s71.18x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.290s (-11.2% 🟢)3.258s (+7.7% 🔺)0.968s101.00x
💻 LocalNext.js (Turbopack)2.501s (~)3.006s (-1.3%)0.504s101.09x
💻 LocalNitro2.648s (~)3.021s (~)0.372s101.16x
🐘 PostgresExpress12.342s (+7.1% 🔺)12.694s (+8.4% 🔺)0.352s35.39x
🐘 PostgresNitro12.936s (+13.6% 🔺)13.358s (+10.8% 🔺)0.422s35.65x
🐘 PostgresNext.js (Turbopack)13.693s (+26.0% 🔺)14.373s (+25.7% 🔺)0.679s35.98x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.634s (+16.6% 🔺)4.296s (+18.8% 🔺)0.662s71.00x
▲ VercelNitro4.020s (+27.4% 🔺)4.680s (+23.9% 🔺)0.660s71.11x
▲ VercelNext.js (Turbopack)4.354s (+25.4% 🔺)5.326s (+30.2% 🔺)0.972s61.20x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.114s (-37.5% 🟢)0.999s (+0.6%)0.012s (-21.7% 🟢)1.019s (~)0.905s101.00x
💻 LocalNext.js (Turbopack)0.138s (~)1.003s (~)0.016s (+4.5%)1.026s (~)0.888s101.22x
💻 LocalNitro0.183s (-2.9%)0.992s (~)0.015s (-12.3% 🟢)1.021s (~)0.837s101.62x
🐘 PostgresNext.js (Turbopack)1.272s (+3.9%)1.629s (-10.6% 🟢)0.000s (-100.0% 🟢)1.819s (-10.0% 🟢)0.548s1011.20x
🐘 PostgresExpress2.235s (+68.8% 🔺)2.809s (+56.6% 🔺)0.000s (NaN%)3.016s (+49.7% 🔺)0.782s1019.69x
🐘 PostgresNitro2.418s (+8.3% 🔺)2.635s (-6.3% 🟢)0.000s (+Infinity% 🔺)3.021s (~)0.603s1021.30x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.189s (+8.0% 🔺)3.156s (-4.0%)0.852s (+191.7% 🔺)4.617s (+11.3% 🔺)1.428s101.00x
▲ VercelNext.js (Turbopack)3.235s (+10.4% 🔺)3.441s (+8.0% 🔺)0.728s (+98.6% 🔺)4.724s (+18.3% 🔺)1.489s101.01x
▲ VercelExpress3.331s (+15.5% 🔺)3.304s (~)0.699s (+39.4% 🔺)4.587s (+7.5% 🔺)1.256s101.04x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress8/8
🐘 PostgresNext.js (Turbopack)5/8
▲ VercelExpress3/8
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

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

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

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

📋 View full workflow run

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 overhauls the “Worlds” documentation and UI, introduces a new /worlds section with richer CI test/benchmark visualizations, and renames/expands the “Control Flow Patterns” docs into “Common Patterns,” including the new timeout and workflow-composition patterns plus // @setup support in code blocks.

Changes:

  • Renames and extends the “Control Flow Patterns” foundations doc into “Common Patterns,” adding examples for timeouts and workflow composition plus support for hidden // @setup lines in code blocks.
  • Introduces a new /worlds landing page, per-world detail pages (including OpenGraph images), and a benchmark comparison view driven by CI artifacts, with updated world metadata and redirects from the old docs URLs.
  • Adds a benchmark history API backed by GitHub CI artifacts and corresponding UI components (charts, E2E/performance summaries, globe visualization) to surface compatibility and performance data across worlds.

Reviewed changes

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

Show a summary per file
FileDescription
worlds-manifest.jsonUpdates Local/Postgres/Vercel world descriptions and adds an example URL for Postgres, supporting richer world metadata in the new Worlds UI.
pnpm-lock.yamlLocks the new cobe and transitive phenomenon dependencies for the globe visualization.
docs/package.jsonAdds the cobe dependency used by the Worlds globe component.
docs/next.config.tsAdds redirects from legacy world and control-flow-pattern docs URLs to the new /worlds routes and /docs/foundations/common-patterns.
docs/lib/worlds-data.tsExtends the worlds data fetcher to include framework-level E2E details, workflow timing metrics, and a derived benchmark10SeqMs KPI, plus helpers to fetch a single world and all world IDs.
docs/content/docs/worlds/meta.jsonRemoves the old MDX-based /docs/worlds index to be replaced by the new /worlds app route.
docs/content/docs/worlds/index.mdxRemoves the old Worlds ecosystem MDX page in favor of the new Worlds dashboard experience.
docs/content/docs/foundations/starting-workflows.mdxUpdates the link from “Control Flow Patterns” to the new “Common Patterns” page.
docs/content/docs/foundations/meta.jsonReplaces control-flow-patterns with common-patterns in the foundations nav metadata.
docs/content/docs/foundations/index.mdxUpdates the card to point to /docs/foundations/common-patterns with a new title and description.
docs/content/docs/foundations/control-flow-patterns.mdxRemoves the old patterns page in preparation for the new common-patterns.mdx.
docs/content/docs/foundations/common-patterns.mdxNew, expanded “Common Patterns” doc including sequential/parallel patterns, timeout patterns, workflow composition, and a full birthday workflow example, using // @setup-annotated declarations.
docs/content/docs/deploying/world/vercel-world.mdxRewrites Vercel World docs to align with the new Worlds UX, link to observability, and use <WorldTestingPerformance /> for live CI data.
docs/content/docs/deploying/world/postgres-world.mdxReworks Postgres World docs with clearer installation, configuration, and deployment guidance and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/local-world.mdxSimplifies Local World docs to emphasize zero-config usage, observability, configuration knobs, and limitations, and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/index.mdxReplaces the WIP notice with a fuller explanation of the World abstraction, how to choose worlds, and how to build/contribute worlds, linking to the new /worlds ecosystem.
docs/components/worlds/types.tsExtends typings to include per-framework E2E data, new benchmark timing fields (workflow vs wall time, TTFB, slurp), an example URL, and a benchmark10SeqMs KPI, plus a formatTime helper.
docs/components/worlds/index.tsRe-exports new world UI components (detail hero/TOC, instructions, testing/performance, benchmark history) for use across the docs/app.
docs/components/worlds/WorldTestingPerformanceMDX.tsxWraps WorldTestingPerformance in a context-based MDX component that pulls world data from WorldDataProvider.
docs/components/worlds/WorldTestingPerformance.tsxNew client component that renders E2E test summaries, benchmark tables (standard and streaming), and an interactive history chart per world.
docs/components/worlds/WorldInstructions.tsxNew component rendering installation/usage and GitHub/docs links for community worlds.
docs/components/worlds/WorldDetailToc.tsxNew sticky “On this page” TOC that tracks the active section via IntersectionObserver on world detail pages.
docs/components/worlds/WorldDetailHero.tsxNew hero section for /worlds/[id] pages with badges, install snippets (for community worlds), quick E2E/PERF stats, and npm/GitHub/example links.
docs/components/worlds/WorldDataProvider.tsxProvides world and CI metadata via React context for world detail pages and MDX components.
docs/components/worlds/WorldCardSimple.tsxNew simplified card used on the /worlds landing page, showing basic info plus condensed E2E and PERF indicators.
docs/components/worlds/WorldCard.tsxTweaks the existing dashboard card to compute E2E pass percentage excluding skipped tests and removes the unused community emoji and average benchmark summary.
docs/components/worlds/Globe.tsxNew animated globe visualization using cobe that adapts to theme and supports pointer drag.
docs/components/worlds/BenchmarkHistoryChart.tsxNew dialog-driven chart showing benchmark history over releases/commits using Recharts and linking out to GitHub; powers the per-metric history view in WorldTestingPerformance.
docs/components/worlds/BenchmarkChart.tsxUpdates benchmark comparison table/bar to use formatTime for displaying durations in ms/s and to consume the extended benchmark metrics.
docs/components/geistdocs/code-block.tsxEnhances the docs code block to hide any lines containing // @setup in the rendered view while retaining them in the underlying code for type checking.
docs/app/worlds/page.tsxNew /worlds landing page with hero, stats, grid of WorldCardSimples, a placeholder provider benchmark visualization, explanation of Worlds, and contribution CTA, backed by getWorldsData().
docs/app/worlds/layout.tsxWraps the Worlds routes in the shared HomeLayout with appropriate padding.
docs/app/worlds/compare/page.tsxNew (non-indexed) /worlds/compare page that renders the full BenchmarkChart overview and per-benchmark BenchmarkBars using getWorldsData().
docs/app/worlds/[id]/page.tsxNew /worlds/[id] detail page that stitches together the hero, MDX-based official documentation, or templated community docs, plus the sticky TOC, via WorldDataProvider.
docs/app/worlds/[id]/opengraph-image.tsxAdds per-world OpenGraph image generation using getWorldIds/getWorldData for rich link previews.
docs/app/layout.tsxAdds a “Worlds” link to the global navigation bar pointing at the new /worlds section.
docs/app/docs/[[...slug]]/page.tsxRegisters WorldTestingPerformance as a no-op in the docs MDX context to avoid mismatch when world MDX pages are statically generated outside /worlds.
docs/app/api/benchmark-history/route.tsNew API route that aggregates benchmark history by walking GitHub gh-pages CI artifacts and main/tags history, feeding BenchmarkHistoryChart.
.github/scripts/generate-docs-data.jsExtends benchmark parsing to record separate workflow execution times, min/max, TTFB, and slurp metrics used by the Worlds dashboard and history charts.

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

Base automatically changed from pranaygp/finish-benchmarking to mainJanuary 26, 2026 19:16
- Update title format to '{Name} World | Workflow DevKit'
- Update worlds index page title to 'Worlds | Workflow DevKit'
- Improve world descriptions in worlds-manifest.json for better SEO
- Add dynamic OG image generation at /worlds/[id]/og
- Add openGraph and twitter metadata to world detail pages
- Replace route-based og/route.tsx with opengraph-image.tsx file convention
- Remove runtime = 'edge' to allow generateStaticParams for static generation
- Simplify page.tsx metadata (Next.js auto-detects opengraph-image.tsx)
…tent
- Rename page from control-flow-patterns to common-patterns
- Add redirect for old URL to prevent broken external links
- Add new Timeout Pattern section (Promise.race with sleep)
- Add new Workflow Composition section (direct await vs background execution)
- Implement @setup comment marker to hide type declarations in code examples
- Update navigation and references to new page name
The Full Example only demonstrates sequential and parallel execution,
so it should come before the new Timeout and Workflow Composition patterns.
@pranaygp
pranaygp merged commit 243bf8f into mainJan 26, 2026
86 of 87 checks passed
@pranaygp
pranaygp deleted the happy-moon branch January 26, 2026 19:23
pranaygp added a commit that referenced this pull request Jan 28, 2026
…s-and-commands
* origin/main:
fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
Publish "workflow" and "@workflow/core" package versions in sync (#870)
Add SDK version to workflow run executionContext for observability (#868)
Allow recreateRun to accept an optional deploymentId parameter (#869)
Add support for top-level `using` declarations inside of step / workflow functions (#866)
docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
Add "classes" object to `manifest.json` file (#864)
Fix Nest workbench app build (#865)
Ignore Astro on local dev tests for source map e2e tests (#863)
Enable custom class serialization transformations for "client" mode (#860)
Submit request bodies with CBOR encoding (#844)
[world-vercel] Update queue to use VQS v3 API (#799)
NestJS framework support (#840)
Fix resolve hook theming and token fetching. (#856)
docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
docs: revamp World documentation pages (#763)
Remove unused `getWritable` stub function (#855)
# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
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

@pranaygp@TooTallNate@VaguelySerious