The tRPC Knowledge Patch updates Claude with modern tRPC v11+ conventions, bridging the gap beyond standard LLM training cutoffs. It provides clear guidance for choosing correct terminating links, routing non-JSON inputs like FormData away from batching links, implementing async generator streaming, and building resumable SSE or WebSocket subscriptions. Ideal for full-stack TypeScript engineers modernizing routers, migrating from legacy .interop() setups, generating static OpenAPI 3.1 specs, or integrating tRPC with Next.js App Router Server Actions and TanStack Query.
주요 기능
01Guides migration away from deprecated APIs like .interop() to modern tRPC builder patterns
02Supports streaming queries and mutations using async generators and httpBatchStreamLink
0326 GitHub stars
04Implements resumable Server-Sent Events (SSE) and WebSocket subscriptions with tracked events
05Integrates with Next.js App Router Server Actions and TanStack React Query RSC hydration
06Configures proper link splitting for non-JSON payloads like FormData and octet streams
사용 사례
01Upgrading legacy tRPC codebases to v11 while removing deprecated compatibility shims
02Setting up file uploads or binary streaming using splitLink and native octet parsers
03Exposing tRPC procedures as Next.js Server Actions and generating static OpenAPI 3.1 schemas