A React framework with a Rust-powered runtime.
Run in your application directory:
npm i @thomas.f/prnextNode.js 22.23.4+, 24.22.1+ or 26.12.1+. Windows, macOS and Linux (glibc), x64 and ARM64. No Rust installation needed.
Experimental alpha. Next.js compatibility is partial.
The create command requires PRNext 0.1.18-alpha or later.
npx @thomas.f/prnext create my-app
cd my-app
npm run devTypeScript by default. Add --js for JavaScript.
Use an existing Next.js app
Preview changes with npx --no-install prnext migrate --dry-run. Review the output, then run:
npx --no-install prnext migrate
npx --no-install prnext check
npx --no-install prnext devRead the compatibility guide before migrating.
Build for production
npx --no-install prnext build
npx --no-install prnext startAfter upgrading PRNext, rebuild your app and restart it.
Use with AI assistants
Read the guides included with your installed version:
npx --no-install prnext docs --aiRun npx --no-install prnext docs --ai --init to add a guide reference to your project's AGENTS.md.
Develop from this repository
npm ci
npm run build:native
npm run dev -- examples/appSource builds require Rust 1.98 and native build tools: Visual Studio C++ tools and a Windows SDK on Windows, Xcode command line tools on macOS, or a C/C++ toolchain and pkg-config on Linux. Install NASM on macOS, Linux and Windows x64.
For a larger integration example, see the SaaS reference: Better Auth, PostgreSQL/Drizzle, French/English routing and a portable standalone build. It has its own dependency lockfile and database setup.