Skip to content

[docs] add "Patterns" tab with installable Workflow patterns#1858

Open
karthikscale3 wants to merge 25 commits intomainfrom
karthik/shadcn-registry-2
Open

[docs] add "Patterns" tab with installable Workflow patterns#1858
karthikscale3 wants to merge 25 commits intomainfrom
karthik/shadcn-registry-2

Conversation

@karthikscale3
Copy link
Copy Markdown
Contributor

@karthikscale3 karthikscale3 commented Apr 27, 2026

Summary

Adds a new Patterns section to the docs (/patterns) — a listing + per-item detail surface for installable Workflow recipes that ship via the shadcn CLI.

What's in this PR

Patterns page (/patterns)

  • Replaces the old /registry URL (permanent redirects in place)
  • Listing page with category filters and search
  • Per-item detail page with ToC, code tabs, approach comparisons, Mermaid diagrams, and collapsible "View code" blocks

Cookbook consolidation

  • All cookbook pages covered by a pattern were deleted
  • Permanent redirects from /cookbook/.../patterns/... for every deleted page
  • Cookbook removed from navigation

shadcn-compatible registry API

  • GET /r — returns registry.json index (all 19 patterns)
  • GET /r/[name] — returns registry-item.json for a single pattern
  • Uses registry:file type so the shadcn CLI writes the inline content field directly to target rather than fetching it as a URL
  • i18n middleware updated to exclude /r paths so JSON routes resolve correctly

Installable workflow code

  • Every pattern installs exactly one file into app/workflows/[pattern-id]-workflow.ts
  • Install commands use the full URL form: pnpm dlx shadcn@latest add https://workflow-sdk.dev/r/[name]
  • Each installed file includes a rich agent-friendly header (THE PATTERN, USEFUL WHEN, TO ADAPT, DEPENDENCIES, DOCS) via a separate installCode field on RegistrySnippet — kept separate from the clean UI display code

19 patterns covered
agent-cancellation, ai-sdk, durable-agent, human-in-the-loop, chat-sdk, sandbox, batching, idempotency, rate-limiting, saga, scheduling, sequential-and-parallel, timeouts, webhooks, workflow-composition, child-workflows, distributed-abort-controller, upgrading-workflows, resend

Test plan

  • pnpm dlx shadcn@latest add https://workflow-sdk.dev/r/durable-agent installs app/workflows/durable-agent-workflow.ts with rich comments
  • /r returns valid registry.json with all 19 patterns
  • /r/[name] returns valid registry-item.json with registry:file type and correct app/workflows/ target path
  • Old /cookbook/... URLs redirect to /patterns/...
  • Old /registry/... URLs redirect to /patterns/...
  • Patterns listing and detail pages render correctly in light and dark mode

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 27, 2026

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

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment May 5, 2026 10:54pm
example-nextjs-workflow-webpack Ready Ready Preview, Comment May 5, 2026 10:54pm
example-workflow Ready Ready Preview, Comment May 5, 2026 10:54pm
workbench-astro-workflow Ready Ready Preview, Comment May 5, 2026 10:54pm
workbench-express-workflow Ready Ready Preview, Comment May 5, 2026 10:54pm
workbench-fastify-workflow Ready Ready Preview, Comment May 5, 2026 10:54pm
workbench-hono-workflow Ready Ready Preview, Comment May 5, 2026 10:54pm
workbench-nitro-workflow Ready Ready Preview, Comment May 5, 2026 10:54pm
workbench-nuxt-workflow Ready Ready Preview, Comment May 5, 2026 10:54pm
workbench-sveltekit-workflow Ready Ready Preview, Comment May 5, 2026 10:54pm
workbench-tanstack-start-workflow Ready Ready Preview, Comment May 5, 2026 10:54pm
workbench-vite-workflow Ready Ready Preview, Comment May 5, 2026 10:54pm
workflow-docs Ready Ready Preview, 💬 4 unresolved, Open in v0 May 5, 2026 10:54pm
workflow-swc-playground Ready Ready Preview, Comment May 5, 2026 10:54pm
workflow-tarballs Ready Ready Preview, Comment May 5, 2026 10:54pm
workflow-web Ready Ready Preview, Comment May 5, 2026 10:54pm

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 27, 2026

