Skip to content

simple-frontend-dev/demo-serverless-openapi-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An end-to-end demo showing how to easily type your serverless endpoints

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors