Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
10a5130
add start project command
enBonnet Dec 2, 2025
7f7370b
add readme to example authenticated-routes
enBonnet Dec 2, 2025
24608db
add readme to example start-bare
enBonnet Dec 2, 2025
37c99ea
add readme to example start-basic-authjs
enBonnet Dec 2, 2025
0cbc378
add readme to example start-large
enBonnet Dec 2, 2025
0ec57eb
add readme to example start-material-ui
enBonnet Dec 2, 2025
3a62377
add readme to example start-streaming-data-from-server-functions
enBonnet Dec 2, 2025
8673bc0
add readme to example start-supabase-basic
enBonnet Dec 2, 2025
858d14e
add readme to example basic
enBonnet Dec 2, 2025
8eb65c0
add readme to example basic-default-search-params
enBonnet Dec 2, 2025
f1d6797
add readme to example basic-devtools-panel
enBonnet Dec 2, 2025
aa66a0c
add readme to example basic-file-based
enBonnet Dec 2, 2025
0b7d36e
add readme to example basic-non-nested-devtools
enBonnet Dec 2, 2025
42aaf1c
add readme to example basic-react-query
enBonnet Dec 2, 2025
8d192df
add readme to example basic-react-query-file-based
enBonnet Dec 2, 2025
9369e59
add readme to example basic-ssr-file-based
enBonnet Dec 2, 2025
c3299d4
add readme to example basic-ssr-streaming-file-based
enBonnet Dec 2, 2025
d2d680e
add readme to example basic-virtual-file-based
enBonnet Dec 2, 2025
6876373
add readme to example basic-virtual-inside-file-based
enBonnet Dec 2, 2025
bf4e282
add readme to example deferred-data
enBonnet Dec 2, 2025
6fe4fd6
add readme to example kitchen-sink
enBonnet Dec 2, 2025
f0e3d28
add readme to example kitchen-sink-file-based
enBonnet Dec 2, 2025
61c24ff
add readme to example kitchen-sink-react-query
enBonnet Dec 2, 2025
5419e34
add readme to example kitchen-sink-react-query-file-based
enBonnet Dec 2, 2025
ff58547
add readme to example large-file-based
enBonnet Dec 2, 2025
54c39ea
add readme to example location-masking
enBonnet Dec 2, 2025
31fa352
add readme to example navigation-blocking
enBonnet Dec 2, 2025
9168776
add readme to example quickstart
enBonnet Dec 2, 2025
59c1951
add readme to example quickstart-esbuild-file-based
enBonnet Dec 2, 2025
115886e
add readme to example quickstart-file-based
enBonnet Dec 2, 2025
7287c6a
add readme to example quickstart-rspack-file-based
enBonnet Dec 2, 2025
9d30b20
add readme to example quickstart-webpack-file-based
enBonnet Dec 2, 2025
9b65df3
add readme to example scroll-restoration
enBonnet Dec 2, 2025
a9fea14
add readme to example search-validator-adapters
enBonnet Dec 2, 2025
b3aa439
add readme to example start-basic
enBonnet Dec 2, 2025
fa98094
add readme to example start-basic-auth
enBonnet Dec 2, 2025
e9b6c49
add readme to example start-basic-cloudflare
enBonnet Dec 2, 2025
a68e935
add readme to example start-basic-react-query
enBonnet Dec 2, 2025
bd2da79
add readme to example start-trellaux
enBonnet Dec 2, 2025
f436616
add readme to example view-transitions
enBonnet Dec 2, 2025
44c7a75
add readme to example with-framer-motion
enBonnet Dec 2, 2025
865b47b
add readme to example with-trpc
enBonnet Dec 2, 2025
02c3654
add readme to example with-trpc-react-query
enBonnet Dec 2, 2025
69b6425
add data to readme example authenticated-routes-firebase
enBonnet Dec 2, 2025
a80b572
edit start project section example start-basic-cloudflare
enBonnet Dec 2, 2025
4cfd929
update readme i18n-paraglide
enBonnet Dec 2, 2025
6deb471
update readme router-monorepo-react-query
enBonnet Dec 2, 2025
d6d2583
update readme router-monorepo-simple
enBonnet Dec 2, 2025
30fef63
update readme router-monorepo-simple-lazy
enBonnet Dec 2, 2025
a4cd3dd
update readme start-basic-rsc
enBonnet Dec 2, 2025
48f0f20
update readme start-basic-static
enBonnet Dec 2, 2025
2217bc8
update readme start-bun
enBonnet Dec 2, 2025
652ce76
update readme start-clerk-basic
enBonnet Dec 2, 2025
0650908
update readme start-convex-trellaux
enBonnet Dec 2, 2025
96e1e51
update readme start-counter
enBonnet Dec 2, 2025
797e415
update readme start-i18n-paraglide
enBonnet Dec 2, 2025
0bacba2
update readme start-tailwind-v4
enBonnet Dec 2, 2025
609b757
update readme start-workos
enBonnet Dec 2, 2025
717cb2f
ci: apply automated fixes
autofix-ci[bot] Dec 3, 2025
9b2406b
chore(examples): selectively apply suggestions from CodeRabbit
SeanCassiere Dec 5, 2025
4d650fa
Merge branch 'TanStack:main' into docs/add-details-to-start-basic-readme
enBonnet Dec 6, 2025
8b93320
address comments
enBonnet Dec 6, 2025
b83de48
clean up editing and preview section
enBonnet Dec 6, 2025
a456bb7
Apply suggestions from code review
SeanCassiere Dec 6, 2025
27ac8df
fix duplicated use
enBonnet Dec 6, 2025
e35ea17
ci: apply automated fixes
autofix-ci[bot] Dec 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 51 additions & 9 deletions examples/react/authenticated-routes-firebase/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
# Firebase Setup
# TanStack Router - Authenticated Routes with Firebase Example

