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
No-Nonsense Code-to-Cloud Security for Devs | Aikido Icon
No-Nonsense Code-to-Cloud Security for Devs | Aikido

Connect your GitHub, GitLab, Bitbucket or Azure DevOps account to start scanning your repos for free.

Aikido provides a unified security platform for developers, combining 12 powerful scans like SAST, DAST, and CSPM. AI-driven AutoFix and AutoTriage streamline vulnerability management, while runtime protection blocks attacks.
Learn More
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