What is Quality API?
Introduction to Quality API
Quality API is a powerful library for building type-safe, extensible Next.js APIs. It seamlessly integrates with popular TypeScript libraries like Zod and Next Auth, preserving full type safety across your entire application.
Set up once to establish a robust foundation, then build anything on top of it.
Small and lightweight
Quality API has just one dependency: Next.js.
Its sole purpose is to simplify the complexities of writing Next.js endpoints, letting developers focus more on their project - not the codebase.
Example of endpoint
import QualityApi from "@quality-api/core";
export const POST =
QualityApi.initBuilder()
.handle(request => {
return Response.json({ yourRequestBody: request.body });
});