
Introducing Vovk.ts — A Back-End Framework Native to Next.js
After nearly three years of development, I'm releasing Vovk.ts — a back-end meta-framework built natively on top of Next.js App Router. It turns Route Handlers into a structured API layer with controllers, services, and procedures, and automatically generates type-safe RPC clients, OpenAPI specs, and AI tool definitions from your code. If you've ever wanted the structured back-end experience of NestJS but without leaving the Next.js deployment model, this is what I've been building. The idea in 30 seconds Define a controller with validation in-place: @ prefix ( " users " ) export default class UserController { @ get ( ' {id} ' ) static getUser = procedure ({ params : z . object ({ id : z . string (). uuid () }), output : z . object ({ id : z . string (), name : z . string () }), }). handle ( async ( req , { id }) => { return UserService . getUser ( id ); }); } The CLI generates a type-safe client that mirrors the controller: import { UserRPC } from ' vovk-client ' ; const user = await
Continue reading on Dev.to Webdev
Opens in a new tab



