Vinext: A Clean Reimplementation of Next.js on Vite
Cloudflare has released Vinext, a new framework that reimplements the Next.js API surface on top of Vite rather than wrapping or adapting Next.js output. Unlike adapters like OpenNext that reverse-engineer Next.js builds, Vinext is a ground-up alternative implementation supporting routing, server rendering, React Server Components, server actions, caching, and middleware—all built as a Vite plugin.
The framework works as a drop-in replacement: replace next with vinext in your npm scripts and existing app/, pages/, and next.config.js files work unchanged. Three commands handle development, production builds, and deployment to Cloudflare Workers.
Performance Benchmarks
Using a 33-route App Router test application, Vinext demonstrates substantial performance gains:
Production Build Times:
- Next.js 16.1.6: 7.38s (baseline)
- Vinext with Rollup: 4.64s (1.6x faster)
- Vinext with Rolldown: 1.67s (4.4x faster)
Client Bundle Size (gzipped):
- Next.js 16.1.6: 168.9 KB (baseline)
- Vinext: 72.9 KB (57% smaller)
Cloudflare notes these are directional benchmarks from a single test fixture and should evolve as projects develop. Full methodology and historical results are published publicly.
Cloudflare Workers as First-Class Deployment Target
Vinext is purpose-built for Cloudflare Workers, offering seamless deployment with a single command: vinext deploy. Both App Router and Pages Router are supported with full client-side hydration, interactive components, and client-side navigation.
For caching, Vinext includes a Cloudflare KV cache handler providing Incremental Static Regeneration (ISR) out of the box. The caching layer is pluggable—developers can swap in R2, Cache API, or custom backends depending on their application needs.
Native Platform Integration
A key advantage over next dev is that development now runs on Cloudflare's workerd runtime, eliminating the need for workarounds like getPlatformProxy. This allows developers to test platform-specific APIs—Durable Objects, KV, AI bindings—directly during development without Node.js-specific limitations.
The project was built in one week by a single engineer with AI assistance, costing approximately $1,100 in tokens. Several examples are already running in production, including an App Router playground, Hacker News clone, and a demonstration of Cloudflare Agents running in a Next.js app.