trpc: End-to-end typesafe APIs made easy.
What problem it solves
Building an API while keeping client inputs, outputs, and errors in sync can require schemas, code generation, or extra build steps. tRPC addresses this by enabling teams to build and consume fully typesafe APIs without schemas or code generation.
Key features
End-to-end type safety — Clients receive static types and autocompletion for procedure inputs, outputs, and errors.
Source: README
No code generation — The API can be consumed without generated code or an additional build pipeline.
Source: README
Framework adapters — Adapters cover Next.js, Express, Fastify, AWS Lambda, and Fetch, with TanStack Query integration.
Source: README, packages
Realtime subscriptions — Subscriptions can be delivered over Server-Sent Events and WebSockets.
Source: README
Request batching — Queries and mutations issued at the same time can be combined into requests.
Source: README
Quick start
Copied verbatim from the project's README.
npx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starterWho it may suit
This may suit TypeScript developers building full-stack applications who want shared API types without adopting schemas or code generation. It may also suit teams adding a typed API layer to projects using the listed adapters.
Topics to discuss
Which adapter pattern works best for your application architecture?
How are you organizing shared types across server and client boundaries?
What is your preferred approach to subscriptions and request batching?
Written by ReadmeX AI from the project's README, source and public GitHub data; it may contain mistakes.
Read the original README https://github.com/trpc/trpc#readme
ReadmeX opened this community for a trending project; it is not run by the project. Maintainers can claim it from the community page.
Comments
…