Skip to content
Architecture 2026-07-01 10 min

TanStack Start Architecture

Server/client boundaries, data fetching, caching and deployment.

By Mohammad Zayed

Overview

Load data in route loaders and server functions, keep interactivity in client components, and ship the minimum client JavaScript.

Structure

src
src/routes/
  __root.tsx
  index.tsx
  dashboard.tsx
src/server/session.ts
components/ui/
lib/{db,auth}.ts

Data fetching

routes/dashboard.tsx
export const Route = createFileRoute("/dashboard")({
  loader: () => db.session.findMany({ take: 20 }),
  component: () => <Table data={Route.useLoaderData()} />,
});

Deploy

Deploy to a platform with regional functions; keep marketing routes static and dynamic routes isolated.

Frequently asked questions

Is this the only way to build it?
No. These are reference patterns we reuse. Adapt the boundaries to your constraints, team and compliance needs.
Should I copy this exactly?
Use it as a starting point. Validate each decision against your traffic, data sensitivity and team size.
Can NorthFlow implement this?
Yes. Share a project brief and we'll tailor the architecture to your product.

Continue reading

Want this architecture for your product?

Share one workflow and the outcome you want. We'll review your brief and suggest an appropriate next step; scope and deliverables are agreed before work begins.

Founder-led delivery · Existing systems first · Available internationally