Skip to content

a blank template for creating a new tanstack library with tanstack configs set up

License

Notifications You must be signed in to change notification settings

TanStack/template

TanStack Template

A complete template for creating new TanStack libraries with all the tooling and infrastructure you need.

What's Included

  • ✅ Framework-agnostic core package
  • ✅ React and Solid adapters (easy to add more)
  • ✅ Devtools packages for debugging
  • ✅ Full monorepo setup with pnpm + Nx
  • ✅ TypeScript configuration
  • ✅ Testing setup with Vitest
  • ✅ Documentation structure with TypeDoc
  • ✅ Example applications
  • ✅ GitHub workflows (CI, release, autofix)
  • ✅ Changesets for versioning
  • ✅ ESLint + Prettier
  • ✅ Issue and PR templates

Getting Started

  1. Clone or copy this template
  2. Follow the instructions in TEMPLATE_GUIDE.md
  3. Search and replace "template" with your library name
  4. Replace placeholder code with your implementation
  5. Update documentation
  6. Start building!

Package Structure

  • @tanstack/template - Core library
  • @tanstack/react-template - React adapter
  • @tanstack/solid-template - Solid adapter
  • @tanstack/template-devtools - Base devtools
  • @tanstack/react-template-devtools - React devtools
  • @tanstack/solid-template-devtools - Solid devtools

Commands

pnpm install          # Install dependencies
pnpm build:all        # Build all packages
pnpm test:lib         # Run tests
pnpm test:pr          # Run PR checks
pnpm format           # Format code
pnpm generate-docs    # Generate documentation
pnpm watch            # Watch mode

Documentation

See TEMPLATE_GUIDE.md for detailed instructions on customizing this template.

License

MIT

About

a blank template for creating a new tanstack library with tanstack configs set up

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 2

  •  
  •