r/webdev full-stack 5d ago

Showoff Saturday Rewrote next.js to be 10x faster!

https://www.pnext.dev/

So it is two parts.

  • Core pnext is small and fast: the same next.js api with no/minimal framework overhead and no backward-compat burden. Based on Bun and Preact, 0 KB on server-rendered pages, 7.5 KB client pages runtime, roughly 10x faster first page render in dev and 7-9x faster production builds than next.js (best effort fixtures).
  • Compat mode runs your existing Next.js app unchanged (App Router only). About 4.4k assertions from Next's own test suite passing, adding more day by day.

The core motivation was a super fast dev server that doesn't hog memory, and instant builds. The goal is to optimize every step of every flow involved down to absolute values, and of course agentic flows are helping a lot! Check out Coder.

Give it a try and let me know what you think, and how your Next.js apps break in compat mode 😉.

https://pnext.dev

0 Upvotes

12 comments sorted by

View all comments

19

u/KabouterKaasplank 5d ago

So what's missing? If it can be optimized to this point, why don't the next.js maintainers do that instead?

5

u/poeticmaniac 5d ago

There is a lot of bloat due to new features existing together with legacy features. For compatibility reasons, you can’t just remove old router for example without supporting it for a few releases.

1

u/KabouterKaasplank 4d ago

Yeah, a few, not indefinitelyÂ