tRPC lets you build and consume fully typesafe APIs without schemas or code generation.
- π§ββοΈΒ Full static typesafety and autocompletion on the client, for inputs, outputs, and errors.
- πΒ No code generation, runtime bloat, or build pipeline.
- πΒ Zero dependencies and a tiny client-side footprint.
- π»Β Easy to add to an existing project.
- πΒ Adapters for Next.js, Express, Fastify, AWS Lambda, Fetch and more, plus TanStack Query integration. Not tied to React; see the community add-ons.
- π₯Β Subscriptions over SSE and WebSockets.
- β‘οΈΒ Request batching: queries made at the same time can be combined into one request, and so can mutations.
- β Β Well-tested and production ready.
Bootstrap a full-stack Next.js app from the next-prisma-starter example:
npx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starterSwap npx create-next-app for pnpm create next-app, yarn create next-app or bunx create-next-app if you prefer. More starters are in ./examples and on the example apps page.
π Read the full documentation on trpc.io. π
Read the Contributing Guidelines before opening an issue or PR; they cover the branching strategy and local setup. Questions are welcome on Discord.
If you enjoy working with tRPC and want to support us, consider giving a token appreciation by GitHub Sponsors!
CodeRabbit |
Greptile |
![]() SerpApi |



