tanstack-start-best-practices
Best practices for full-stack React development with TanStack Start, covering server functions, middleware, SSR, and authentication.
- Organizes 31 rules across 10 categories (server functions, security, middleware, authentication, SSR, error handling, and more) with priority levels to guide implementation order
- Covers critical patterns for server-side logic, input validation, secure session management, and client-server boundary handling
- Includes middleware composition, selective SSR configuration, streaming for performance, and environment-based configuration management
- Each rule provides explanation, anti-patterns, recommended implementations, and contextual guidance for when to apply or skip
TanStack Start Best Practices
Comprehensive guidelines for implementing TanStack Start patterns in full-stack React applications. These rules cover server functions, middleware, SSR, authentication, and deployment.
When to Apply
- Creating server functions for data mutations
- Setting up middleware for auth/logging
- Configuring SSR and hydration
- Implementing authentication flows
- Handling errors across client/server boundary
- Organizing full-stack code
- Deploying to various platforms
Rule Categories by Priority
More from deckardger/tanstack-agent-skills
tanstack-query-best-practices
TanStack Query (React Query) best practices for data fetching, caching, mutations, and server state management. Activate when building data-driven React applications with server state.
5.7Ktanstack-router-best-practices
TanStack Router best practices for type-safe routing, data loading, search params, and navigation. Activate when building React applications with complex routing needs.
3.4Ktanstack-integration-best-practices
Best practices for integrating TanStack Query with TanStack Router and TanStack Start. Patterns for full-stack data flow, SSR, and caching coordination.
1.4K