# TanStack Start 1.0: What Stable Means and When to Choose It

> TanStack Start 1.0 is stable and needs Vite 8. See server functions, middleware, deployment options, the migration notes and how it compares with Next.js.

TanStack Start reached 1.0 in October 2026. For a framework that spent more than a year in beta and release-candidate status, that matters less as a feature announcement and more as a promise: the team now treats its public API as something you can build a product on.

This article explains what Start is, what changed at 1.0, how server functions and middleware work, and where it fits next to Next.js. I could not open the official announcement from the environment where this article was prepared. The release facts come from search coverage, the migration guide as it was summarised in search results, and the package metadata and bundled docs on npm. The code examples are adapted from those bundled docs and have **not** been run in a fresh 1.0 project. Check names and options against the [TanStack Start documentation](https://tanstack.com/start/latest) before you copy anything.


## Why this is trending now

Coverage reports that the TanStack team announced Start 1.0 as stable on 13 October 2026, and that the release candidate label was dropped. The npm registry agrees with the timing: `@tanstack/react-start` 1.169.0 was published on 12 October 2026 (UTC), and the package was still being updated as I wrote this, at 1.169.5.

I am deliberately not quoting adoption numbers. The figures I found were either ecosystem-wide or from before 1.0, and some company claims were repeated from the project's own statements. Treat popularity as a reason to look, not as proof that the framework fits your team.

## What TanStack Start is

TanStack Start is a full-stack React framework built on [TanStack Router](https://tanstack.com/router) and Vite. It adds server-side rendering, streaming, server functions and server routes on top of a router that is known for fully inferred types: route params, search params and loader data are typed without you writing the annotations.

The key difference from the Next.js App Router is the default execution model.

- In Next.js, a component is a Server Component unless you opt out with `'use client'`.
- In Start, code is **isomorphic by default**. Route loaders run on the server during the first render and in the browser during client navigation. Anything that must stay on the server goes into `createServerFn`.

That is a simpler mental model for many teams, and it moves one responsibility onto you: a loader is not a safe place for a database query or a secret.

## What changed at 1.0

From the package metadata and the migration notes reported in search results:

- **Vite 8 is required.** The published `@tanstack/react-start` package declares `vite >= 8.0.0` as a peer dependency, and Node.js 22.12 or newer. Third-party sources disagree here, with one listing a lower Vite baseline, so trust the package metadata and your install output.
- **`.inputValidator()` is removed in favour of `.validator()`** on server functions and middleware. The bundled docs in the npm package use `.validator()` throughout. If you wrote code against the release candidate, expect a deprecation warning or an error until you rename it.
- **`useSession` is removed.** The migration guide tells you to use a session library instead, and existing session cookies will not carry over, so users will be signed out.
- **The Nitro v2 plugin is removed.** If you deployed through `@tanstack/nitro-v2-vite-plugin`, switch to `nitro()` from `nitro/vite`.
- **Middleware errors reach the client with their message.** Errors thrown by request middleware during a server-function call are no longer always reported as a 500.

Also check the open issues before you upgrade a real project. At the time of writing there was a reported case of the Start dev server failing on Vite 8, with pinning an older Vite as the suggested workaround. Issues like that are normal in the first weeks after a major release, but they are a reason to upgrade on a branch.

## Setting up a project

The bundled docs describe this minimal setup:

```bash
npm i @tanstack/react-start @tanstack/react-router react react-dom
npm i -D vite @vitejs/plugin-react typescript @types/react @types/react-dom
```

```ts
// vite.config.ts
import { defineConfig } from 'vite';
import { tanstackStart } from '@tanstack/react-start/plugin/vite';
import viteReact from '@vitejs/plugin-react';

export default defineConfig({
  plugins: [
    tanstackStart(), // must come before the React plugin
    viteReact(),
  ],
});
```

The scripts are `vite dev`, `vite build` and, for a Node deployment, `node .output/server/index.mjs`. Routes live in `src/routes`, the root route is `src/routes/__root.tsx`, and `src/router.tsx` exports a `getRouter()` factory. The root route renders `<HeadContent />` in `<head>` and `<Scripts />` at the end of `<body>`. If you forget `<Scripts />`, the page renders but never hydrates, which is an easy mistake to lose an hour to.

## Server functions

A server function is a type-safe RPC. It runs only on the server, and you can call it from a loader, a component, or another server function.

```tsx
// src/routes/issues.tsx
import { createFileRoute, useRouter } from '@tanstack/react-router';
import { createServerFn, useServerFn } from '@tanstack/react-start';
import { z } from 'zod';
import { db } from '../server/db';

const listIssues = createServerFn({ method: 'GET' }).handler(async () => {
  return db.issues.findMany();
});

const createIssue = createServerFn({ method: 'POST' })
  .validator(z.object({ title: z.string().trim().min(1).max(200) }))
  .handler(async ({ data }) => {
    return db.issues.create({ data });
  });

export const Route = createFileRoute('/issues')({
  loader: () => listIssues(),
  component: IssuesPage,
});

function IssuesPage() {
  const issues = Route.useLoaderData();
  const router = useRouter();
  const createIssueFn = useServerFn(createIssue);

  async function add(title: string) {
    await createIssueFn({ data: { title } });
    await router.invalidate({ sync: true });
  }

  // render the list and call add() from a form
}
```

`db` and `../server/db` stand in for your own data layer, and `zod` is an extra dependency. The parts to notice:

1. **`.validator()` checks input at runtime.** Types alone do not protect an HTTP endpoint, because a caller can send anything. Validate with a schema library or a hand-written function.
2. **The loader calls the server function directly.** During SSR it runs in-process. On client navigation it becomes a network request. Your code is the same in both cases.
3. **A write is followed by `router.invalidate()`.** Without it, the loader keeps showing the cached result and the list looks stale until a reload.

One point from the bundled docs deserves repeating: a server function is an API endpoint. It can be called without ever rendering your page, so a check in a route's `beforeLoad` is navigation UX, not a security boundary. Enforce authorization inside the handler or in middleware.

## Middleware

Start has two kinds of middleware. Request middleware runs on every server request, including SSR, server routes and server functions. Function middleware applies to server functions and can also run code on the client around the RPC call.

```ts
// src/server/auth.ts
import { createMiddleware } from '@tanstack/react-start';
import { getSession } from './session'; // your own session helper

export const authMiddleware = createMiddleware({ type: 'function' }).server(
  async ({ next }) => {
    const session = await getSession();
    if (!session) throw new Error('Unauthorized');
    return next({ context: { session } });
  },
);
```

```ts
import { createServerFn } from '@tanstack/react-start';
import { authMiddleware } from '../server/auth';

export const getMyProfile = createServerFn()
  .middleware([authMiddleware])
  .handler(async ({ context }) => {
    return { userId: context.session.userId };
  });
```

The `context` is typed from the middleware, so `context.session` is known inside the handler. TypeScript also enforces the method order on the builder: `middleware()`, then `validator()`, then `client()`, then `server()`.

The docs warn about one trap. Values a client sends through `sendContext` are input. Checking that an ID is a well-formed UUID does not mean the user may access it, so re-check access against the session before you use it in a query.

Global middleware is registered once in `src/start.ts` with `createStart`, for example to log every request.

## Server routes for HTTP endpoints

If something outside your app needs an HTTP contract, such as a webhook or a public API, use a server route. It is the `server` property on a file route:

```ts
// src/routes/api/health.ts
import { createFileRoute } from '@tanstack/react-router';

export const Route = createFileRoute('/api/health')({
  server: {
    handlers: {
      GET: async () => Response.json({ ok: true }),
    },
  },
});
```

For data used only by your own pages, prefer a server function. A loader that calls `fetch('/api/...')` on itself during SSR depends on URL resolution, which is fragile. If both a page and an endpoint need the same data, put the logic in a server-only module and call it from both.

## Deploying

Start builds with Vite and can target several hosts. According to the bundled docs:

- **Cloudflare Workers** uses `@cloudflare/vite-plugin` with Wrangler, and sets `main` to `@tanstack/react-start/server-entry`. Worker environment variables arrive per request, so reading `process.env.X` at module scope can give you `undefined`. Read it inside a handler, or use the `cloudflare:workers` env binding.
- **Netlify** has a dedicated Vite plugin.
- **Node.js, Docker, Vercel and Railway** go through Nitro, using `nitro()` from `nitro/vite`.

Rendering is configurable per route. Selective SSR lets a route opt out of server rendering, and static prerendering is configured in the Vite plugin options. Since the framework is not tied to one platform, hosting choice stays a business decision, not a framework constraint.

## TanStack Start or Next.js?

Neither is the right answer for every team. The trade-offs I would weigh:

| Question | TanStack Start | Next.js |
| --- | --- | --- |
| Default execution model | Isomorphic loaders, server code in `createServerFn` | Server Components by default |
| Type safety for routes and search params | Inferred end to end by the router | Typed routes are available but less central |
| Caching | You choose and control it, mostly through the router and your data layer | A built-in caching model, see [Next.js 16.4 Cache Components](/blog/nextjs-16-4-cache-components/) |
| Tooling | Vite | Turbopack |
| Hosting | Several first-class targets | Best-supported on its own platform, runs elsewhere with more work |
| Ecosystem and hiring | Smaller, newer | Larger, with more examples and more engineers who know it |

If your team already uses TanStack Query and Router and likes explicit data flow, Start is a natural step. If you depend on the largest ecosystem, on React Server Components as a core part of your design, or on a platform that has first-class Next.js support, staying put is reasonable. The package also ships React Server Components support under its own entry point, which I have not evaluated here.

## Advantages and limitations

**Advantages**

- Fully inferred types across routes, params, search params, loaders and server functions.
- A simple model: the server is where you call `createServerFn`, and everything else is isomorphic.
- Vite-based tooling and several deployment targets.
- A 1.0 label with an API stability commitment from the maintainers.

**Limitations**

- It is new. Expect gaps in third-party guides, and expect the first weeks after 1.0 to include bugs, such as the Vite 8 dev server issue mentioned above.
- It requires Vite 8, which may force other upgrades in a monorepo.
- Isomorphic loaders make it easy to leak server-only code if you do not keep to the convention.
- Migrating from the release candidate or from Next.js is real work, not a find and replace.

## Best practices

- Put every database call, secret and private API call inside a server function or a `.server.ts` module.
- Validate every server function input with a schema, even if the type already says what it should be.
- Enforce authentication and authorization in middleware or the handler, and treat `beforeLoad` as UX only.
- After a mutation, invalidate the router so loaders re-read the data.
- Keep one source of business logic and expose it through whichever boundary you need.
- Test a production build, not only the dev server.

## Common mistakes

- **Querying the database inside a loader.** Loaders run on the client too, so this either fails or exposes code you meant to keep private.
- **Relying on `beforeLoad` for security.** A server function can be called directly.
- **Forgetting `<Scripts />`** in the root route, which leaves the app unhydrated.
- **Placing the React plugin before `tanstackStart()`.** The docs say Start must come first.
- **Carrying over Next.js habits** such as `'use server'` and `'use client'` directives. They are not part of the Start model.
- **Upgrading on the main branch.** Do it on a branch, with a preview deployment.

## Should you adopt it now?

For a new internal tool or a product where your team owns the data flow, a 1.0 release with a stability commitment is a reasonable moment to try Start, ideally on a small, well-bounded project first. For a large production Next.js application, the case for migrating is weaker. Moving frameworks costs more than most roadmaps assume, so wait for a concrete reason, such as hosting flexibility or a pain you can name.

If you want help choosing between React frameworks, or planning an upgrade, see my [React and Next.js development](/services/react-nextjs-development/) and [full-stack development](/services/full-stack-development/) services, or [tell me about your project](/contact/).

The rendering model is the part that surprises teams, and [Next.js 16.4 cache components](/blog/nextjs-16-4-cache-components/) covers the same trade-offs in a different framework. I build with these under [React and Next.js development](/services/react-nextjs-development/). The framework itself is documented at [tanstack.com/start](https://tanstack.com/start). If you are choosing between it and Next.js, [describe what you are building](/contact/).

## Frequently asked questions

### Is TanStack Start stable?

Per the coverage and package versions I found, it reached 1.0 in October 2026, and the maintainers describe it as production ready. Newer major releases still deserve testing on your own app.

### What does TanStack Start need to run?

The npm package declares Node.js 22.12 or newer and Vite 8 or newer, plus React.

### What is the difference between a server function and a server route?

A server function is a typed RPC for your own app, called from loaders and components. A server route is a raw HTTP endpoint, meant for callers outside your app.

### Does TanStack Start replace Next.js?

No. It is an alternative with a different execution model and a smaller ecosystem. The better choice depends on your team and hosting.

### Where do I run server-only code in TanStack Start?

In `createServerFn` handlers, middleware `.server()` callbacks, server routes, and `.server.ts` modules. Loaders run on both server and client.

## Conclusion

A 1.0 is a promise about the API, not about your migration. The framework is a reasonable choice if you want its data model; the cost is that you are betting on a younger ecosystem than Next.js.

## References and further reading

- [TanStack Start 1.0 announcement](https://tanstack.com/blog/tanstack-start-1-0) (not opened by me; verify details here)
- [TanStack Start documentation](https://tanstack.com/start/latest)
- [Migrate from the Release Candidate](https://tanstack.com/start/latest/docs/framework/react/migrate-from-release-candidate)
- [`@tanstack/react-start` on npm](https://www.npmjs.com/package/@tanstack/react-start)
- [TanStack Router documentation](https://tanstack.com/router)
- [Vite documentation](https://vite.dev)
- [What is TanStack Start?, Cloudflare Learning Center](https://www.cloudflare.com/learning/serverless/what-is-tanstack-start/)
- See also: [Next.js 16.4 Cache Components: What Changes and How to Adopt Them](/blog/nextjs-16-4-cache-components/)
- See also: [React 19.3: Stable View Transitions and Fragment Refs](/blog/react-19-3-view-transitions-fragment-refs/)

---

HTML version: https://fullstackweb.dev/blog/tanstack-start-1-0-stable-guide/
Maintained by Hendra Nicholas, Senior Full-Stack Software Engineer & AI Engineer, hello@fullstackweb.dev.
