top | item 45672641

Ask HN: Preferred Next.js Alternatives?

4 points| blinkbat | 4 months ago

detailed reasoning welcome!

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

16 comments

order

textlanes33|4 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|4 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|4 months ago

Does not using it count as alternative?

csomar|4 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|4 months ago

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

simonhfrost|4 months ago

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

tacone|4 months ago

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

objcts|4 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|4 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|4 months ago

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

pickle-wizard|4 months ago

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

johncoltrane|4 months ago

(detailed use case) => detailed reasoning

blinkbat|4 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.