tanstack-start-best-practices

Enforce TanStack Start best practices for full-stack React apps.

5|Updated Feb 6, 2022
One-click install
npx skills add https://github.com/christofferbergj/dotfiles --skill tanstack-start-best-practices-christofferbergj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tanstack-start-best-practices
Source: https://github.com/christofferbergj/dotfiles/tree/main/.agents/skills/tanstack-start-best-practices
Command: npx skills add https://github.com/christofferbergj/dotfiles --skill tanstack-start-best-practices-christofferbergj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TanStack Start best practices provide a comprehensive blueprint to structure and scale full-stack React applications using TanStack Start, covering server functions, middleware, SSR, authentication, and deployment patterns.

Core Features & Use Cases

  • Design and enforce consistent architecture for server functions, middleware, SSR, and deployment adapters across projects.
  • Provide guardrails for secure routes, data flow, error handling, and environment configuration in TanStack Start apps.
  • Real-world usage includes implementing protected routes, server-function composition, prerendering, streaming SSR, and adapter-based deployments.

Quick Start

Apply the included rules to structure a new TanStack Start project and enforce best practices across server functions, middleware, SSR, and deployment.

Frequently Asked Questions about tanstack-start-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for structuring server functions in TanStack Start?

Best practices for TanStack Start server functions involve enforcing consistent architecture and secure composition. This provides guardrails for data flow, error handling, and environment configuration across full-stack React applications.

How do I implement secure routing and authentication in TanStack Start?

Secure routing and authentication in TanStack Start require applying architectural guardrails for protected routes. This ensures safe access control and proper middleware composition before server functions execute.

How do I configure middleware for SSR in a TanStack Start app?

Configuring middleware for SSR in a TanStack Start app involves applying rules for server-function composition and streaming. This enforces consistent data flow and error handling during server-side rendering.

Can I use adapter-based deployments with TanStack Start?

Yes, TanStack Start supports adapter-based deployments. Enforcing best practices includes configuring deployment patterns and environment variables so the full-stack React app deploys consistently across target platforms.

What's the best way to handle error handling and environment configuration in TanStack Start?

The best way to handle errors and environment configuration in TanStack Start is by applying architectural guardrails. This enforces secure data flow and proper environment setup throughout the full-stack React application.