Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 836 Bytes

File metadata and controls

16 lines (10 loc) · 836 Bytes

demo-serverless-openapi-types

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.

What's inside

  • src/ — Zod schemas and OpenAPI document (zod-openapi)
  • api/ — Vercel serverless handlers (hello-world, openapi.json)
  • client/ — Vite frontend with types generated via openapi-typescript and a fetch client via openapi-fetch

Live demo