Companion demo for the guide End-to-end type safety for your serverless APIs.
Define your API contract once with Zod, serve it from serverless functions, and generate a typed client for the frontend.
src/— Zod schemas and OpenAPI document (zod-openapi)api/— Vercel serverless handlers (hello-world,openapi.json)client/— Vite frontend with types generated viaopenapi-typescriptand a fetch client viaopenapi-fetch