What problem does it solve? It guides developers through creating composable middleware in TanStack Start, covering context passing, client-server data transfer, and global middleware registration without common type-ordering or SSR pitfalls. ## Core Features & Use Cases - Request Middleware: Runs on all server requests (SSR, routes, functions) using createMiddleware with .server() only. - Server Function Middleware: Supports .client() and .server() phases, input validation, and sendContext for client-server context transfer. - Global Middleware: Configures app-wide middleware via createStart in src/start.ts, plus middleware factories for reusable authorization patterns. - Use Case: Build an auth middleware chain that validates sessions, passes typed context to server functions, and enforces role-based permissions across API routes. ## Quick Start Ask the AI to create a TanStack Start auth middleware that validates the session and passes it as context to a server function.