๐ A powerful TypeScript-first API client generator for Next.js applications with full type safety and automatic route type generation.
- Setup Guide
- Core Concepts
- API Reference
- Examples
- Contributing Guidelines
In Next.js 13+ applications, while Server Actions provide type safety for mutations, data fetching is often better handled through API routes. Next-TS-API bridges the type safety gap by providing end-to-end type safety for your Next.js API routes, ensuring both your client-side API calls and server-side implementations are fully type-safe.
- ๐ Full Type Safety: Automatically generates TypeScript types for your API routes
- ๐ฏ Zero Configuration: Works out of the box with Next.js App Router
- ๐ Auto-completion: Get full IDE support for your API routes, methods, and payloads
- ๐ ๏ธ Type Inference: Automatically infers request/response types from your route handlers
npm install next-ts-api
MIT ยฉ Zahin Afsar