Skip to content

Add cookbook with 50 workflow pattern recipes#1564

Open
johnlindquist wants to merge 52 commits intomainfrom
cookbook
Open

Add cookbook with 50 workflow pattern recipes#1564
johnlindquist wants to merge 52 commits intomainfrom
cookbook

Conversation

@johnlindquist
Copy link
Copy Markdown
Contributor

Summary

  • Adds a Cookbook section to useworkflow.dev docs with an interactive decision tree explorer ("I want to...") that guides users to the right workflow pattern
  • Migrates all 50 workflow patterns from the campaign demos project as MDX recipe pages, each with simplified + full implementation code snippets
  • 8 categories: Payments & Orders, Approvals, Resilience, Notifications, Webhooks & Callbacks, Data Processing, Routing, Observability

Test plan

  • Visit /docs/cookbook and verify the decision tree renders with all 7 top-level branches
  • Click through each branch to confirm sub-questions and results link to correct recipe pages
  • Verify breadcrumb navigation works (click back to previous steps, "Start over")
  • Open a recipe page (e.g. /docs/cookbook/payments/saga) and confirm both simplified and full code blocks render with syntax highlighting
  • Check sidebar nav shows Cookbook section with all 8 category subfolders
  • Verify no build errors with pnpm build in docs/

Migrate the "Workflow API Explorer" decision tree concept from
workflow-campaign-demos into useworkflow.dev docs as a Cookbook.

Infrastructure:
- docs/lib/cookbook-tree.ts: decision tree data, 50 recipe metadata entries, slug-to-category mapping
- docs/components/geistdocs/cookbook-explorer.tsx: interactive "I want to..." decision tree UI with breadcrumb navigation
- docs/content/docs/cookbook/index.mdx: landing page rendering CookbookExplorer component
- docs/content/docs/cookbook/meta.json + 8 category meta.json files for sidebar nav
- docs/content/docs/meta.json: added cookbook to docs nav between foundations and how-it-works
- docs/app/[lang]/docs/[[...slug]]/page.tsx: registered CookbookExplorer component

50 recipe MDX files across 8 categories (payments, approvals, resilience,
notifications, webhooks, data-processing, routing, observability), each with:
- Frontmatter (title, description, type: guide, summary with use-case scenario)
- Simplified code snippet (core pattern only, stripped of demo UI concerns)
- Full implementation code snippet (exact source from campaign demos)
- Key APIs section with links to API reference docs
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 30, 2026

@johnlindquist johnlindquist requested a review from a team as a code owner March 30, 2026 23:03
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 30, 2026

⚠️ No Changeset found

Latest commit: 59d2c66

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
❌ ▲ Vercel Production 845 1 67 913
✅ 💻 Local Development 818 0 178 996
✅ 📦 Local Production 818 0 178 996
✅ 🐘 Local Postgres 818 0 178 996
✅ 🪟 Windows 75 0 8 83
❌ 🌍 Community Worlds 134 64 24 222
✅ 📋 Other 207 0 42 249
Total 3715 65 675 4455

❌ Failed Tests

▲ Vercel Production (1 failed)

sveltekit (1 failed):

  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNJM5YMQ2S4D8X3433PPNAKK | 🔍 observability
🌍 Community Worlds (64 failed)

