Settings

Theme

Ask HN: Preferred Next.js Alternatives?

4 points by blinkbat 2 months ago · 17 comments · 1 min read

Reader

detailed reasoning welcome!

trying to decide between React Router 7 (Remix), TanStack Router, Next.js, or something else.

textlanes33 2 months ago

Next.js comes with several built-in capabilities. For example, it supports prefetching, server-side caching, and even cache clustering if you need scalability.

It also has a significant market share right now.

Of course, React Router 7 (and Remix) can handle similar features. But adoption matters — a larger ecosystem usually means better job opportunities and stronger community support.

If you haven’t used any major framework yet, I’d recommend starting with Next.js. It’s a solid way to learn the modern React stack and understand how full-stack React apps are structured.

nicohayes 2 months ago

Next.js has definitely gotten heavier. What started as a simple SSR framework is now a full meta-framework with opinions about everything.

If you're looking for something lighter, give Astro a shot. The philosophy is refreshing - zero JS by default, only hydrate the interactive islands you actually need. Works great for content-heavy sites.

For full-stack apps with similar patterns to Next.js but less magic, Remix and SvelteKit are worth exploring too.

What's your main pain point with Next.js? Complexity, Vercel lock-in, build times, or something else?

journal 2 months ago

Does not using it count as alternative?

csomar 2 months ago

React Router 7 is all you need. You could also use Next.js @ 15.1 with strictly static generation and freeze at that version. Use next routing for statically generated pages and React Router for dynamic pages.

raooll 2 months ago

I would go with https://tanstack.com/ as that has components to replace almost all Next.js features.

  • simonhfrost 2 months ago

    I'm planning on using tanstack start in my next project. Seems to have had a lot of good press recently

tacone 2 months ago

Give Sveltekit (and Svelte) a shot. No webpack, no turbopack, and feels very very fast and ergonomic.

objcts 2 months ago

i've been having fun building with astro on cloudflare workers... i have a few apps that have API endpoints, content, and react/svelte components all glued together in one codebase. it's been relatively easy to add drizzle and cloudflare's D1 database to handle data stuff alongside everything else.

brazukadev 2 months ago

Just don't use it. NextJS is not needed, the concept of BFF is just marketing.

Use Astrojs if you need something.

lgl 2 months ago

Something else. I.e.: ditch React and go with Vue/Nuxt :-)

pickle-wizard 2 months ago

I've been using SvelteKit.I find it pretty easy to use.

johncoltrane 2 months ago

(detailed use case) => detailed reasoning

  • blinkbatOP 2 months ago

    just want something comparable to next (api layer, ssr ability, nice surface api), for a relatively simple case (oauth with ms, simple api to query other apis).

    I'm avoiding Next because deploying it on anything non-vercel sucks.

    • textlanes33 2 months ago

      Yeah, I feel the same. Deploying Next.js outside of Vercel always comes with a few extra headaches. It’s great on Vercel, but not as smooth elsewhere.

    • jryan49 2 months ago

      React Router?

muttantt 2 months ago

vue+quasar

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection