Skip to content

Commit 21d4f91

Browse files
Modernize README to be more aligned with other TanStack READMEs (#669)
* Modernize README to be more aligned with other tanstack READMEs * Improve header hierarchy --------- Co-authored-by: Sarah Gerrard <gerrardsarah@gmail.com>
1 parent 0929e73 commit 21d4f91

1 file changed

Lines changed: 52 additions & 58 deletions

File tree

README.md

Lines changed: 52 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
# Welcome to TanStack.com!
1+
<div align="center">
22

3-
This site is built with TanStack Start and TanStack Router.
3+
# TanStack.com
44

5-
- [TanStack Router Docs](https://tanstack.com/router)
5+
The home of the TanStack ecosystem. Built with [TanStack Router](https://tanstack.com/router) and deployed automagically with [Netlify](https://netlify.com/).
66

7-
It's deployed automagically with Netlify!
7+
<a href="https://twitter.com/tan_stack"><img src="https://img.shields.io/twitter/follow/tan_stack.svg?style=social" alt="Follow @TanStack"/></a>
88

9-
- [Netlify](https://netlify.com/)
9+
### [Become a Sponsor!](https://github.com/sponsors/tannerlinsley/)
10+
11+
</div>
1012

1113
## Development
1214

15+
### Quick Start
16+
1317
From your terminal:
1418

1519
```sh
@@ -19,76 +23,66 @@ pnpm dev
1923

2024
This starts your app in development mode, rebuilding assets on file changes.
2125

22-
## Authentication in Development
26+
### Local Setup
2327

24-
The dev server uses the production database and real OAuth, so dev and production behave identically. To authenticate your local session, run:
28+
The documentation for all TanStack projects (except `React Charts`) is hosted on [tanstack.com](https://tanstack.com). In production, doc pages are fetched from GitHub. In development, they're read from your local file system.
2529

26-
```sh
27-
pnpm auth:login
28-
```
30+
Pre-commit hooks run smoke tests against these docs, so you'll need sibling repos cloned for commits to pass.
2931

30-
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.
31-
32-
To authenticate against a locally running server instead:
32+
Create a `tanstack` parent directory and clone this repo alongside the projects:
3333

3434
```sh
35-
pnpm auth:login --url http://localhost:3000
35+
mkdir tanstack && cd tanstack
36+
git clone git@github.com:TanStack/tanstack.com.git
37+
git clone git@github.com:TanStack/query.git
38+
git clone git@github.com:TanStack/router.git
39+
git clone git@github.com:TanStack/table.git
3640
```
3741

38-
> [!NOTE]
39-
> The token is a real signed session cookie tied to your production account. It expires in 30 days. Re-run `pnpm auth:login` to refresh it.
40-
41-
> [!NOTE]
42-
> If you are using an AI agent (Claude, Cursor, etc.) to help develop, run `pnpm auth:login` once before starting your session so the agent can interact with authenticated features on your behalf.
43-
44-
## Editing and previewing the docs of TanStack projects locally
45-
46-
The documentations for all TanStack projects except for `React Charts` are hosted on [https://tanstack.com](https://tanstack.com), powered by this TanStack Router app.
47-
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.
48-
49-
Follow these steps if you want to edit the doc pages of a project (in these steps we'll assume it's [`TanStack/form`](https://github.com/tanstack/form)) and preview them locally :
50-
51-
1. Create a new directory called `tanstack`.
42+
Your directory structure should look like this:
5243

53-
```sh
54-
mkdir tanstack
44+
```
45+
tanstack/
46+
├── tanstack.com/
47+
├── query/
48+
├── router/
49+
└── table/
5550
```
5651

57-
2. Enter the directory and clone this repo and the repo of the project there.
52+
> [!WARNING]
53+
> Directory names must match repo names exactly (e.g., `query` not `tanstack-query`). The app finds docs by looking for sibling directories by name.
5854
59-
```sh
60-
cd tanstack
61-
git clone git@github.com:TanStack/tanstack.com.git
62-
git clone git@github.com:TanStack/form.git
63-
```
55+
### Editing Docs
56+
57+
To edit docs for a project, make changes in its `docs/` folder (e.g., `../form/docs/`) and visit http://localhost:3000/form/latest/docs/overview to preview.
6458

6559
> [!NOTE]
66-
> Your `tanstack` directory should look like this:
67-
>
68-
> ```
69-
> tanstack/
70-
> |
71-
> +-- form/
72-
> |
73-
> +-- tanstack.com/
74-
> ```
60+
> Updated pages need to be manually reloaded in the browser.
7561
7662
> [!WARNING]
77-
> Make sure the name of the directory in your local file system matches the name of the project's repo. For example, `tanstack/form` must be cloned into `form` (this is the default) instead of `some-other-name`, because that way, the doc pages won't be found.
63+
> Update the project's `docs/config.json` if you add a new doc page!
7864
79-
3. Enter the `tanstack/tanstack.com` directory, install the dependencies and run the app in dev mode:
65+
## Get Involved
8066

81-
```sh
82-
cd tanstack.com
83-
pnpm i
84-
# The app will run on https://localhost:3000 by default
85-
pnpm dev
86-
```
67+
- We welcome issues and pull requests!
68+
- Participate in [GitHub Discussions](https://github.com/TanStack/tanstack.com/discussions)
69+
- Chat with the community on [Discord](https://discord.com/invite/WrRKjPJ)
8770

88-
4. Now you can visit http://localhost:3000/form/latest/docs/overview in the browser and see the changes you make in `tanstack/form/docs`.
71+
## Explore the TanStack Ecosystem
8972

90-
> [!NOTE]
91-
> The updated pages need to be manually reloaded in the browser.
73+
- <a href="https://github.com/tanstack/config"><b>TanStack Config</b></a> – Tooling for JS/TS packages
74+
- <a href="https://github.com/tanstack/db"><b>TanStack DB</b></a> – Reactive sync client store
75+
- <a href="https://github.com/tanstack/devtools"><b>TanStack DevTools</b></a> – Unified devtools panel
76+
- <a href="https://github.com/tanstack/form"><b>TanStack Form</b></a> – Type‑safe form state
77+
- <a href="https://github.com/tanstack/pacer"><b>TanStack Pacer</b></a> – Debouncing, throttling, batching
78+
- <a href="https://github.com/tanstack/query"><b>TanStack Query</b></a> – Async state & caching
79+
- <a href="https://github.com/tanstack/ranger"><b>TanStack Ranger</b></a> – Range & slider primitives
80+
- <a href="https://github.com/tanstack/router"><b>TanStack Router</b></a> – Type‑safe routing, caching & URL state
81+
- <a href="https://github.com/tanstack/router"><b>TanStack Start</b></a> – Full‑stack SSR & streaming
82+
- <a href="https://github.com/tanstack/store"><b>TanStack Store</b></a> – Reactive data store
83+
- <a href="https://github.com/tanstack/table"><b>TanStack Table</b></a> – Headless datagrids
84+
- <a href="https://github.com/tanstack/virtual"><b>TanStack Virtual</b></a> – Virtualized rendering
9285

93-
> [!WARNING]
94-
> You will need to update the `docs/config.json` file (in the project's repo) if you add a new doc page!
86+
… and more at <a href="https://tanstack.com"><b>TanStack.com »</b></a>
87+
88+
<!-- Use the force, Luke -->

0 commit comments

Comments
 (0)