tech-trpc

Installation
SKILL.md

tRPC End-to-End Typesafe APIs

Type-safe remote procedure calls with full client-server type inference. No code generation needed. tRPC excels at:

  • Zero API generation — Shared types between client and server; type-safe mutations/queries by default
  • Middleware composition — Chain middlewares with unstable_pipe() for authentication, logging, authorization
  • Input validation — Zod schema validation with auto-formatted error responses
  • Error handling — Domain-specific TRPCError codes mapped to HTTP status automatically
  • Vertical Slice pattern — Organize by feature (slice), not layer; each slice owns procedures, schemas, data access

Core patterns: procedures (queries/mutations) in routers, input/output schemas for contracts, middleware for cross-cutting concerns, domain errors with proper codes.

Workflow

When designing tRPC APIs:

Installs
28
GitHub Stars
16
First Seen
Feb 14, 2026
tech-trpc — ravnhq/ai-toolkit