[docs] add "Patterns" tab with installable Workflow patterns#1858
[docs] add "Patterns" tab with installable Workflow patterns#1858karthikscale3 wants to merge 25 commits intomainfrom
Conversation
|
📊 Benchmark Results
workflow with no steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) workflow with 1 step💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) workflow with 10 sequential steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) workflow with 25 sequential steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) workflow with 50 sequential steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Next.js (Turbopack) | Nitro Promise.all with 10 concurrent steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) Promise.all with 25 concurrent steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) Promise.all with 50 concurrent steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) Promise.race with 10 concurrent steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) Promise.race with 25 concurrent steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) Promise.race with 50 concurrent steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) workflow with 10 sequential data payload steps (10KB)💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) workflow with 25 sequential data payload steps (10KB)💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) workflow with 50 sequential data payload steps (10KB)💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) workflow with 10 concurrent data payload steps (10KB)💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) workflow with 25 concurrent data payload steps (10KB)💻 Local Development
▲ Production (Vercel)
🔍 Observability: Next.js (Turbopack) | Nitro workflow with 50 concurrent data payload steps (10KB)💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) Stream Benchmarks (includes TTFB metrics)workflow with stream💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) stream pipeline with 5 transform steps (1MB)💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) 10 parallel streams (1MB each)💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) fan-out fan-in 10 streams (1MB each)💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) SummaryFastest Framework by WorldWinner determined by most benchmark wins
Fastest World by FrameworkWinner determined by most benchmark wins
Column Definitions
Worlds:
❌ Some benchmark jobs failed:
Check the workflow run for details. |
🧪 E2E Test Results❌ Some tests failed Summary
❌ Failed Tests▲ Vercel Production (2 failed)fastify (1 failed):
sveltekit (1 failed):
Details by Category❌ ▲ Vercel Production
✅ 💻 Local Development
✅ 📦 Local Production
✅ 🐘 Local Postgres
✅ 🪟 Windows
✅ 📋 Other
❌ Some E2E test jobs failed:
Check the workflow run for details. |
8ad4dc6 to
36b9eb0
Compare
…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>
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>
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)/registryURL (permanent redirects in place)Cookbook consolidation
/cookbook/...→/patterns/...for every deleted pageshadcn-compatible registry API
GET /r— returnsregistry.jsonindex (all 19 patterns)GET /r/[name]— returnsregistry-item.jsonfor a single patternregistry:filetype so the shadcn CLI writes the inlinecontentfield directly totargetrather than fetching it as a URL/rpaths so JSON routes resolve correctlyInstallable workflow code
app/workflows/[pattern-id]-workflow.tspnpm dlx shadcn@latest add https://workflow-sdk.dev/r/[name]THE PATTERN,USEFUL WHEN,TO ADAPT,DEPENDENCIES,DOCS) via a separateinstallCodefield onRegistrySnippet— kept separate from the clean UI display code19 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,resendTest plan
pnpm dlx shadcn@latest add https://workflow-sdk.dev/r/durable-agentinstallsapp/workflows/durable-agent-workflow.tswith rich comments/rreturns validregistry.jsonwith all 19 patterns/r/[name]returns validregistry-item.jsonwithregistry:filetype and correctapp/workflows/target path/cookbook/...URLs redirect to/patterns/.../registry/...URLs redirect to/patterns/...