tRPC allows you to easily build & consume fully typesafe APIs, without schemas or code generation. As TypeScript and static typing increasingly become a best practice in web programming, the API presents a major pain point. We need better ways to statically type our API endpoints and share those types between our client and server (or server-to-server). We set out to build a simple library for building typesafe APIs that leverage the full power of modern TypeScript. Introducing RPC! Automatic type safety & autocompletion are inferred from your API paths, their input data, & outputs. No code generation, run-time bloat, or build pipeline. Zero dependencies & a tiny client-side footprint. Easy to add to your existing brownfield project with adapters for Connect/Express/Next.js. Currently, GraphQL is the dominant way to implement typesafe APIs in TypeScript (and it's amazing!).

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
  • Subscriptions support

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow tRPC

tRPC Web Site

Other Useful Business Software
Gemini 3 and 200+ AI Models on One Platform Icon
Gemini 3 and 200+ AI Models on One Platform

Access Google's best plus Claude, Llama, and Gemma. Fine-tune and deploy from one console.

Build generative AI apps with Vertex AI. Switch between models without switching platforms.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of tRPC!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Software Development Software

Registered

2022-03-15