TanStack Start (React)
TanStack Start (React) scores 17 of 28 points. That is 10 of 14 on the 7 features that affect first paint (the moment the browser first draws content), and 7 of 14 on the 7 other features.
- Version checked
- @tanstack/react-start 1.169.1 (pinned; latest 1.169.7 as of 2026-11-24), Vite ^8.0.0
- Version notes
- ?inline CSS; Unpic; own catalog cache
- Performance guide
- Code Splitting | TanStack Router DocsNo dedicated performance page; closest official page (TanStack Start is built on TanStack Router).
- Issues
- github.com/TanStack/router/issues
Scorecard
All 14 features, in two groups. Each row shows TanStack Start (React)'s label, how that label compares across all 23 frameworks, and how to enable the feature. Feature names link to TanStack Start (React)'s entry on that feature's page.
TanStack Start (React)'s labels across 14 features
- 1st-party5
- Experimental3
- Third-party4
- Manual2
- of 14
How it compares
On 5 of 14 features, no framework has a higher-scoring label than TanStack Start (React). On the other 9, at least one does.
Tested in our port
The tanstack-books port passes 11/11 feature tests. Run on 2026-11-26 at MaxwellCohen/tanstack-books@aea03aa. How we test labels
First-paint levers
- 01Production CSS inliningExperimental1 pt
Experimental, like 2 of the other 22 frameworks. 8 frameworks score higher.
Show the how-toHide the how-to
server.build.inlineCss(experimental) inlines manifest CSS. This port does not use it; it imports the CSS with?inlineand passes it throughhead().import appCss from '../styles.css?inline' // ... export const Route = createRootRoute({ head: () => ({ styles: [{ children: appCss }], }), })From this repo's
tanstack-books/src/routes/__root.tsx(optimizedbranch). - 02Font optimizationThird-party1 pt
Third-party, like 18 of the other 22 frameworks. 4 frameworks score higher.
Show the how-toHide the how-to
Import
@fontsourcein your global CSS; there is no preload, so the font is discovered from the inlined CSS. No first-party font module is documented; the production checklist only says to check font loading.@import '@fontsource-variable/geist';From this repo's
tanstack-books/src/styles/global.css(optimizedbranch). - 03Image pipelineThird-party1 pt
Third-party, like 13 of the other 22 frameworks. 9 frameworks score higher.
Show the how-toHide the how-to
Use Unpic (
@unpic/react) URL transforms plus IPX/Nitro or the host CDN, chosen invite.config.ts. No first-party image pipeline is documented (production checklist only says to check large images and dimensions).import { Image as UnpicImage } from '@unpic/react' // ... <UnpicImage {...props} cdn={imageCdn} options={options} />From this repo's
tanstack-books/src/components/ui/image.tsx(optimizedbranch; options handling simplified).Art direction with <picture>
ManualServing a different crop or format per screen size. Not scored: the label shows how much the framework does for you.
Nothing to enable: no first-party
<picture>component is documented (production checklist). Third-party@unpic/reactexports a<Source>component (media,type) for use inside a hand-written<picture>; this port does not use it, and because the<picture>is still hand-written the cell stays 🔧, as for Next'sgetImageProps().Example
Wrap the port's Unpic
<Image>in a hand-written<picture>, and add<Source>from@unpic/reactfor each art-directed variant. Pass<Source>the same CDN settings the port'sImagewrapper uses.// src/features/book/components/book-cover.tsx import { Source } from '@unpic/react' import { Image } from '@/components/ui/image' import { imageCdn } from '@/lib/image-config' // … const small = src ?? EMPTY_IMAGE_URL const size = { layout: 'constrained', width: COVER_IMAGE_WIDTH, height: COVER_IMAGE_HEIGHT } as const return ( <picture> <Source {...size} media="(min-width: 768px)" src={getLargeBookImageUrl(small)} cdn={imageCdn} options={imageCdn === 'ipx' ? { ipx: { baseURL: '/_ipx' } } : undefined} /> <Image {...size} alt={title} src={small} sizes={sizes} priority={priority} className="absolute inset-0 size-full object-cover" objectFit="cover" unstyled /> </picture> ) - 04Data/HTML caching1st-party2 pts
1st-party, like 16 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Use static prerendering plus per-route
Cache-Control/stale-while-revalidateheaders, which the ISR guide describes; the CDN does the revalidating, so there is no framework data cache.export const Route = createFileRoute('/posts/$id')({ headers: () => ({ 'Cache-Control': 'public, s-maxage=3600, stale-while-revalidate=86400', }), })From the ISR guide (its Vercel example; the guide's generic example also sets
max-age=3600). This port usessrc/lib/catalog-cache.tsplus a request middleware that sets documentCache-Controlheaders insrc/start.ts:const result = await next() const headers = new Headers(result.response.headers) headers.set('Cache-Control', hostDocumentCacheControl())From this repo's
tanstack-books/src/start.ts(optimizedbranch; abridged). - 05Route prefetching1st-party2 pts
1st-party, like 18 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Router preloading is off by default;
defaultPreload: 'intent' | 'viewport' | 'render'turns it on. This port sets'intent'and wraps links withFastLink.const router = createTanStackRouter({ routeTree, defaultPreload: 'intent', })From this repo's
tanstack-books/src/router.tsx(optimizedbranch; other options omitted). - 06Streaming SSR1st-party2 pts
1st-party, like 17 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
The default server entry uses
defaultStreamHandler(server entry point), so streaming SSR is on without a flag. Return a promise from a loader without awaiting it and render it with<Await>.export const Route = createFileRoute('/posts/$postId')({ loader: async () => { const slowDataPromise = fetchSlowData() const fastData = await fetchFastData() return { fastData, deferredSlowData: slowDataPromise } }, }) // ... <Await promise={deferredSlowData} fallback={<div>Loading...</div>}> {(data) => <div>{data}</div>} </Await>Adapted from the TanStack Router deferred data loading guide (comments omitted).
- 07Early Hints / preload headersExperimental1 pt
Experimental, like 2 of the other 22 frameworks. 4 frameworks score higher.
Show the how-toHide the how-to
Early Hints are marked experimental. Start collects route assets and route
head().linksand callsonEarlyHintsin your server entry; your code sends the 103 with the runtime's own API, because "Start does not send Early Hints automatically".responseLinkHeaderputs the same links in aLinkheader for a CDN to convert.// src/server.ts import handler, { createServerEntry } from '@tanstack/react-start/server-entry' export default createServerEntry({ fetch(request) { return handler.fetch(request, { onEarlyHints: ({ phase, links }) => { if (phase !== 'static' || !links.length) return // Send `links` with your runtime-specific 103 API. }, }) }, })
Other features
- 08Islands / partial hydration / lazy slicesExperimental1 pt
Experimental, like 4 of the other 22 frameworks. 15 frameworks score higher.
Show the how-toHide the how-to
<Hydrate when={visible()}>keeps the server HTML, splits the child into its own chunk, and defers hydration (load,idle,visible,media,interaction,condition,never).import { Hydrate } from '@tanstack/react-start' import { visible } from '@tanstack/react-start/hydration' <Hydrate when={visible()}> <Reviews /> </Hydrate>From the deferred hydration guide.
<ClientOnly>is different: it skips SSR rather than deferring hydration. Experimental Server Components are also available viarsc: { enabled: true }and@vitejs/plugin-rsc. This port uses neither. - 09Per-route render modes1st-party2 pts
1st-party, like 18 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Per-route
ssr: true | false | 'data-only'with adefaultSsr, plus a global SPA mode. Prerendering is configured in the plugin, and ISR is a headers pattern rather than a render mode.export const startInstance = createStart(() => ({ defaultSsr: false, }))export const Route = createFileRoute('/posts/$postId')({ ssr: false, component: () => <div>This component is rendered on the client</div>, })From the selective SSR guide. The guide says
'data-only'keepsbeforeLoadandloaderon the server while skipping server rendering of the component. - 10Fine-grained client reactivity1st-party2 pts
1st-party, like 21 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
React; the first-party React Compiler is added as a Babel preset to the React Vite plugin. It is not enabled in this port (
vite.config.tscallsviteReact()with no compiler preset).Code example
Add the React Compiler preset through
@rolldown/plugin-babelnext toviteReact(). The compiler memoizes components and hooks at build time, so fewer components re-render when state changes.// vite.config.ts import { defineConfig } from 'vite' import { tanstackStart } from '@tanstack/react-start/plugin/vite' import viteReact, { reactCompilerPreset } from '@vitejs/plugin-react' import babel from '@rolldown/plugin-babel' export default defineConfig({ plugins: [ tanstackStart(), viteReact(), babel({ presets: [reactCompilerPreset()] }), ], }) - 11Built-in bundle analysisThird-party1 pt
Third-party, like 18 of the other 22 frameworks. 2 frameworks score higher.
Show the how-toHide the how-to
No first-party analyzer is documented (production checklist); use rollup-plugin-visualizer, not configured.
Code example
Add
rollup-plugin-visualizerto the plugin list.vite buildthen writes a treemap of the bundle tostats.html.// vite.config.ts import { defineConfig } from 'vite' import { tanstackStart } from '@tanstack/react-start/plugin/vite' import viteReact from '@vitejs/plugin-react' import { visualizer } from 'rollup-plugin-visualizer' export default defineConfig({ plugins: [ tanstackStart(), viteReact(), visualizer({ filename: 'stats.html', gzipSize: true }), ], })Source: rollup-plugin-visualizer: README
- 12Third-party script strategiesManual0 pts
Manual, like 16 of the other 22 frameworks. 6 frameworks score higher.
Show the how-toHide the how-to
Route
head().scripts,<Scripts/>, andScriptOnceemit or run tags but have no loading-strategy API (production checklist only says to review third-party scripts). You wire the tag by hand:head: () => ({ scripts: [{ children: themeScript }], }),From this repo's
tanstack-books/src/routes/__root.tsx(optimizedbranch; here an inline theme script, but the same field emits any script tag). - 13Portable multi-host deploymentThird-party1 pt
Third-party, like 5 of the other 22 frameworks. 8 frameworks score higher.
Show the how-toHide the how-to
Nitro presets (a separate project,
nitrojs/nitro) plus the host-maintained Cloudflare (@cloudflare/vite-plugin) and Netlify (@netlify/vite-plugin-tanstack-start) Vite plugins, which the TanStack hosting guide documents as its official setups; none of the three is published by TanStack. This port implements all three branches; it scores 🧪 by the same rule as React Router and Next.if (isCloudflare) { const { cloudflare } = await import('@cloudflare/vite-plugin') plugins.push(cloudflare({ viteEnvironment: { name: 'ssr' } })) } else if (isNetlify) { const netlify = (await import('@netlify/vite-plugin-tanstack-start')).default plugins.push(netlify()) } else { plugins.push(nitro()) }From this repo's
tanstack-books/vite.config.ts(optimizedbranch; NitrorollupConfigoption omitted). - 14Service worker / offline supportManual0 pts
Manual, like 16 of the other 22 frameworks. 6 frameworks score higher.
Show the how-toHide the how-to
No service worker or offline guide exists in the TanStack Start docs. Hand-write the worker and register it from the root route.
Code example
Put a hand-written worker in
public/and register it with an inline script from the root route'shead.// public/sw.js const CACHE = 'books-v1'; // change the name on each deploy self.addEventListener('activate', (event) => { event.waitUntil( caches.keys().then((keys) => Promise.all(keys.filter((k) => k !== CACHE).map((k) => caches.delete(k)))), ); }); self.addEventListener('fetch', (event) => { const { request } = event; if (request.method !== 'GET' || new URL(request.url).origin !== location.origin) return; // Network first, so pages stay current. The cached copy answers when offline. event.respondWith( fetch(request) .then((response) => { const copy = response.clone(); caches.open(CACHE).then((cache) => cache.put(request, copy)); return response; }) .catch(() => caches.match(request)), ); });// src/routes/__root.tsx const swScript = `if('serviceWorker' in navigator)addEventListener('load',function(){navigator.serviceWorker.register('/sw.js')});`; // … scripts: [{ children: themeScript }, { children: swScript }],Source: Using Service Workers (MDN) · TanStack Start document head
1st-party scores 2 points, Experimental and Third-party 1, Manual 0. How scoring works
The port
The books demo app built with this framework, and where each branch is deployed.
- App
- tanstack-books
- Repository
- github.com/MaxwellCohen/tanstack-books
Branch
main
vibe port
- Netlify
- tanstack-books.netlify.app
- Cloudflare
- tanstack-books.to-email-max.workers.dev
Branch
optimized
cache + fonts
Latest benchmark
Mobile Lighthouse lab results from PageSpeed Insights on : the median of 3 runs per host, averaged across the hosts listed. The benchmark page explains each metric and has every other framework.
| Build | Path | Perf | FCP | Raw FCP | LCP | TBT | CLS | SI | TTI | Doc | Hosts |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Book list / | |||||||||||
| baseline | / | 82 | (good)1.52 | 1.00 | (poor)4.66 | (good)4 | (good)0.000 | 2.23 | 4.66 | 144 | 3/3 Vercel, Netlify, Cloudflare |
| optimized | / | 94 | (good)0.93 | 0.26 | (needs improvement)2.75 | (good)6 | (good)0.001 | 1.21 | 3.25 | 117 | 3/3 Vercel, Netlify, Cloudflare |
| Book page /10145787 | |||||||||||
| baseline | /10145787 | 94 | (good)1.51 | 1.02 | (needs improvement)2.89 | (good)2 | (good)0.000 | 2.17 | 2.95 | 154 | 3/3 Vercel, Netlify, Cloudflare |
| optimized | /10145787 | 99 | (good)0.93 | 0.26 | (good)1.86 | (good)0 | (good)0.001 | 1.11 | 2.17 | 124 | 3/3 Vercel, Netlify, Cloudflare |
- Good
- Needs improvement
- Poor
FCP 1.8 s / 3 s · LCP 2.5 s / 4 s · TBT 200 ms / 600 ms · CLS 0.1 / 0.25
Per host
The medians above before averaging. Runs is how many measured runs went into each median. Host names link to the deployment.
| Build | Path | Host | Perf | FCP | Raw FCP | LCP | TBT | CLS | SI | TTI | Doc | Runs | Status |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TanStack Start (React) | |||||||||||||
| baseline | / | Vercel | 82 | (good)1.51 | 1.33 | (poor)4.66 | (good)0 | (good)0.000 | 2.48 | 4.66 | 107 | 3/3 | OK |
| baseline | / | Netlify | 82 | (good)1.51 | 1.38 | (poor)4.66 | (good)13 | (good)0.000 | 2.66 | 4.66 | 209 | 3/3 | OK |
| baseline | / | Cloudflare | 83 | (good)1.54 | 0.28 | (poor)4.66 | (good)0 | (good)0.000 | 1.54 | 4.66 | 116 | 3/3 | OK |
| baseline | /10145787 | Vercel | 93 | (good)1.51 | 1.33 | (needs improvement)3.02 | (good)1 | (good)0.000 | 2.47 | 3.02 | 153 | 3/3 | OK |
| baseline | /10145787 | Netlify | 94 | (good)1.51 | 1.34 | (needs improvement)3.03 | (good)0 | (good)0.000 | 2.49 | 3.03 | 158 | 3/3 | OK |
| baseline | /10145787 | Cloudflare | 96 | (good)1.51 | 0.39 | (needs improvement)2.62 | (good)5 | (good)0.000 | 1.54 | 2.79 | 152 | 3/3 | OK |
| optimized | / | Vercel | 99 | (good)0.93 | 0.22 | (good)1.95 | (good)0 | (good)0.000 | 0.93 | 2.73 | 97 | 3/3 | OK |
| optimized | / | Netlify | 97 | (good)0.94 | 0.31 | (needs improvement)2.55 | (good)17 | (good)0.003 | 1.64 | 3.27 | 145 | 3/3 | OK |
| optimized | / | Cloudflare | 87 | (good)0.93 | 0.25 | (needs improvement)3.75 | (good)0 | (good)0.000 | 1.07 | 3.75 | 108 | 3/3 | OK |
| optimized | /10145787 | Vercel | 100 | (good)0.92 | 0.21 | (good)1.05 | (good)0 | (good)0.000 | 0.92 | 1.97 | 106 | 3/3 | OK |
| optimized | /10145787 | Netlify | 98 | (good)0.93 | 0.31 | (good)2.42 | (good)0 | (good)0.003 | 1.50 | 2.42 | 142 | 3/3 | OK |
| optimized | /10145787 | Cloudflare | 99 | (good)0.92 | 0.25 | (good)2.12 | (good)0 | (good)0.000 | 0.92 | 2.12 | 125 | 3/3 | OK |