An example demonstrating authentication with Firebase and protected routes.

- [TanStack Router Docs](https://tanstack.com/router)
- [Firebase Documentation](https://firebase.google.com/docs)

## Start a new project based on this example

To start a new project based on this example, run:

```sh
npx gitpick TanStack/router/tree/main/examples/react/authenticated-routes-firebase authenticated-routes-firebase
```

## Firebase Setup

1. Create a [Firebase project](https://console.firebase.google.com/)
1. By default, firebase will configure an accepted domain for localhost...update if necessary!
Expand All @@ -22,19 +37,46 @@

## Setup .env.local

Copy the .env.example provided and configure with your firebase credentials
Copy the .env.example provided and configure with your firebase credentials:

````VITE_FIREBASE_API_KEY=
```
VITE_FIREBASE_API_KEY=
VITE_FIREBASE_AUTH_DOMAIN=
VITE_FIREBASE_PROJECT_ID=
VITE_FIREBASE_STORAGE_BUCKET=
VITE_FIREBASE_MESSAGING_SENDER_ID=
VITE_FIREBASE_APP_ID=```
VITE_FIREBASE_APP_ID=
```

## Getting Started

Install dependencies:

```sh
pnpm install
```

Start the development server:

```sh
pnpm dev
```

## Build

Build for production:

```sh
pnpm build
```

## Run the app
## About This Example

To run this example:
This example demonstrates:

- `npm install` or `yarn`
- `npm start` or `yarn start`
````
- Firebase authentication integration
- Protected routes with Firebase Auth
- Route guards
- Login/logout with Firebase
- User session management
- Public vs private routes
48 changes: 44 additions & 4 deletions examples/react/authenticated-routes/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,46 @@
# Example
# TanStack Router - Authenticated Routes Example

To run this example:
An example demonstrating authentication and protected routes.

- `npm install` or `yarn`
- `npm start` or `yarn start`
- [TanStack Router Docs](https://tanstack.com/router)

## Start a new project based on this example

To start a new project based on this example, run:

```sh
npx gitpick TanStack/router/tree/main/examples/react/authenticated-routes authenticated-routes
```

## Getting Started

Install dependencies:

```sh
pnpm install
```

Start the development server:

```sh
pnpm dev
```

## Build

Build for production:

```sh
pnpm build
```

## About This Example

This example demonstrates:

- Authentication flow
- Protected routes
- Route guards
- Login/logout functionality
- Redirect after authentication
- Public vs private routes
46 changes: 42 additions & 4 deletions examples/react/basic-default-search-params/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,44 @@
# Example
# TanStack Router - Default Search Params Example

To run this example:
An example demonstrating default search parameters.

- `npm install` or `yarn`
- `npm start` or `yarn start`
- [TanStack Router Docs](https://tanstack.com/router)

## Start a new project based on this example

To start a new project based on this example, run:

```sh
npx gitpick TanStack/router/tree/main/examples/react/basic-default-search-params basic-default-search-params
```

## Getting Started

Install dependencies:

```sh
pnpm install
```

Start the development server:

```sh
pnpm dev
```

## Build

Build for production:

```sh
pnpm build
```

## About This Example

This example demonstrates:

- Default search parameter values
- Type-safe search params
- Search param validation
- URL state management
46 changes: 42 additions & 4 deletions examples/react/basic-devtools-panel/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,44 @@
# Example
# TanStack Router - DevTools Panel Example

To run this example:
An example demonstrating the TanStack Router DevTools panel.

- `npm install` or `yarn`
- `npm start` or `yarn start`
- [TanStack Router Docs](https://tanstack.com/router)

## Start a new project based on this example

To start a new project based on this example, run:

```sh
npx gitpick TanStack/router/tree/main/examples/react/basic-devtools-panel basic-devtools-panel
```

## Getting Started

Install dependencies:

```sh
pnpm install
```

Start the development server:

```sh
pnpm dev
```

## Build

Build for production:

```sh
pnpm build
```

## About This Example

This example demonstrates:

- TanStack Router DevTools integration
- DevTools panel configuration
- Route debugging
- State inspection
46 changes: 42 additions & 4 deletions examples/react/basic-file-based/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,44 @@
# Example
# TanStack Router - File-Based Routing Example

To run this example:
An example demonstrating file-based routing with TanStack Router.

- `npm install` or `yarn`
- `npm start` or `yarn start`
- [TanStack Router Docs](https://tanstack.com/router)

## Start a new project based on this example

To start a new project based on this example, run:

```sh
npx gitpick TanStack/router/tree/main/examples/react/basic-file-based basic-file-based
```

## Getting Started

Install dependencies:

```sh
pnpm install
```

Start the development server:

```sh
pnpm dev
```

## Build

Build for production:

```sh
pnpm build
```

## About This Example

This example demonstrates:

- File-based route generation
- Automatic route tree creation
- Route file conventions
- Type-safe routing with file-based routes
46 changes: 42 additions & 4 deletions examples/react/basic-non-nested-devtools/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,44 @@
# Example
# TanStack Router - Non-Nested DevTools Example

To run this example:
An example demonstrating TanStack Router DevTools in a non-nested configuration.

- `npm install` or `yarn`
- `npm start` or `yarn start`
- [TanStack Router Docs](https://tanstack.com/router)

## Start a new project based on this example

To start a new project based on this example, run:

```sh
npx gitpick TanStack/router/tree/main/examples/react/basic-non-nested-devtools basic-non-nested-devtools
```

## Getting Started

Install dependencies:

```sh
pnpm install
```

Start the development server:

```sh
pnpm dev
```

## Build

Build for production:

```sh
pnpm build
```

## About This Example

This example demonstrates:

- TanStack Router DevTools
- Non-nested DevTools configuration
- Alternative DevTools placement
- DevTools customization
48 changes: 44 additions & 4 deletions examples/react/basic-react-query-file-based/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,46 @@
# Example
# TanStack Router - React Query File-Based Example

To run this example:
An example combining file-based routing with TanStack Query integration.

- `npm install` or `yarn`
- `npm start` or `yarn start`
- [TanStack Router Docs](https://tanstack.com/router)
- [TanStack Query Docs](https://tanstack.com/query)

## Start a new project based on this example

To start a new project based on this example, run:

```sh
npx gitpick TanStack/router/tree/main/examples/react/basic-react-query-file-based basic-react-query-file-based
```

## Getting Started

Install dependencies:

```sh
pnpm install
```

Start the development server:

```sh
pnpm dev
```

## Build

Build for production:

```sh
pnpm build
```

## About This Example

This example demonstrates:

- File-based routing with TanStack Router
- TanStack Query integration
- Type-safe data fetching
- Automatic route generation
- Query-based data loading per route
Loading
Loading