⚠️ No Changeset found

Latest commit: 62492a6

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 Apr 27, 2026

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 0.030s (-32.5% 🟢) 1.005s (~) 0.975s 10 1.00x
💻 Local Nitro 0.032s (-26.5% 🟢) 1.005s (~) 0.973s 10 1.06x
🐘 Postgres Express 0.041s (-30.2% 🟢) 1.010s (~) 0.970s 10 1.35x
🐘 Postgres Nitro 0.049s (-48.1% 🟢) 1.013s (-2.9%) 0.963s 10 1.65x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 0.299s (-26.9% 🟢) 2.177s (-13.2% 🟢) 1.878s 10 1.00x
▲ Vercel Next.js (Turbopack) 0.696s (+176.7% 🔺) 2.380s (+2.0%) 1.684s 10 2.32x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 1.069s (-5.0%) 2.006s (~) 0.937s 10 1.00x
💻 Local Nitro 1.075s (-5.0% 🟢) 2.006s (~) 0.931s 10 1.00x
🐘 Postgres Express 1.080s (-5.8% 🟢) 2.009s (~) 0.929s 10 1.01x
🐘 Postgres Nitro 1.081s (-5.1% 🟢) 2.010s (~) 0.929s 10 1.01x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 1.573s (-59.6% 🟢) 3.519s (-40.5% 🟢) 1.945s 10 1.00x
▲ Vercel Next.js (Turbopack) 2.282s (+12.1% 🔺) 3.658s (-4.5%) 1.375s 10 1.45x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 10.399s (-4.8%) 11.021s (~) 0.622s 3 1.00x
🐘 Postgres Express 10.413s (-5.0% 🟢) 11.016s (~) 0.603s 3 1.00x
🐘 Postgres Nitro 10.427s (-4.1%) 11.020s (~) 0.593s 3 1.00x
💻 Local Nitro 10.431s (-4.7%) 11.021s (~) 0.590s 3 1.00x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 13.857s (-41.6% 🟢) 15.809s (-37.1% 🟢) 1.952s 2 1.00x
▲ Vercel Next.js (Turbopack) 15.177s (-12.4% 🟢) 16.475s (-15.1% 🟢) 1.298s 2 1.10x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 13.418s (-10.4% 🟢) 14.026s (-6.7% 🟢) 0.608s 5 1.00x
🐘 Postgres Express 13.437s (-7.9% 🟢) 14.016s (-6.7% 🟢) 0.579s 5 1.00x
🐘 Postgres Nitro 13.464s (-7.7% 🟢) 14.018s (-6.7% 🟢) 0.554s 5 1.00x
💻 Local Nitro 13.492s (-10.4% 🟢) 14.024s (-12.5% 🟢) 0.532s 5 1.01x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 21.550s (-66.6% 🟢) 22.957s (-65.5% 🟢) 1.406s 3 1.00x
▲ Vercel Next.js (Turbopack) 23.595s (-55.1% 🟢) 24.776s (-54.6% 🟢) 1.181s 3 1.09x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 11.880s (-29.2% 🟢) 12.020s (-29.4% 🟢) 0.140s 8 1.00x
💻 Local Express 11.891s (-28.4% 🟢) 12.021s (-29.4% 🟢) 0.130s 8 1.00x
🐘 Postgres Express 11.906s (-15.0% 🟢) 12.139s (-16.8% 🟢) 0.233s 8 1.00x
🐘 Postgres Nitro 12.029s (-13.9% 🟢) 12.516s (-12.5% 🟢) 0.487s 8 1.01x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 36.599s (-90.7% 🟢) 38.445s (-90.3% 🟢) 1.846s 3 1.00x
▲ Vercel Nitro 36.957s (-91.3% 🟢) 38.694s (-90.9% 🟢) 1.737s 3 1.01x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.137s (-9.8% 🟢) 2.006s (~) 0.869s 15 1.00x
💻 Local Nitro 1.159s (-29.0% 🟢) 2.006s (-3.3%) 0.847s 15 1.02x
🐘 Postgres Nitro 1.171s (-8.1% 🟢) 2.007s (~) 0.836s 15 1.03x
💻 Local Express 1.186s (-20.3% 🟢) 2.006s (~) 0.819s 15 1.04x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.604s (-7.6% 🟢) 4.297s (-0.6%) 1.693s 8 1.00x
▲ Vercel Next.js (Turbopack) 4.220s (+24.2% 🔺) 5.722s (+16.0% 🔺) 1.502s 6 1.62x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.194s (-49.4% 🟢) 2.007s (-33.3% 🟢) 0.812s 15 1.00x
🐘 Postgres Nitro 1.301s (-44.7% 🟢) 2.007s (-33.3% 🟢) 0.706s 15 1.09x
💻 Local Nitro 1.612s (-48.7% 🟢) 2.005s (-48.4% 🟢) 0.394s 15 1.35x
💻 Local Express 1.684s (-43.0% 🟢) 2.005s (-41.9% 🟢) 0.321s 15 1.41x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.658s (-9.7% 🟢) 5.710s (-3.6%) 2.052s 6 1.00x
▲ Vercel Next.js (Turbopack) 5.147s (-27.5% 🟢) 6.773s (-23.9% 🟢) 1.626s 5 1.41x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.294s (-62.9% 🟢) 2.007s (-50.0% 🟢) 0.713s 15 1.00x
🐘 Postgres Nitro 1.408s (-59.5% 🟢) 2.007s (-49.9% 🟢) 0.600s 15 1.09x
💻 Local Nitro 4.393s (-47.4% 🟢) 4.727s (-47.6% 🟢) 0.334s 7 3.39x
💻 Local Express 4.746s (-43.1% 🟢) 5.345s (-40.8% 🟢) 0.599s 6 3.67x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 5.961s (+69.1% 🔺) 8.137s (+47.0% 🔺) 2.176s 4 1.00x
▲ Vercel Next.js (Turbopack) 7.011s (-21.4% 🟢) 8.487s (-22.6% 🟢) 1.477s 4 1.18x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.134s (-9.8% 🟢) 2.007s (~) 0.873s 15 1.00x
🐘 Postgres Nitro 1.151s (-8.4% 🟢) 2.008s (~) 0.857s 15 1.01x
💻 Local Nitro 1.352s (-27.5% 🟢) 2.005s (-14.3% 🟢) 0.653s 15 1.19x
💻 Local Express 1.363s (-28.0% 🟢) 2.006s (-15.1% 🟢) 0.643s 15 1.20x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.500s (+1.7%) 4.146s (-0.6%) 1.646s 8 1.00x
▲ Vercel Next.js (Turbopack) 4.597s (+56.8% 🔺) 5.970s (+28.6% 🔺) 1.373s 6 1.84x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.202s (-48.7% 🟢) 2.007s (-33.3% 🟢) 0.805s 15 1.00x
🐘 Postgres Nitro 1.246s (-46.7% 🟢) 2.008s (-33.3% 🟢) 0.762s 15 1.04x
💻 Local Nitro 1.726s (-43.7% 🟢) 2.073s (-46.7% 🟢) 0.347s 15 1.44x
💻 Local Express 2.009s (-35.9% 🟢) 2.393s (-36.4% 🟢) 0.384s 13 1.67x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.624s (+12.1% 🔺) 5.224s (+2.9%) 1.599s 6 1.00x
▲ Vercel Next.js (Turbopack) 5.084s (+61.8% 🔺) 6.256s (+38.4% 🔺) 1.173s 5 1.40x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.291s (-63.1% 🟢) 2.007s (-50.0% 🟢) 0.716s 15 1.00x
🐘 Postgres Nitro 1.398s (-59.8% 🟢) 2.009s (-49.9% 🟢) 0.611s 15 1.08x
💻 Local Express 4.756s (-46.0% 🟢) 5.345s (-42.4% 🟢) 0.589s 6 3.68x
💻 Local Nitro 5.080s (-44.4% 🟢) 5.682s (-43.3% 🟢) 0.603s 6 3.94x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 5.187s (+1.8%) 6.944s (+1.9%) 1.757s 5 1.00x
▲ Vercel Next.js (Turbopack) 6.292s (-6.9% 🟢) 8.259s (-3.3%) 1.967s 4 1.21x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 0.418s (-50.2% 🟢) 1.006s (-1.7%) 0.588s 60 1.00x
🐘 Postgres Nitro 0.449s (-45.3% 🟢) 1.007s (~) 0.558s 60 1.07x
💻 Local Nitro 0.461s (-53.0% 🟢) 1.003s (-8.3% 🟢) 0.543s 60 1.10x
💻 Local Express 0.469s (-52.3% 🟢) 1.004s (-6.7% 🟢) 0.535s 60 1.12x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 5.518s (-75.0% 🟢) 7.212s (-70.0% 🟢) 1.695s 9 1.00x
▲ Vercel Next.js (Turbopack) 6.998s (-51.7% 🟢) 8.628s (-46.4% 🟢) 1.630s 8 1.27x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.047s (-47.0% 🟢) 1.481s (-34.4% 🟢) 0.434s 61 1.00x
🐘 Postgres Nitro 1.076s (-44.2% 🟢) 1.923s (-8.5% 🟢) 0.847s 47 1.03x
💻 Local Express 1.179s (-60.9% 🟢) 2.006s (-44.1% 🟢) 0.827s 45 1.13x
💻 Local Nitro 1.211s (-60.1% 🟢) 2.005s (-46.6% 🟢) 0.794s 45 1.16x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 13.849s (-64.9% 🟢) 15.837s (-61.7% 🟢) 1.989s 6 1.00x
▲ Vercel Next.js (Turbopack) 17.382s (-65.1% 🟢) 18.821s (-63.6% 🟢) 1.439s 5 1.26x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.923s (-51.8% 🟢) 2.248s (-48.5% 🟢) 0.325s 54 1.00x
🐘 Postgres Nitro 2.047s (-50.1% 🟢) 2.528s (-45.1% 🟢) 0.481s 48 1.06x
💻 Local Nitro 2.616s (-71.9% 🟢) 3.007s (-70.0% 🟢) 0.392s 40 1.36x
💻 Local Express 2.636s (-71.4% 🟢) 3.008s (-70.0% 🟢) 0.371s 40 1.37x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 41.382s (-57.3% 🟢) 43.519s (-55.8% 🟢) 2.138s 3 1.00x
▲ Vercel Next.js (Turbopack) 49.517s (-53.8% 🟢) 51.337s (-52.9% 🟢) 1.820s 3 1.20x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 0.164s (-41.8% 🟢) 1.005s (~) 0.841s 60 1.00x
🐘 Postgres Nitro 0.187s (-34.0% 🟢) 1.006s (~) 0.819s 60 1.14x
💻 Local Nitro 0.408s (-32.5% 🟢) 1.004s (-1.7%) 0.596s 60 2.48x
💻 Local Express 0.448s (-20.0% 🟢) 1.004s (~) 0.556s 60 2.73x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.795s (+68.3% 🔺) 4.472s (+33.5% 🔺) 1.677s 14 1.00x
▲ Vercel Next.js (Turbopack) 3.994s (+97.5% 🔺) 5.799s (+52.9% 🔺) 1.805s 11 1.43x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 0.278s (-45.4% 🟢) 1.005s (~) 0.727s 90 1.00x
🐘 Postgres Nitro 0.325s (-34.4% 🟢) 1.006s (~) 0.681s 90 1.17x
💻 Local Nitro 2.132s (-16.0% 🟢) 2.910s (-3.3%) 0.778s 31 7.66x
💻 Local Express 2.196s (-12.6% 🟢) 2.945s (-2.1%) 0.748s 31 7.89x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 8.553s (+141.9% 🔺) 10.171s (+95.9% 🔺) 1.618s 9 1.00x
▲ Vercel Nitro 8.824s (+173.5% 🔺) 10.618s (+120.2% 🔺) 1.795s 9 1.03x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 0.557s (-32.0% 🟢) 1.005s (-1.2%) 0.448s 120 1.00x
🐘 Postgres Nitro 0.651s (-17.6% 🟢) 1.007s (~) 0.356s 120 1.17x
💻 Local Nitro 9.273s (-17.1% 🟢) 9.870s (-15.4% 🟢) 0.597s 13 16.65x
💻 Local Express 9.901s (-11.5% 🟢) 10.526s (-11.8% 🟢) 0.626s 12 17.78x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 24.648s (+219.2% 🔺) 26.602s (+183.0% 🔺) 1.954s 5 1.00x
▲ Vercel Next.js (Turbopack) 29.193s (+182.7% 🔺) 30.998s (+152.3% 🔺) 1.805s 5 1.18x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 1.117s (+422.9% 🔺) 2.004s (+99.5% 🔺) 0.010s (-22.4% 🟢) 2.016s (+97.9% 🔺) 0.899s 10 1.00x
🐘 Postgres Express 1.132s (+451.9% 🔺) 2.000s (+100.3% 🔺) 0.001s (-25.0% 🟢) 2.009s (+98.6% 🔺) 0.877s 10 1.01x
💻 Local Express 1.133s (+469.3% 🔺) 2.005s (+99.6% 🔺) 0.010s (-14.0% 🟢) 2.018s (+98.2% 🔺) 0.884s 10 1.01x
🐘 Postgres Nitro 1.152s (+462.0% 🔺) 1.993s (+99.4% 🔺) 0.002s (~) 2.010s (+98.7% 🔺) 0.858s 10 1.03x
💻 Local Next.js (Turbopack) ⚠️ missing - - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - - -

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.311s (-39.7% 🟢) 3.409s (-35.4% 🟢) 2.188s (+194.9% 🔺) 6.056s (-6.6% 🟢) 3.745s 10 1.00x
▲ Vercel Next.js (Turbopack) 5.184s (-24.4% 🟢) 5.026s (-41.9% 🟢) 1.759s (+178.3% 🔺) 8.451s (-13.7% 🟢) 3.268s 10 2.24x
▲ Vercel Express ⚠️ missing - - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.482s (+135.3% 🔺) 2.005s (+99.2% 🔺) 0.003s (-17.3% 🟢) 2.022s (+97.7% 🔺) 0.540s 30 1.00x
💻 Local Nitro 1.498s (+78.7% 🔺) 2.009s (+98.5% 🔺) 0.010s (+4.6%) 2.021s (+81.1% 🔺) 0.522s 30 1.01x
🐘 Postgres Nitro 1.530s (+145.2% 🔺) 2.006s (+99.2% 🔺) 0.004s (-4.9%) 2.025s (+98.0% 🔺) 0.495s 30 1.03x
💻 Local Express 1.694s (+123.8% 🔺) 2.011s (+95.5% 🔺) 0.009s (-3.6%) 2.201s (+111.7% 🔺) 0.507s 28 1.14x
💻 Local Next.js (Turbopack) ⚠️ missing - - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - - -

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 5.725s (-80.6% 🟢) 7.006s (-77.3% 🟢) 0.309s (+176.0% 🔺) 7.868s (-75.2% 🟢) 2.143s 8 1.00x
▲ Vercel Next.js (Turbopack) 13.166s (-22.2% 🟢) 14.394s (-21.1% 🟢) 0.240s (+13.7% 🔺) 15.525s (-18.0% 🟢) 2.359s 4 2.30x
▲ Vercel Express ⚠️ missing - - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 0.619s (-35.6% 🟢) 1.029s (-19.5% 🟢) 0.000s (+98.3% 🔺) 1.045s (-20.0% 🟢) 0.426s 58 1.00x
🐘 Postgres Nitro 0.668s (-31.1% 🟢) 1.008s (-19.2% 🟢) 0.000s (-58.6% 🟢) 1.038s (-17.5% 🟢) 0.370s 58 1.08x
💻 Local Nitro 1.330s (+8.7% 🔺) 2.013s (~) 0.000s (+100.0% 🔺) 2.014s (~) 0.685s 30 2.15x
💻 Local Express 1.357s (+10.8% 🔺) 2.015s (~) 0.000s (~) 2.017s (~) 0.660s 30 2.19x
💻 Local Next.js (Turbopack) ⚠️ missing - - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - - -

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 4.009s (+31.4% 🔺) 5.406s (+23.1% 🔺) 0.000s (+18.2% 🔺) 5.845s (+21.5% 🔺) 1.835s 11 1.00x
▲ Vercel Next.js (Turbopack) 6.508s (-36.1% 🟢) 6.921s (-39.9% 🟢) 0.000s (+Infinity% 🔺) 8.398s (-30.3% 🟢) 1.890s 8 1.62x
▲ Vercel Express ⚠️ missing - - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

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.241s (-29.9% 🟢) 1.936s (-11.1% 🟢) 0.000s (+Infinity% 🔺) 1.968s (-10.5% 🟢) 0.726s 31 1.00x
🐘 Postgres Nitro 1.338s (-25.3% 🟢) 2.032s (-5.1% 🟢) 0.000s (+86.7% 🔺) 2.043s (-6.0% 🟢) 0.706s 30 1.08x
💻 Local Nitro 3.040s (-10.2% 🟢) 3.777s (-6.3% 🟢) 0.001s (+64.1% 🔺) 3.780s (-6.4% 🟢) 0.739s 16 2.45x
💻 Local Express 3.091s (-10.9% 🟢) 3.842s (-4.8%) 0.001s (-37.5% 🟢) 3.844s (-4.8%) 0.754s 16 2.49x
💻 Local Next.js (Turbopack) ⚠️ missing - - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - - -

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 5.704s (+39.3% 🔺) 7.133s (+32.7% 🔺) 0.000s (-54.2% 🟢) 7.647s (+32.0% 🔺) 1.943s 8 1.00x
▲ Vercel Next.js (Turbopack) 9.247s (+64.6% 🔺) 10.156s (+45.5% 🔺) 0.000s (-100.0% 🟢) 11.343s (+50.4% 🔺) 2.096s 6 1.62x
▲ Vercel Express ⚠️ missing - - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Nitro 15/21
🐘 Postgres Express 21/21
▲ Vercel Nitro 19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 27, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
❌ ▲ Vercel Production 1198 2 219 1419
✅ 💻 Local Development 1587 0 219 1806
✅ 📦 Local Production 1587 0 219 1806
✅ 🐘 Local Postgres 1587 0 219 1806
✅ 🪟 Windows 129 0 0 129
✅ 📋 Other 727 0 176 903
Total 6815 2 1052 7869

