A simple NextJS API abstraction to enforce validation and conistent HTTP responses in REST API endpoints
- Out-of-the-box validation of both the request body and search params with Zod
- Type safe request body and search params
- Consistent HTTP 400 on validation errors, HTTP 500 on any other runtime error
- Same NextJS API behaviour that you already love