All Projects → alii → nextkit

alii / nextkit

Licence: Apache-2.0 license
Zero dependency API Toolkit for Next.js. Generate type-safe, error handled Next.js API routes.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

nextkit - demo app

nextkit is a toolkit for Next.js apps that lets you generate type-safe, error handled Next.js API routes that conform to a standard response type.

example

My recommended pattern can be found in the example folder. This file exports a type that can be ambiently imported in the frontend to have a guaranteed type for the API (plus, you can wrap it with the type APIResponse<T> to have the actual json typed from the HTTP response).

docs

honestly the examples folder is good enough and it demonstrates all the features. i have no motivation to write docs yet 🚀🚀

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].