❌ Failed Tests

▲ Vercel Production (2 failed)

fastify (1 failed):

  • AbortController abortViaHookWorkflow: external hook triggers abort on in-flight step

sveltekit (1 failed):

  • AbortController abortDeterministicBranchFromStepWorkflow: branches stay consistent when abort comes from a step

Details by Category

❌ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 103 0 26
✅ example 103 0 26
✅ express 103 0 26
❌ fastify 102 1 26
✅ hono 103 0 26
✅ nextjs-turbopack 127 0 2
✅ nextjs-webpack 127 0 2
✅ nitro 103 0 26
✅ nuxt 103 0 26
❌ sveltekit 121 1 7
✅ vite 103 0 26
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 104 0 25
✅ express-stable 104 0 25
✅ fastify-stable 104 0 25
✅ hono-stable 104 0 25
✅ nextjs-turbopack-canary 110 0 19
✅ nextjs-turbopack-stable-lazy-discovery-disabled 129 0 0
✅ nextjs-turbopack-stable-lazy-discovery-enabled 129 0 0
✅ nextjs-webpack-canary 110 0 19
✅ nextjs-webpack-stable-lazy-discovery-disabled 129 0 0
✅ nextjs-webpack-stable-lazy-discovery-enabled 129 0 0
✅ nitro-stable 104 0 25
✅ nuxt-stable 104 0 25
✅ sveltekit-stable 123 0 6
✅ vite-stable 104 0 25
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 104 0 25
✅ express-stable 104 0 25
✅ fastify-stable 104 0 25
✅ hono-stable 104 0 25
✅ nextjs-turbopack-canary 110 0 19
✅ nextjs-turbopack-stable-lazy-discovery-disabled 129 0 0
✅ nextjs-turbopack-stable-lazy-discovery-enabled 129 0 0
✅ nextjs-webpack-canary 110 0 19
✅ nextjs-webpack-stable-lazy-discovery-disabled 129 0 0
✅ nextjs-webpack-stable-lazy-discovery-enabled 129 0 0
✅ nitro-stable 104 0 25
✅ nuxt-stable 104 0 25
✅ sveltekit-stable 123 0 6
✅ vite-stable 104 0 25
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 104 0 25
✅ express-stable 104 0 25
✅ fastify-stable 104 0 25
✅ hono-stable 104 0 25
✅ nextjs-turbopack-canary 110 0 19
✅ nextjs-turbopack-stable-lazy-discovery-disabled 129 0 0
✅ nextjs-turbopack-stable-lazy-discovery-enabled 129 0 0
✅ nextjs-webpack-canary 110 0 19
✅ nextjs-webpack-stable-lazy-discovery-disabled 129 0 0
✅ nextjs-webpack-stable-lazy-discovery-enabled 129 0 0
✅ nitro-stable 104 0 25
✅ nuxt-stable 104 0 25
✅ sveltekit-stable 123 0 6
✅ vite-stable 104 0 25
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 129 0 0
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 104 0 25
✅ e2e-local-dev-tanstack-start- 104 0 25
✅ e2e-local-postgres-nest-stable 104 0 25
✅ e2e-local-postgres-tanstack-start- 104 0 25
✅ e2e-local-prod-nest-stable 104 0 25
✅ e2e-local-prod-tanstack-start- 104 0 25
✅ e2e-vercel-prod-tanstack-start 103 0 26

