Tanstack

The open-source application stack for the web.

Headless, type-safe, composable tools for building modern web applications that work naturally for developers and reliably for agents.
npx @tanstack/cli@latest create
Trusted by

TanStack Start

RC
Full-stack framework for React and Solid Full-document SSR, Streaming, Server Functions, bundling and more, powered by TanStack Router and Vite - Ready to deploy to your favorite hosting provider.
npx @tanstack/cli create
Documentation
export const Route = createFileRoute('/posts')({
  loader: () => getServerPosts(),
})

// In a component
function PostList() {
  const getPosts = useServerFn(getServerPosts)

  const { data } = useQuery({
    queryKey: ['posts'],
    queryFn: () => getPosts(),
  })
}

TanStack Router

V1
A powerful React router for client-side and full-stack react applications. Fully type-safe APIs, first-class search-params for managing state in the URL and seamless integration with the existing React ecosystem.
npx @tanstack/cli create --router-only
Documentation
export const Route = createFileRoute('/posts')({
  loader: () => getServerPosts(),
})

// In a component
function PostList() {
  const getPosts = useServerFn(getServerPosts)

  const { data } = useQuery({
    queryKey: ['posts'],
    queryFn: () => getPosts(),
  })
}

TanStack Query

V5
Powerful asynchronous state management, server-state utilities and data fetching. Fetch, cache, update, and wrangle all forms of async data in your TS/JS, React, Vue, Solid, Svelte, Angular & Lit applications all without touching any "global state"
npm i @tanstack/react-query
Documentation
export const Route = createFileRoute('/posts')({
  loader: () => getServerPosts(),
})

// In a component
function PostList() {
  const getPosts = useServerFn(getServerPosts)

  const { data } = useQuery({
    queryKey: ['posts'],
    queryFn: () => getPosts(),
  })
}

TanStack AI

Alpha
A powerful, open-source AI SDK with a unified interface across multiple providers. No vendor lock-in, no proprietary formats, just clean TypeScript and honest open source.
npm i @tanstack/react-query
Documentation
export const Route = createFileRoute('/posts')({
  loader: () => getServerPosts(),
})

// In a component
function PostList() {
  const getPosts = useServerFn(getServerPosts)

  const { data } = useQuery({
    queryKey: ['posts'],
    queryFn: () => getPosts(),
  })
}

TanStack Table

V8
Supercharge your tables or build a datagrid from scratch for TS/JS, React, Vue, Solid, Svelte, Qwik, Angular, and Lit while retaining 100% control over markup and styles.
npm install @tanstack/react-table
Documentation
export const Route = createFileRoute('/posts')({
  loader: () => getServerPosts(),
})

// In a component
function PostList() {
  const getPosts = useServerFn(getServerPosts)

  const { data } = useQuery({
    queryKey: ['posts'],
    queryFn: () => getPosts(),
  })
}

TanStack DB

Alpha

TanStack Store

Alpha

TanStack Hotkeys

Alpha

TanStack CLI

Alpha

TanStack Pacer

Beta

TanStack Intent

Alpha

TanStack Form

V1

TanStack Virtual

V3

TanStack Devtools

Alpha
Join the
Community
8,946,551,926
NPM Downloads
123,419
Stars on Github
3,224
Contributors on GitHub
Subscribe on Youtube
Join our Discord
Star on GitHub
Follow on X
Follow on BlueSky

TanStack Builder

Alpha
Describe what you’re building and get an AI recommended starting kit of libraries you likely are going to need.
Create a blank TanStack Start app with no extra integrations or feature scaffolding.
Migrate from Next.js
Blank starter
Blog
SaaS dashboard
TanStack libraries
Start
Router
Intent
CLI
Query
Table
Form
Store
Add
Integrations
Coderabbit
Sentry
Prisma
Clerk
Add
Toolchain
ESLint
pnpm