This site is built with TanStack Start and TanStack Router.
It’s deployed automagically with Netlify!
From your terminal:
pnpm install
pnpm dev
This starts your app in development mode, rebuilding assets on file changes.
The dev server uses the production database and real OAuth, so dev and production behave identically. To authenticate your local session, run:
pnpm auth:login
This opens tanstack.com in your browser. Sign in with GitHub or Google, and the resulting session token is saved to .env.local as DEV_SESSION_TOKEN. Restart the dev server and you will be signed in automatically.
To authenticate against a locally running server instead:
pnpm auth:login --url http://localhost:3000
[!NOTE]
The token is a real signed session cookie tied to your production account. It expires in 30 days. Re-runpnpm auth:loginto refresh it.
[!NOTE]
If you are using an AI agent (Claude, Cursor, etc.) to help develop, runpnpm auth:loginonce before starting your session so the agent can interact with authenticated features on your behalf.
The documentations for all TanStack projects except for React Charts are hosted on https://tanstack.com, powered by this TanStack Router app.
In production, the markdown doc pages are fetched from the GitHub repos of the projects, but in development they are read from the local file system.
Follow these steps if you want to edit the doc pages of a project (in these steps we’ll assume it’s TanStack/form) and preview them locally :
tanstack.mkdir tanstack
cd tanstack
git clone git@github.com:TanStack/tanstack.com.git
git clone git@github.com:TanStack/form.git
[!NOTE]
Yourtanstackdirectory should look like this:tanstack/ | +-- form/ | +-- tanstack.com/
[!WARNING]
Make sure the name of the directory in your local file system matches the name of the project’s repo. For example,tanstack/formmust be cloned intoform(this is the default) instead ofsome-other-name, because that way, the doc pages won’t be found.
tanstack/tanstack.com directory, install the dependencies and run the app in dev mode:cd tanstack.com
pnpm i
# The app will run on https://localhost:3000 by default
pnpm dev
tanstack/form/docs.[!NOTE]
The updated pages need to be manually reloaded in the browser.
[!WARNING]
You will need to update thedocs/config.jsonfile (in the project’s repo) if you add a new doc page!
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.