📋 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.

@karthikscale3 karthikscale3 changed the base branch from main to karthik/shadcn-registry April 27, 2026 21:03
Base automatically changed from karthik/shadcn-registry to main April 28, 2026 23:52
@karthikscale3 karthikscale3 force-pushed the karthik/shadcn-registry-2 branch from 8ad4dc6 to 36b9eb0 Compare April 29, 2026 23:46
karthikscale3 and others added 2 commits May 1, 2026 15:09
…ll code

- Rename /registry → /patterns across all URLs, nav, and internal links
- Delete duplicate cookbook pages (all covered by patterns now) with redirects
- Add /r and /r/[name] API routes serving shadcn-compatible registry JSON
- Add installCode field to RegistrySnippet for richly-commented agent-friendly code
- Add installCode exports for all 19 workflow patterns with full adaptation guides
- Fix shadcnSlug values from @workflow-sdk/* to https://workflow-sdk.dev/r/* URLs
- Exclude /r paths from i18n middleware so API routes resolve correctly
- Add RegistryDetailToc, upgrading-workflows snippet, and logo components

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread docs/app/[lang]/patterns/[id]/page.tsx Outdated
@jegobet-bot jegobet-bot mentioned this pull request May 3, 2026
karthikscale3 and others added 20 commits May 3, 2026 09:45
Co-authored-by: Cursor <cursoragent@cursor.com>
…f fetching path URL

Co-authored-by: Cursor <cursoragent@cursor.com>
…cancellation.ts

Co-authored-by: Cursor <cursoragent@cursor.com>
- Add installCode to chat-sdk hook type snippet
- Fix sandbox pipeline caption (strip inline description from filename)
- Add installCode to sandbox pipeline snippet
- Fix distributed-abort-controller caption: lib/ \u2192 workflows/
- Fix resend caption: app/workflows/ \u2192 workflows/ (route filter was missing it)

Co-authored-by: Cursor <cursoragent@cursor.com>
….ts, agent-cancellation stop route)

Co-authored-by: Cursor <cursoragent@cursor.com>
- flight-agent.ts → durable-agent.ts
- approval-agent.ts → human-in-the-loop.ts
- durable-chat-session.ts → chat-sdk.ts
- support.ts → ai-sdk.ts
- upgrading-workflow.ts → upgrading-workflows.ts
- Fix all @/workflows/ import paths to @/app/workflows/
- Add DEPENDENCIES section to chat-sdk installCode comments

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…hook type file

Co-authored-by: Cursor <cursoragent@cursor.com>
… and components/patterns

Co-authored-by: Cursor <cursoragent@cursor.com>
…p brand SVGs

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
… snippet files

Co-authored-by: Cursor <cursoragent@cursor.com>
…er + request-reply)

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…ad constraint

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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