Vite-based Next.js API reimplementation that deploys anywhere, including Cloudflare Workers, without the Next.js compiler.

CCM score
42 of 100
skills.sh installs
1.3K
GitHub stars
98
last updated
Jul 14, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Pages Router and App Router, targeting roughly 94% of the Next.js public API surface on Vite
  • Provides CLI commands dev, build, start, deploy, init, check, and lint for migration and deployment
  • Runs non-destructive migration via vinext init, which keeps Next.js working alongside vinext during the switch
  • Designed for teams moving existing Next.js apps to Cloudflare Workers or other hosts through Nitro presets

Install

$ npx -y skills add reason-machines/trending-skills --skill vinext-vite-nextjs -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

vinext — Next.js API on Vite, Deploy Anywhere

Skill by ara.so — Daily 2026 Skills collection.

vinext is a Vite plugin that reimplements the Next.js public API surface (routing, SSR, RSC, next/* imports, CLI) so existing Next.js apps run on Vite instead of the Next.js compiler. It targets ~94% API coverage, supports both Pages Router and App Router, and deploys natively to Cloudflare Workers with optional Nitro support for AWS, Netlify, Vercel, and more.

Installation

New project (migrate from Next.js)

# Automated one-command migration
npx vinext init

This will:

  1. Run compatibility check (vinext check)
  2. Install vite, @vitejs/plugin-react as devDependencies
  3. Install @vitejs/plugin-rsc, react-server-dom-webpack for App Router
  4. Add "type": "module" to package.json
  5. Rename CJS config files (e.g. postcss.config.js → postcss.config.cjs)
  6. Add dev:vinext and build:vinext scripts
  7. Generate a minimal vite.config.ts

Migration is non-destructive — Next.js still works alongside vinext.

Manual installation

npm install -D vinext vite @vitejs/plugin-react

Details

Repository
github.com/reason-machines/trending-skills
Categories
Frontend & UI Code, Backend & APIs, DevOps & Cloud
First seen
Apr 16, 2026

More from reason-machines/trending-skills

All 163

Similar to Vinext Vite Nextjs

More Frontend & UI Code