trpc
CommunityEnd-to-end typesafe APIs with tRPC
Authorehyland
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a framework-agnostic pattern to build and consume fully type-safe APIs between server and client using tRPC, removing the need for schemas or code generation and ensuring shared types across layers.
Core Features & Use Cases
- Type-safe Routers & Procedures: Define routers, queries, mutations, and subscriptions with TypeScript types shared between server and client.
- Schema-free Typing: Share input/output types without runtime schemas or codegen, enabling rapid iteration.
- Cross-environment Support: Works in Node and browser contexts, ideal for monorepos, Next.js APIs, and microservices.
- Use Case: Build a single source of truth for API contracts in a full-stack React+Node project and evolve client/server APIs together.
Quick Start
Install core packages and scaffold a basic tRPC setup. Create a router with initTRPC, export a publicProcedure, and implement a client that calls the router endpoints.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: trpc Download link: https://github.com/ehyland/skills/archive/main.zip#trpc Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.