mongodb (4 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNJKVWK491QE7V8RCV2MEY92
  • webhookWorkflow | wrun_01KNJKW5J7HTS76XZFNMBRH6CF
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNJM46TQ9ZPZDH8YVFTP6XDK
  • resilient start: addTenWorkflow completes when run_created returns 500

redis (3 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNJKVWK491QE7V8RCV2MEY92
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNJM46TQ9ZPZDH8YVFTP6XDK
  • resilient start: addTenWorkflow completes when run_created returns 500

turso (57 failed):

  • addTenWorkflow | wrun_01KNJKTK71EMF867NF273E0E8Z
  • addTenWorkflow | wrun_01KNJKTK71EMF867NF273E0E8Z
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNJKVS7TAP4SFSWC2STJ3S6M
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNJKTWGB0GKX9JBJWS9AQSXJ
  • promiseRaceWorkflow | wrun_01KNJKV1M9DK6RJYPM19EMYR6N
  • promiseAnyWorkflow | wrun_01KNJKV4AHSWXSDFH6G3CRMJG3
  • importedStepOnlyWorkflow | wrun_01KNJKW8DFRNFEDXPMNG0315T6
  • hookWorkflow | wrun_01KNJKVGX20JC0QM4BYJR38JW7
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNJKVWK491QE7V8RCV2MEY92
  • webhookWorkflow | wrun_01KNJKW5J7HTS76XZFNMBRH6CF
  • sleepingWorkflow | wrun_01KNJKWC215CCAK0FM5FWTN6BT
  • parallelSleepWorkflow | wrun_01KNJKWS04CEYFXMGHF0PCSV9A
  • nullByteWorkflow | wrun_01KNJKX2C0BG71Z9RKNAXWWYJQ
  • workflowAndStepMetadataWorkflow | wrun_01KNJKX50EB3SGEHXFST9JGX24
  • fetchWorkflow | wrun_01KNJKZQET1ESMSS4YMNHJ82W3
  • promiseRaceStressTestWorkflow | wrun_01KNJKZVF8FE4C4TFTGVADYX4P
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNJM3K0BR1VV4KVJB0JCTC3C
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNJM46TQ9ZPZDH8YVFTP6XDK
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNJM4VGNKJ2NGR5TT0G9MWQM
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNJM5FKAEQS5Z5BZH54A6AQK
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNJM5RVJ1QGE3Q9VB7HP9W6W
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNJM5YMQ2S4D8X3433PPNAKK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNJM60X8WYHXFAE2MRANTNJB
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNJM6GBVY0KSNC48G0T0AKBX
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNJM6PDYX895N750XAPRKGAB
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNJM6X7SK5GQGY0J74P8YZ62
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNJM7347N98HR2F34ZBEBZ27
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNJM79ZDJ875X6V7PBMJTTCX
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNJM7JXC4KA19S3EBCMD9T0K
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNJM7T01YRYH75AGJ0PD5ET0
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNJM85AA43S0XA97A4A8QBP6
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNJM8DP03PENYV8ER02GEZJD
  • cancelRun - cancelling a running workflow | wrun_01KNJM8R1H0A45Z7KVMP92B35F
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNJM91EFS87F35J609WRK7P7
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNJM9DY8Z03DCEQSJ3FVBT22
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNJMA2ME61TAAVBMPF9BCH6E
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNJMAD8C6XJDQ5VE5ZT0RMEQ
  • importMetaUrlWorkflow - import.meta.url is available in step bundles
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577)
  • resilient start: addTenWorkflow completes when run_created returns 500

Details by Category

❌ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 76 0 7
✅ example 76 0 7
✅ express 76 0 7
✅ fastify 76 0 7
✅ hono 76 0 7
✅ nextjs-turbopack 81 0 2
✅ nextjs-webpack 81 0 2
✅ nitro 76 0 7
✅ nuxt 76 0 7
❌ sveltekit 75 1 7
✅ vite 76 0 7
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 69 0 14
✅ express-stable 69 0 14
✅ fastify-stable 69 0 14
✅ hono-stable 69 0 14
✅ nextjs-turbopack-canary 58 0 25
✅ nextjs-turbopack-stable 75 0 8
✅ nextjs-webpack-canary 58 0 25
✅ nextjs-webpack-stable 75 0 8
✅ nitro-stable 69 0 14
✅ nuxt-stable 69 0 14
✅ sveltekit-stable 69 0 14
✅ vite-stable 69 0 14
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 69 0 14
✅ express-stable 69 0 14
✅ fastify-stable 69 0 14
✅ hono-stable 69 0 14
✅ nextjs-turbopack-canary 58 0 25
✅ nextjs-turbopack-stable 75 0 8
✅ nextjs-webpack-canary 58 0 25
✅ nextjs-webpack-stable 75 0 8
✅ nitro-stable 69 0 14
✅ nuxt-stable 69 0 14
✅ sveltekit-stable 69 0 14
✅ vite-stable 69 0 14
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 69 0 14
✅ express-stable 69 0 14
✅ fastify-stable 69 0 14
✅ hono-stable 69 0 14
✅ nextjs-turbopack-canary 58 0 25
✅ nextjs-turbopack-stable 75 0 8
✅ nextjs-webpack-canary 58 0 25
✅ nextjs-webpack-stable 75 0 8
✅ nitro-stable 69 0 14
✅ nuxt-stable 69 0 14
✅ sveltekit-stable 69 0 14
✅ vite-stable 69 0 14
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 75 0 8
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 5 0 0
❌ mongodb 57 4 8
✅ redis-dev 5 0 0
❌ redis 58 3 8
✅ turso-dev 5 0 0
❌ turso 4 57 8
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 69 0 14
✅ e2e-local-postgres-nest-stable 69 0 14
✅ e2e-local-prod-nest-stable 69 0 14

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2026

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 0.042s (-1.4%) 1.006s (~) 0.963s 10 1.00x
💻 Local Express 0.043s (+0.9%) 1.005s (~) 0.962s 10 1.03x
🐘 Postgres Express 0.057s (-5.8% 🟢) 1.010s (~) 0.953s 10 1.35x
🐘 Postgres Nitro 0.059s (~) 1.010s (~) 0.951s 10 1.39x
workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 1.126s (~) 2.005s (~) 0.879s 10 1.00x
💻 Local Nitro 1.128s (~) 2.014s (~) 0.886s 10 1.00x
🐘 Postgres Express 1.148s (~) 2.009s (~) 0.861s 10 1.02x
🐘 Postgres Nitro 1.148s (+0.8%) 2.010s (~) 0.862s 10 1.02x
workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 10.891s (~) 11.025s (~) 0.134s 3 1.00x
🐘 Postgres Nitro 10.914s (~) 11.024s (~) 0.110s 3 1.00x
💻 Local Express 10.926s (~) 11.024s (~) 0.098s 3 1.00x
💻 Local Nitro 10.940s (~) 11.023s (~) 0.083s 3 1.00x
workflow with 25 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 14.491s (-0.7%) 15.017s (~) 0.526s 4 1.00x
🐘 Postgres Express 14.552s (~) 15.022s (~) 0.470s 4 1.00x
💻 Local Express 14.937s (~) 15.030s (~) 0.094s 4 1.03x
💻 Local Nitro 15.000s (+0.6%) 15.029s (~) 0.029s 4 1.04x
workflow with 50 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 14.087s (-0.7%) 14.881s (~) 0.794s 7 1.00x
🐘 Postgres Nitro 14.238s (+1.6%) 15.023s (+6.1% 🔺) 0.785s 6 1.01x
💻 Local Express 16.714s (~) 17.032s (~) 0.318s 6 1.19x
💻 Local Nitro 16.830s (+1.6%) 17.032s (~) 0.201s 6 1.19x
Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.261s (~) 2.009s (~) 0.748s 15 1.00x
🐘 Postgres Express 1.265s (-1.6%) 2.009s (~) 0.743s 15 1.00x
💻 Local Express 1.530s (~) 2.007s (~) 0.477s 15 1.21x
💻 Local Nitro 1.531s (-1.5%) 2.006s (~) 0.475s 15 1.21x
Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.308s (-1.2%) 3.009s (~) 0.700s 10 1.00x
🐘 Postgres Express 2.327s (~) 3.009s (~) 0.682s 10 1.01x
💻 Local Nitro 3.025s (-3.2%) 3.885s (~) 0.859s 8 1.31x
💻 Local Express 3.066s (-2.0%) 3.676s (-5.4% 🟢) 0.610s 9 1.33x
Promise.all with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 3.448s (-1.2%) 4.011s (~) 0.563s 8 1.00x
🐘 Postgres Nitro 3.469s (~) 4.011s (~) 0.542s 8 1.01x
💻 Local Express 8.243s (-1.1%) 9.020s (~) 0.776s 4 2.39x
💻 Local Nitro 8.489s (+4.1%) 9.025s (+2.9%) 0.536s 4 2.46x
Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.254s (~) 2.008s (~) 0.754s 15 1.00x
🐘 Postgres Nitro 1.259s (+1.4%) 2.008s (~) 0.748s 15 1.00x
💻 Local Express 1.520s (-1.0%) 2.007s (~) 0.487s 15 1.21x
💻 Local Nitro 1.527s (-0.9%) 2.006s (~) 0.480s 15 1.22x
Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 2.334s (-0.9%) 3.011s (~) 0.677s 10 1.00x
🐘 Postgres Nitro 2.341s (+0.9%) 3.010s (~) 0.669s 10 1.00x
💻 Local Express 2.990s (+1.0%) 3.762s (~) 0.772s 8 1.28x
💻 Local Nitro 3.067s (+3.2%) 3.884s (+5.7% 🔺) 0.817s 8 1.31x
Promise.race with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.462s (~) 4.013s (~) 0.551s 8 1.00x
🐘 Postgres Express 3.472s (-0.7%) 4.009s (~) 0.537s 8 1.00x
💻 Local Express 8.874s (+3.5%) 9.274s (+2.7%) 0.400s 4 2.56x
💻 Local Nitro 9.679s (+9.6% 🔺) 10.024s (+5.3% 🔺) 0.345s 3 2.80x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.816s (-2.2%) 1.006s (~) 0.190s 60 1.00x
🐘 Postgres Express 0.840s (-2.6%) 1.006s (-1.7%) 0.166s 60 1.03x
💻 Local Express 1.001s (+2.7%) 1.434s (+33.3% 🔺) 0.433s 42 1.23x
💻 Local Nitro 1.004s (+3.3%) 1.369s (+27.3% 🔺) 0.365s 44 1.23x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.982s (+0.7%) 2.403s (+6.4% 🔺) 0.421s 38 1.00x
🐘 Postgres Express 2.034s (-2.9%) 2.608s (-10.4% 🟢) 0.574s 35 1.03x
💻 Local Express 3.006s (~) 3.453s (-2.6%) 0.447s 27 1.52x
💻 Local Nitro 3.037s (-5.5% 🟢) 3.759s (~) 0.721s 24 1.53x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 4.029s (+0.7%) 4.627s (+6.9% 🔺) 0.598s 26 1.00x
🐘 Postgres Express 4.133s (-1.9%) 4.892s (-1.6%) 0.759s 25 1.03x
💻 Local Express 9.132s (+0.5%) 9.710s (+1.6%) 0.578s 13 2.27x
💻 Local Nitro 9.214s (+2.0%) 9.942s (+4.0%) 0.727s 13 2.29x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.280s (+0.8%) 1.007s (~) 0.727s 60 1.00x
🐘 Postgres Express 0.293s (+1.8%) 1.007s (~) 0.714s 60 1.05x
💻 Local Express 0.569s (-0.7%) 1.004s (~) 0.436s 60 2.03x
💻 Local Nitro 0.593s (-3.6%) 1.005s (-1.6%) 0.412s 60 2.12x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 0.493s (~) 1.007s (~) 0.514s 90 1.00x
🐘 Postgres Nitro 0.494s (~) 1.006s (~) 0.512s 90 1.00x
💻 Local Express 2.593s (+2.9%) 3.010s (~) 0.416s 30 5.26x
💻 Local Nitro 2.625s (+4.0%) 3.010s (-1.1%) 0.385s 30 5.33x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 0.778s (-3.6%) 1.007s (~) 0.230s 120 1.00x
🐘 Postgres Nitro 0.794s (+2.3%) 1.008s (~) 0.214s 120 1.02x
💻 Local Express 11.032s (-2.4%) 11.758s (-0.8%) 0.726s 11 14.19x
💻 Local Nitro 11.554s (+5.2% 🔺) 12.032s (+3.2%) 0.478s 10 14.86x
Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 0.205s (-5.8% 🟢) 0.998s (~) 0.002s (+23.1% 🔺) 1.010s (~) 0.805s 10 1.00x
💻 Local Nitro 0.206s (-2.6%) 1.004s (~) 0.012s (+4.2%) 1.019s (~) 0.812s 10 1.01x
💻 Local Express 0.210s (~) 1.004s (~) 0.012s (~) 1.018s (~) 0.808s 10 1.03x
🐘 Postgres Nitro 0.225s (+10.6% 🔺) 0.994s (-0.5%) 0.002s (+30.8% 🔺) 1.011s (~) 0.787s 10 1.10x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.604s (-2.5%) 1.005s (~) 0.004s (+40.9% 🔺) 1.022s (~) 0.418s 59 1.00x
🐘 Postgres Express 0.611s (+0.8%) 1.005s (~) 0.004s (+6.5% 🔺) 1.023s (~) 0.412s 59 1.01x
💻 Local Express 0.723s (-23.2% 🟢) 1.012s (~) 0.009s (+2.8%) 1.023s (-16.7% 🟢) 0.300s 59 1.20x
💻 Local Nitro 0.740s (+3.6%) 1.013s (~) 0.009s (+6.9% 🔺) 1.024s (~) 0.284s 59 1.22x
10 parallel streams (1MB each)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.934s (-1.6%) 1.128s (-5.7% 🟢) 0.000s (+92.3% 🔺) 1.157s (-4.2%) 0.223s 52 1.00x
🐘 Postgres Express 0.957s (~) 1.195s (+2.2%) 0.000s (+410.0% 🔺) 1.208s (+2.0%) 0.250s 50 1.02x
💻 Local Express 1.225s (-14.6% 🟢) 2.021s (~) 0.000s (+16.7% 🔺) 2.023s (-8.1% 🟢) 0.798s 30 1.31x
💻 Local Nitro 1.266s (+1.8%) 2.022s (~) 0.000s (+100.0% 🔺) 2.024s (~) 0.758s 30 1.36x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.758s (-0.6%) 2.096s (+1.1%) 0.000s (-51.7% 🟢) 2.110s (~) 0.352s 30 1.00x
🐘 Postgres Nitro 1.810s (+2.2%) 2.176s (+3.6%) 0.000s (+Infinity% 🔺) 2.188s (+2.2%) 0.378s 28 1.03x
💻 Local Express 3.493s (-2.9%) 3.970s (-3.1%) 0.000s (-6.3% 🟢) 3.972s (-3.1%) 0.480s 16 1.99x
💻 Local Nitro 3.654s (-7.5% 🟢) 4.167s (~) 0.001s (+2.7%) 4.170s (-8.1% 🟢) 0.516s 15 2.08x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Express 18/21
🐘 Postgres Express 11/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

Automated checkpoint commit.

Ploop-Iter: 1
Keep the cookbook surface canonical at /cookbooks so docs navigation, sitemap output, and AI/chat entry points stop leaking the legacy /docs/cookbook paths.

Correct the approval-chain example so the docs teach the intended sequential approval semantics instead of implying the workflow approves after the first successful level. This keeps the cookbook aligned with the docs quality bar and avoids misleading readers with inconsistent behavior.

Ploop-Iter: 2
Align cookbook-facing docs outputs with the new public route so
redirects, sitemap entries, and LLM-facing exports stay consistent.
This keeps the polished cookbook section discoverable at its canonical
location while trimming the last demo-heavy recipe examples toward the
same concise style as the rest of the docs.

Ploop-Iter: 3
Automated checkpoint commit.

Ploop-Iter: 4
Keep cookbook content discoverable after moving it to a first-class /cookbooks surface so navigation, canonical metadata, and markdown consumers resolve the new public URLs consistently.

Avoid serving the legacy /docs/cookbook tree as if it were still part of the docs section, which reduces duplicate navigation paths and prevents stale static output from competing with the new route structure.

Ploop-Iter: 5
The cookbook landing page needs to work for both exploratory users and users who already know the pattern they want. This keeps the guided decision tree while adding shared category metadata and a searchable browse mode so recipe discovery feels faster and more consistent with the rest of the docs experience.

Ploop-Iter: 6
Tighten the simplified cookbook recipes so the examples teach the intended workflow semantics clearly and consistently. The changes keep the documentation focused on the core control-flow patterns reviewers called out, while removing ambiguity around partial arrivals, deadlines, and first-success behavior.

Ploop-Iter: 7
Separate cookbook navigation from the docs page tree so the standalone /cookbooks experience stays stable after the route move and the main docs sidebar no longer leaks cookbook entries.\n\nThis keeps cookbook navigation driven by explicit recipe metadata, which avoids duplicated section titles and makes the docs and cookbook surfaces easier to evolve independently.\n\nPloop-Iter: 8
Keep cookbook pages on their public /cookbooks surface so metadata and copied markdown do not leak legacy /docs/cookbook paths.\n\nSimplify sidebar rendering to trust the injected page tree, which avoids route-specific filtering and keeps cookbook navigation consistent with the active layout tree.\n\nPloop-Iter: 9
Move cookbook rendering off the shared docs route so cookbook pages can behave like a first-class docs surface without leaking cookbook-specific UI into the main docs experience.

Centralizing cookbook tree filtering keeps sidebar behavior consistent in one place and avoids duplicate cookbook navigation state across layouts.

Ploop-Iter: 10
Improve the cookbooks entrypoint so loading and keyboard navigation
are usable without visual cues, and keep guided and browse modes
resilient while the route hydrates.

Ploop-Iter: 11
Reduce the migration skill entry point to the decision surface agents need\nso they can select the correct resume pattern without carrying duplicate\nexamples in the initial context.\n\nClarify framework precedence so prompts that explicitly ask for\nframework-agnostic boundaries do not get Hono- or Next-specific route\nshapes, while preserving framework-specific examples when requested.\n\nCentralize canonical resume examples in the shared patterns reference to\nkeep the guidance consistent across migration paths and reduce drift.\n\nPloop-Iter: 4
Add a cohesive set of deep-dive reference articles so the GA launch
has architecture-level documentation grounded in the current SDK
implementation. This gives readers verified explanations of runtime,
replay, streaming, compiler, and cost-model behavior while linking the
series together for easier navigation.

Ploop-Iter: 1
Automated checkpoint commit.

Ploop-Iter: 5
Keep the new deep-dive reference pages cross-linked so readers can move between adjacent runtime concepts without depending on older how-it-works pages alone.

This preserves navigational consistency across the GA launch docs set and reduces the chance that architectural explanations drift into isolated pages that are harder to discover and maintain.

Ploop-Iter: 2
Tighten the migration guidance so agents choose the correct resume surface and runtime boundary earlier, reducing incorrect mixed patterns in generated migrations.

Add explicit fast paths for self-hosted targets and Step Functions task-token callbacks so the skill stays consistent on callback URL vs deterministic resume decisions.

Ploop-Iter: 6
Clarify route selection so the migration skill composes resume, runtime, and app-boundary concerns deterministically. Add a canonical Step Functions self-hosted Hono callback recipe so migrations produce the correct callback-url pattern without mixing incompatible hook surfaces.\n\nPloop-Iter: 7
Preserve the verified GA launch deep-dive drafts in git so the campaign work can continue from a stable checkpoint.

Capture the reviewed documentation progress now to reduce risk of drift between source-backed research and the publishable drafts.

Ploop-Iter: 3
Clarify the migration skill's route-selection rules so generated guidance stays consistent across resume surfaces, runtime targets, and named framework boundaries.

This reduces ambiguous outputs where agents might mix framework syntaxes or invent callback routes for webhook-based flows, which leads to migration guidance that does not match the user's runtime model.

Ploop-Iter: 8
Clarify the runtime mechanics behind the GA deep-dive series so launch content stays aligned with the implementation and existing docs. Tightening these explanations reduces the risk of readers internalizing inaccurate mental models about replay, compilation, and workflow execution.\n\nPloop-Iter: 4
Clarify route selection so migrations choose the correct resume surface and app boundary patterns for the target runtime and framework. Strengthen verification guidance to reject invented callback routes in URL-based flows and keep examples aligned with the documented migration rules.

Ploop-Iter: 9
Align the compiler deep-dive trio with the actual Workflow runtime so launch materials describe the same execution model users rely on. This keeps the GA narrative accurate around deterministic replay, step queue triggers, and runtime bundle responsibilities, reducing the risk of docs teaching an architecture the SDK does not implement.

Ploop-Iter: 5
Reduce hot-path skill context so migration routing stays easier to select and
verify during activation.

Trimmed examples and converted long invalid samples into concise failure rules
so the skill points agents to on-demand references instead of loading bulky
worked code by default.

Ploop-Iter: 10
Clarify route-key planning and resume-surface defaults so migration outputs
stay deterministic when prompts underspecify callback behavior.

Strengthen the deep-dive docs to trace runtime handoffs more directly,
which reduces ambiguity about how the compiler split maps to durable
execution behavior.

Ploop-Iter: 11
Clarify the operational model behind durable streaming and zero-cost suspension so launch materials stay source-accurate for readers comparing workflow runtimes.

The updates make the workflow-step boundary, persistence path, and queue-driven cost story more explicit, reducing ambiguity around where stream I/O is allowed and why long waits do not consume compute.

Ploop-Iter: 6
Automated checkpoint commit.

Ploop-Iter: 12
Align the launch deep dives with the current runtime so campaign content does not misstate suspension behavior or streaming backend capabilities.

These edits clarify the distinct resume paths for step suspension versus timed waits and document the backend-specific streaming guarantees now available across local, Vercel, and Postgres worlds, reducing the risk that readers build incorrect mental models from launch materials.

Ploop-Iter: 7
Clarify when migrations should use deterministic internal resume versus generated callback URLs so skill outputs stay consistent across frameworks and hosting targets. Distinguish default webhook responses from manual-response flows to prevent ambiguous guidance and keep the shared callback references directly inspectable.\n\nPloop-Iter: 13
Clarify the runtime semantics behind suspension and durable streaming so the GA launch materials stay aligned with the source of truth.

These edits tighten descriptions around wake-up paths, backend behavior, and stream lifecycle details to reduce ambiguity for readers comparing the docs to the implementation.

Ploop-Iter: 8
Clarify when migrations should use the default webhook behavior versus
manual responses so agents make the same callback choice across the
skill entrypoint, shared patterns, and API reference.

This reduces avoidable ambiguity for callback-url prompts and makes the
default 202 behavior explicit unless a prompt requires custom response
semantics.

Ploop-Iter: 14
Prevent the GA launch materials from teaching an incorrect mental model about how suspended runs wake back up. The updated wording keeps the blog, social, and reference variants anchored to the real runtime paths so readers understand which transitions are queue-delayed, which are step-driven re-enqueues, and why that distinction matters for the cost story.

Ploop-Iter: 9
Automated checkpoint commit.

Ploop-Iter: 10
Explain the resume-surface decision points so migration and API guidance steer authors toward the correct webhook or hook pattern for the prompt.

Reduce common callback-routing mistakes early in the docs and skill so agents make fewer wrong assumptions during workflow migrations.

Ploop-Iter: 15
Clarify the cost-model narrative so launch materials make source-verifiable
claims about suspension, wake-up paths, and polling behavior.

This keeps the GA messaging aligned with the runtime's actual control
flow and avoids overclaiming where the implementation has narrower
semantics than the original copy suggested.

Ploop-Iter: 11
Keep the migration skill entrypoint small so agents load the routing contract only when the source actually pauses for external resume. Clarify the public webhook docs around the default callback flow to reduce accidental use of lower-level runtime APIs.\n\nPloop-Iter: 16
Align the launch materials with the current runtime semantics so the
cost-model and execution-model narrative stays defensible against the
actual implementation.

This keeps the GA campaign focused on claims we can support directly from
source, especially around suspension, re-enqueue behavior, and the
difference between orchestration compute and client-side polling helpers.

Ploop-Iter: 12
Align the cost-model launch content with the runtime's actual suspension and re-entry mechanics so GA messaging does not overstate identical-cost waits or imply residency that the queue-based engine does not have.

This keeps the public explanation consistent with source-backed behavior around timed wake-ups, explicit workflow re-queue after step completion, and the distinction between idle worker residency and boundary I/O.

Ploop-Iter: 13
Remove deep-dive articles, migration guides/skill, vercel-toolbar skill,
workflow-skills test fixtures, and misc artifacts that belong in separate
branches (deep-dives, migration-guides). Revert create-webhook.mdx,
getting-started/meta.json, and code-transform.mdx to main versions.
Address Vercel toolbar comments from Nathan Rajlich, Peter Wielander, Pranay Prakash, and Karthik Kalyanaraman on the cookbook branch.

In saga.mdx, remove the unnecessary `if (!(error instanceof FatalError)) throw error;` guard in the catch block — compensations should always unwind regardless of error type. Replace the `while/pop()!()` loop with a cleaner `for...of reverse()` to avoid the non-null assertion.

In ai-sdk.mdx, split the "Using Different Providers" section into two subsections: "Vercel Gateway (string model IDs)" clarifying that all string model IDs route through Gateway, and "Direct Provider Access" showing how to import from provider packages like `@workflow/ai/openai` to bypass Gateway. Change the "Tool Functions as Steps" section to "Tool Functions with Steps" and reword to explain that tool execute functions can optionally include steps via "use step" but don't have to — when they aren't steps, they run in workflow context and can modify workflow state directly.

In sandbox.mdx, rewrite the page to reflect that `@vercel/sandbox` now has first-class Workflow SDK support. Replace all `declare function` stubs and `// TODO` placeholders with real `import { Sandbox } from "@vercel/sandbox"`. Remove the four separate "use step" wrapper functions (provisionSandbox, runCommand, teardownSandbox, saveSandboxSnapshot) and show direct `Sandbox.create()`, `sandbox.runCommand()`, and `sandbox.destroy()` calls in the workflow function since these implicitly run as steps. Simplify the agent tool example to use inline execute functions that call Sandbox methods directly with an `activeSandbox` variable for workflow state.

Across all cookbook files, replace "Workflow DevKit" with "Workflow SDK" (8 instances in 5 files: publishing-libraries.mdx, secure-credentials.mdx, ai-sdk.mdx, chat-sdk.mdx, sandbox.mdx).
Replace the interactive CookbookExplorer (726-line decision tree + browse
component) with a simple MDX page that lists recipes grouped by category
with linked titles and descriptions. Remove v1-v5 design variations and
trim cookbook-tree.ts to sidebar-only metadata.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant