Skip to main content

Announcing Next REST Framework

· One min read
Markus Blomqvist

Although Next.js has been a valid option for full-stack applications for a while now, a lot of developers have limited the use of it only for the frontend parts of their applications. The Next.js API Routes however, offer a great way to build a backend for your dynamic applications.

The Next.js ecosystem has been evolving rapidly in the past few years and we've seen great server-side frameworks, like tRPC, emerging. Similar choices for REST APIs have been lacking and personally I've been reinventing the wheel over and over again on every Next.js backend I've been building during the past few years. The learnings from repeating the same things from project to project led to developing Next REST Framework, which is an open-source, lightweight, easy-to-use set of tools to build type-safe, self-documenting HTTP REST APIs with Next.js.

The first problem that Next REST Framework aims to solve lies in ensuring that your backend is type-safe, using TypeScript and object-schema validation with Zod. Secondly, Next REST Framework self-documents your API straight from your business logic similarly to other popular REST frameworks like Fast API and Django REST Framework and not from endless lines of open API JSDoc annotations etc.