Vercel

Vercel Workflow Development Kit Expands to Eight Frameworks via Universal Integration Pattern


Executive Summary

The Workflow Development Kit (WDK) has significantly expanded its framework support, growing from two to eight integrations, including SvelteKit, Astro, Express, and Hono. This expansion is enabled by a universal, two-phase integration pattern that generates workflow handlers at build-time and exposes them as HTTP endpoints at runtime. The update reinforces the company's "Open SDK Strategy," aiming to make durable, persistent workflows accessible to developers within their preferred framework, eliminating the need to switch technology stacks.

Key Takeaways

* Expanded Framework Support: WDK now supports eight frameworks, adding SvelteKit, Astro, Express, Hono, and others to its initial support for Next.js and Nitro.

* Core Integration Pattern: All integrations follow a two-phase pattern:

* Build-time: An SWC compiler plugin compiles workflow and step functions into executable handler files.

* Runtime: The framework's server automatically discovers and exposes these handlers as HTTP endpoints.

* Compiler-Driven Architecture: The WDK compiler transforms code into three different outputs (client, step, workflow) from a single source file, automating the creation of client-side calls and server-side handlers.

* Two Integration Approaches: The pattern adapts to different framework types:

* File-based routing frameworks (e.g., SvelteKit): WDK generates handler files in specific directories that are automatically routed by the framework.

* HTTP server frameworks (e.g., Express): WDK uses the Nitro server toolkit to bundle workflows and mount them as virtual handlers.

* Developer Experience: The system is designed for ease of use, often requiring a single line of code to set up, and includes Hot Module Replacement (HMR) for instant feedback during development.

Strategic Importance

This expansion positions WDK as a framework-agnostic tool, drastically increasing its addressable market by removing adoption barriers. By allowing developers to add durability to their existing stacks, the company aims to make its technology a fundamental building block across the web development ecosystem.

Original article