Wednesday, May 6, 2026
jynlab

notes on building, judging, and selling small software

Case Study · Build-to-Exit

Next.js vs Remix vs TanStack Start vs Astro: The Solo Builder's Framework Guide

The framework choice shapes every day of building. Next.js, Remix, TanStack Start, Astro, and SvelteKit compared for solo SaaS builders.


You picked your database. You picked your auth. Now you need to pick the thing that holds it all together. The framework choice is the one that shapes every day of building: how you route pages, how you load data, how you deploy, and how much your AI coding tool can actually help you.

The short version
  • Next.js: the default. Biggest ecosystem, most tutorials, best AI coding tool support. Vercel-optimized.
  • Remix / React Router v7: the web-standards bet. Great data loading, less magic. Cloudflare-friendly.
  • TanStack Start: the new challenger. Type-safe, file-based routing, framework-agnostic server functions. Early but promising.
  • Astro: the content-first pick. Static by default, islands architecture. Best for content-heavy sites with some interactivity.
  • SvelteKit: the DX darling. Less boilerplate, faster builds, smaller bundles. Smaller ecosystem.

Recommendation: Next.js if you want the safest bet and widest AI tool support. TanStack Start if you want type safety and Cloudflare deployment. Astro if content is the product.

The real question

Before picking a framework, answer one question: what kind of SaaS are you building?

Dashboard or app-heavy (lots of interactivity): Next.js, Remix, or TanStack Start. These are built for React-heavy apps where client state, server data loading, and authentication all need to work together cleanly.

Content-heavy with some app features (blog, docs, landing page plus a dashboard): Astro. It ships zero JavaScript by default and pulls in interactive islands only where you need them. The content gets indexed fast and the app parts still work.

The second question is deployment. Next.js is optimized for Vercel and some features (ISR, advanced image optimization) work best there. Remix, TanStack Start, and Astro are more hosting-agnostic and deploy cleanly to Cloudflare Workers without adapters fighting against the framework's design.

React Full-Stack

Next.js: the default choice

What it is: React meta-framework with file-based routing, server-side rendering, static generation, and API routes baked in. The App Router (introduced in v13) adds React Server Components and a new data fetching model.

Ecosystem: Over 500K weekly npm downloads. More tutorials, more Stack Overflow answers, more component library examples, and more AI coding tool context than any other framework. If Cursor or Lovable writes a file, there is a high probability it is written for Next.js.

Limitation: Vercel lock-in tendency. The App Router added significant complexity around server vs. client component boundaries. Frequent breaking changes between major versions mean you spend time on upgrades you did not plan for.

If this is your first SaaS and you are using AI tools to build it, Next.js is still the correct default. The ecosystem advantage compounds. Every edge case you hit has already been hit by 10,000 other developers.

React Full-Stack

Remix / React Router v7: the web-standards bet

What it is: Remix merged with React Router in v7. It uses web platform primitives (fetch, FormData, native browser behavior) rather than framework-specific abstractions. Nested routes and data loading are first-class. Forms work without JavaScript enabled.

Best at: Data loading patterns, nested routing, form handling without client-side state gymnastics. It runs anywhere a standard server runs, including Cloudflare Workers, with minimal configuration.

Limitation: Smaller ecosystem than Next.js. Fewer tutorials. The Shopify acquisition and subsequent shift in stewardship created uncertainty about the project's roadmap. AI coding tools have less Remix-specific training data, so generated code is less reliable.

React Full-Stack

TanStack Start: the new challenger

What it is: Full-stack React framework built by the TanStack team (creators of React Query, TanStack Router). File-based routing, type-safe server functions, built on Vinxi/Nitro. Reached 1.0 in 2025.

Best at: End-to-end type safety without codegen. The same TypeScript types flow from your database query through your server function to your component. Deployment to any hosting platform, with strong Cloudflare Workers support.

Limitation: Very new. The community is small. Component library examples and third-party integration guides are sparse compared to Next.js. AI coding tools have limited TanStack Start-specific templates, so you write more from scratch.

Content-First

Astro: zero JS by default

What it is: Static-first framework with islands architecture. Pages ship with no JavaScript unless you explicitly add an interactive island. Works with React, Vue, Svelte, and other component libraries in the same project. Content collections provide typed, file-based content management.

Best at: Marketing sites, blogs, documentation, landing pages, and any SaaS where the content surface is large and the app surface is focused. Excellent SEO out of the box because pages are static HTML.

