super fast dev100% compatible with Next.js App Routerinstant production builds

pnext

A fast little framework for server-first React apps, fully compatible with Next.js.

Getting startedPerformance benchmarks

The numbers, not the adjectives

Incremental by design: you can start with no JavaScript at all and pay only for the features you add, including React and Next.js compatibility.

0 KBJavaScript shipped on server-rendered pages
~1 KB gzipadds client-side navigation and prefetching
7.5 KBwhole framework, hydrating on Preact
12.5 KBwith full React compatibility included
10-12xfaster first page render than Next.js in dev
3.5-4xless memory used in dev than Next.js
7-9xfaster production builds than Next.js
4,300+assertions passing from Next.js's own App Router test suite

Start in one line

Create an app, or point pnext at one you already have.

# new app
$ bunx @wular/pnext@latest create my-app
# or migrate an existing Next.js app in place
$ bunx @wular/pnext@latest migrate

Migrate rewrites your scripts and config, scans your source, and reports anything worth a look. It never edits your code. Full walkthrough in Getting Started.

Climb the compat ladder

Start wherever your app already is. Move up only when it suits you.

core pnext

Pure Preact. The smallest, fastest rung.

↑
compat.react

Runs React components and libraries as-is.

↑
compat.next

Runs a whole Next.js App Router app, unchanged.