tRPC allows you to easily build & consume fully typesafe APIs without schemas or code generation.
Features
- β Well-tested and production ready.
- π§ββοΈ Full static typesafety & autocompletion on the client, for inputs, outputs, and errors.
- π Snappy DX - No code generation, run-time bloat, or build pipeline.
- π Light - tRPC has zero deps and a tiny client-side footprint.
- π» Easy to add to your existing brownfield project.
- π Batteries included - React.js/Next.js/Express.js/Fastify adapters. (But tRPC is not tied to React, and there are manyΒ community adaptersΒ for other libraries)
- π₯ Subscriptions support.
- β‘οΈ Request batching - requests made at the same time can be automatically combined into one
- π Quite a few examples in the ./examples-folder