@thomas.f/prnext
v1.0.0
Published
Experimental Rust-powered runtime for Next.js apps, React and npm
Maintainers
Readme
A React framework with a Rust-powered runtime.
Install
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.
0.2.1-alpha refreshes the starter and developer tools with a movable console, a folding preview and PNG capture. Read the upgrade guide and check release availability before updating an application.
For a global CLI installation:
npm install -g @thomas.f/prnext
prnext --help
prnext --version
prnext login --server https://app.prnext.devUse prnext on Windows. The shorter Unix alias prn is a reserved Windows
device name, even with a .cmd or .ps1 extension. If PowerShell blocks scripts,
use prnext.cmd. See the Windows troubleshooting guide.
Create a project
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.
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. The Next.js validation matrix lists the scenarios compared against the upstream production server.
npx --no-install prnext build
npx --no-install prnext startAfter upgrading PRNext, rebuild your app and restart it.
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.
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.
