Next REST Framework

JSON →
library 6.1.1 ·javascript
verified May 27, 2026

Next REST Framework (NRF) is an open-source, opinionated, and lightweight set of tools designed for building type-safe, self-documenting APIs within Next.js applications. Currently at version 6.1.1, it receives active maintenance, with frequent patch and minor releases addressing fixes, security updates, and compatibility with the latest Next.js and ecosystem libraries like Zod v4. A key differentiator is its automatic generation of OpenAPI specification-compliant documents and interactive API documentation (using Redoc/SwaggerUI), leveraging TypeScript and object schemas (e.g., Zod) to ensure robust type-safety across API definitions. NRF supports various API patterns, including REST, Form, and RPC endpoints, for both the App Router and Pages Router paradigms in Next.js, and integrates with Next.js Middleware and Edge runtime, making it a flexible choice for modern Next.js API development.

total hits 14
actors 7 distinct systems
last hit 6d ago AhrefsBot
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France · 🇺🇦 Ukraine