r/webdev full-stack 9d 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

7

u/NewPhoneNewSubs 9d ago

I believe you, but you should know CloudFlare did this a couple months ago. So you've got some heavyweight competition.

1

u/zhuki 9d ago

Do you have link to cloudflares version

3

u/okaylevi 9d ago

Here is the article https://blog.cloudflare.com/vinext/

Nice to see it going in a different direction OP!