Cloudflare Open-Sourced Vinext: Next.js Rebuilt on Vite From Scratch
Watch on TikTok
Cloudflare released Vinext, an open-source Vite plugin that re-implements the Next.js API surface from the ground up. It lets you run existing Next.js applications on Vite instead of the Next.js compiler toolchain, and deploy directly to Cloudflare Workers with a single command.
What Vinext Does
Vinext is not a fork of Next.js. It is a clean-room re-implementation of the Next.js API surface built on top of Vite. That means routing, server rendering, React Server Components, and all the standard Next.js module imports work, but the underlying build tool is Vite instead of the Next.js compiler.

The project already had 1.3k stars and 25 forks shortly after release. Installation is straightforward: you can either use the agent skill (npx skills add cloudflare/vinext) or install manually with npm and replace next with vinext in your package.json scripts.

Why It Matters
Vite has become the default build tool for modern web frameworks because of its fast HMR, clean plugin API, native ESM support, and growing ecosystem. With React Server Components support now available in Vite, re-implementing the Next.js API surface on top of it became feasible.
The current deployment target is Cloudflare Workers, which means zero cold starts, global distribution by default, and an integrated platform (KV, R2, D1, AI). The vinext deploy command handles the full build-and-deploy pipeline. Support for other deployment targets (AWS, Node.js server, Docker container, static export) is listed as a future goal.

The project's design principles prioritize pragmatic compatibility over bug-for-bug parity with Next.js. It targets roughly 95% of real-world Next.js apps, focuses on incremental adoption, and only supports Next.js 16.x (no deprecated APIs from older versions).
Key Takeaways
- Vinext re-implements the Next.js API surface on Vite, not forked from Next.js source code
- Existing Next.js apps can run on Vite with minimal changes and deploy to Cloudflare Workers
- The project is experimental but already supports routing, SSR, and React Server Components
- Cloudflare Workers is the primary deployment target, with other platforms planned
Resources
- cloudflare/vinext on GitHub -- Vite plugin that re-implements the Next.js API surface
- How we rebuilt Next.js with AI in one week -- Cloudflare's announcement blog post
Published May 25, 2026. Writeup generated from a favorited TikTok.