Limitation: Not designed for highly interactive apps. The islands pattern requires a mental shift if you are used to React-first thinking. Building a real-time dashboard or a complex multi-step form requires more deliberate component boundaries than Next.js or Remix.

Svelte Full-Stack

SvelteKit: the DX darling

What it is: Full-stack framework built on Svelte 5 (runes API). Less boilerplate than React. Faster hot module replacement. Smaller production bundles by default because Svelte compiles to vanilla JavaScript rather than shipping a runtime.

Best at: Solo builders who want to move fast and prefer writing less code. Svelte's reactivity model is simpler than React's hooks model in most cases.

Limitation: The smallest ecosystem of the five. Fewer component libraries, fewer AI coding tool templates, and fewer third-party integration examples. If a library you need only has a React version, you are writing a wrapper or switching frameworks.

Comparison at a glance

FrameworkRenderingEcosystemHostingBest for
Next.jsSSR, SSG, RSCLargestVercel-first, others workApp-heavy SaaS, AI-assisted builds
Remix / RR v7SSRMediumHosting-agnosticData-heavy apps, web standards fans
TanStack StartSSRSmall but growingAny, Cloudflare-strongType-safe full-stack, edge deployment
AstroStatic + islandsMediumAny static hostContent + marketing sites
SvelteKitSSR, SSGSmallerAnyLow-boilerplate full-stack

What vibe coders should know

If you are using an AI coding tool to build your SaaS, the framework's AI tool support matters more than benchmark differences. Here is the practical breakdown:

If you use Lovable: it generates React. Next.js or TanStack Start are the cleanest targets. Lovable's output is React component trees, so you want a framework that treats React components as the primary abstraction.

If you use Cursor: all five frameworks work. But Next.js has the most context in Cursor's training data by a large margin. Code completions and multi-file edits are more accurate for Next.js than for TanStack Start or Remix.

If you use Bolt: it generates React or Svelte. Both Next.js and SvelteKit are valid targets depending on which component type Bolt outputs for your project.

The AI tool ecosystem leans heavily toward Next.js. This is a compounding advantage. Every template, every example, every generated snippet is slightly more likely to be correct when targeting Next.js. For solo builders moving fast, that friction difference adds up over weeks of building.

Decision tree

Is your SaaS primarily an interactive app (dashboard, tools, auth)?
  YES
  ├─ Do you want the widest AI tool support and largest ecosystem?
  │    YES → Next.js
  │    NO
  │    ├─ Do you want end-to-end type safety and Cloudflare deployment?
  │    │    YES → TanStack Start
  │    │    NO  → Remix / React Router v7
  NO (content-heavy: blog, docs, marketing + small app)
  ├─ Are you comfortable with React?
  │    YES → Astro (with React islands)
  │    NO  → Astro (with no framework, plain JS islands)
  Bonus: Low boilerplate and ecosystem size is not a concern?
       → SvelteKit

What I use

jynlab runs on TanStack Start deployed to Cloudflare Workers. The type-safe routing and server functions mean TypeScript catches mistakes before they reach production. Edge deployment keeps latency low globally without paying for a dedicated server.

The ecosystem is smaller than Next.js and I feel that when looking for third-party examples. The DX tradeoff is worth it for this project because type safety and Cloudflare deployment were non-negotiable requirements. If I were starting a new project today where AI-assisted speed was the top priority, I would start with Next.js and migrate later if Cloudflare deployment became critical.

FAQ

Is Next.js still the best React framework in 2026?

For ecosystem size and AI tool support, yes. For deployment flexibility and simplicity, Remix and TanStack Start are catching up. The honest answer is that Next.js is the safest default, not necessarily the best on every dimension.

Should I use the Next.js App Router or Pages Router?

App Router. Pages Router is in maintenance mode and will not receive new features. Expect a learning curve with React Server Components and the server/client component boundary. The mental model takes a few days to internalize, but it is where the ecosystem is heading.

Can I deploy Next.js without Vercel?

Yes. Cloudflare (with the official adapter), AWS, Railway, and self-hosted Node servers all work. Some features like ISR and advanced image optimization work best on Vercel's infrastructure. For most solo SaaS apps the gap is not significant in practice.

Is TanStack Start production-ready?

It reached 1.0 and is used in production by several projects, including jynlab. The core API is stable. The ecosystem is young, which means fewer drop-in examples and more reading source code. If you are comfortable with that tradeoff, it is production-ready.

Before you pick a framework

The framework is Step 5. Validation is Step 0. Make sure someone actually wants the thing you are about to build before committing to a stack.

Validate your idea free →

Get tool guides and teardowns in your inbox