mirror of
https://github.com/TanStack/create-tsrouter-app.git
synced 2026-11-17 06:58:12 +00:00
Create-tsrouter-app is drop-in replacement for create-react-app that builds TanStack Router based SPA applications
- TypeScript 79.9%
- EJS 13.7%
- JavaScript 3.9%
- CSS 2.4%
* fix Paraglide Start scaffold integration * fix(create): remove obsolete Paraglide demo asset --------- Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com> |
History
|
|
|---|---|---|
| .agents | ||
| .changeset | ||
| .claude | ||
| .cursor | ||
| .github | ||
| .husky | ||
| _artifacts | ||
| cli-aliases | ||
| docs | ||
| examples | ||
| frameworks | ||
| packages | ||
| scripts | ||
| .gitattributes | ||
| .gitignore | ||
| .npmrc | ||
| .nvmrc | ||
| .prettierignore | ||
| AGENTS.md | ||
| ARCHITECTURE.md | ||
| CLAUDE.md | ||
| CONTRIBUTING.md | ||
| domain_map.yaml | ||
| eslint.config.js | ||
| LICENSE | ||
| nx.json | ||
| package.json | ||
| playbook.config.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| prettier.config.js | ||
| README.md | ||
| skill_spec.md | ||
TanStack CLI
Create and manage TanStack Router and Start applications.
npx @tanstack/cli create my-app
Features
- TanStack Start - Full-stack SSR framework (default)
- TanStack Router - Type-safe routing (
--router-onlyfor SPA) - Vite or Rsbuild - Choose the build tool for React and Solid projects
- Add-ons - Auth, database, deployment, monitoring, and more
- CLI Introspection - Agent-friendly discovery via JSON CLI output
Quick Start
# Create TanStack Start app (recommended)
npx @tanstack/cli create my-app
# Create a minimal one-route Start app without selection prompts
npx @tanstack/cli create my-app --blank -y
# Create Router-only SPA (no SSR)
npx @tanstack/cli create my-app --router-only
# Create with Rsbuild
npx @tanstack/cli create my-app --build-tool rsbuild -y
# With add-ons
npx @tanstack/cli create my-app --add-ons clerk,drizzle,tanstack-query
# Add to existing project
npx @tanstack/cli add clerk drizzle
# List available add-ons
npx @tanstack/cli create --list-add-ons
# Agent-friendly introspection
npx @tanstack/cli create --addon-details tanstack-query --json
npx @tanstack/cli libraries --json
npx @tanstack/cli search-docs "loaders" --library router --framework react --json
Documentation
Telemetry
TanStack CLI sends anonymous usage telemetry by default.
- Sent: command usage, durations, selected framework/build tool/package manager/add-on ids, and coarse result metadata
- Never sent: project names, file paths, target directories, raw search queries, raw template URLs/paths, add-on config values, env vars, or raw error messages
- Disabled automatically in
CI, or whenDO_NOT_TRACK=1orTANSTACK_CLI_TELEMETRY_DISABLED=1
Manage it with:
tanstack telemetry status
tanstack telemetry disable
tanstack telemetry enable
Get Involved
TanStack Ecosystem
- TanStack Query - Async state & caching
- TanStack Router - Type-safe routing
- TanStack Start - Full-stack SSR
- TanStack Form - Type-safe forms
- TanStack Table - Headless datagrids
- TanStack Store - Reactive state
- TanStack Virtual - Virtualized rendering