trpc-type-safety

Installation
Summary

End-to-end type-safe APIs for TypeScript with zero code generation.

  • Shares TypeScript types between client and server automatically—no codegen required, with full type inference across queries, mutations, and subscriptions
  • Integrates seamlessly with React Query for caching, optimistic updates, and infinite queries; supports Next.js App Router, Server Components, and WebSocket subscriptions
  • Validates all inputs with Zod schemas; includes middleware for authentication, logging, and rate limiting; error handling with typed TRPCError codes
  • Supports batching, DataLoader patterns, file uploads via signed URLs, and production patterns like caching, monitoring, and OpenTelemetry tracing
SKILL.md

tRPC - End-to-End Type Safety


progressive_disclosure: entry_point: summary sections: - id: summary title: "tRPC Overview" tokens: 70 next: [when_to_use, quick_start] - id: when_to_use title: "When to Use tRPC" tokens: 150 next: [quick_start, core_concepts] - id: quick_start title: "Quick Start" tokens: 300 next: [core_concepts, router_definition] - id: core_concepts title: "Core Concepts"

Related skills
Installs
1.1K
GitHub Stars
43
First Seen
Jan 23, 2026