/trpc

πŸ§™β€β™€οΈ End-to-end typesafe APIs made easy

Primary LanguageTypeScriptMIT LicenseMIT

tRPC

End-to-end typesafe APIs made easy

codecov

Server/client example The client above is not importing any code from the server, only it's type declarations.
Import type only imports declarations to be used for type annotations and declarations. It always gets fully erased, so there’s no remnant of it at runtime.

Intro

tRPC allows you to easily build & consume fully typesafe APIs, without schemas or code generation.

  • πŸ§™β€β™‚οΈ  Full static typesafety & autocompletion on the client - on inputs, outputs, & 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-library + Next.js/Express adapters. (But tRPC is not tied to React - reach out if you want to make a Svelte/Vue/... lib)
  • πŸ₯ƒ  Simple to use APIs for queries, mutations, & subscriptions support.
  • ⚑️  Request batching - requests made at the same time can be automatically combined into one

... and:

  • πŸ‘€  Quite a few examples in the ./examples-folder
  • βœ…  It's well-tested & running in production.

Still reading? Follow @alexdotjs on Twitter if you have any questions or want to keep up to date what's coming next.


Usage

πŸ‘‰ See full documentation documentation on tRPC.io. πŸ‘ˆ

Quick start with a full-stack Next.js example:

npx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter

Core Team


Alex / KATT

πŸ‘‹ Hi, I'm Alex and I am the main maintainer if tRPC, don't hesitate to contact me on Twitter or email if you are curious about tRPC in any way.

Financial Contributors

If you like working with tRPC, consider giving a token a apprecation by GitHub Sponsors or get in touch if you want your company's logo featured in the tRPC repository or on the website.

Get in touch on Twitter or by email.

Companies

Individuals


Anthony Short

Hampus Kraft

Daniel Yogel

Sam Holmes

Jan Zimmek

All contributors ✨

tRPC is developed by KATT, originally based on a proof-of-concept by colinhacks.


Alex Johansson

πŸ€” πŸ’» ⚠️ πŸ“– πŸ’‘ 🚧

Colin McDonnell

πŸ€” πŸ’» ⚠️ πŸ“–

Pieter Venter

πŸ€” πŸ‘€

Kalle

πŸ›

Malte Granderath

πŸ›

KristΓ³f PoduszlΓ³

πŸ€” πŸ›

Rich Haines

πŸ’‘

Simon Edelmann

πŸ’» πŸ€” ⚠️ πŸ“– πŸ‘€

Anthony Short

πŸ’΅

Hampus Kraft

πŸ’΅

hypnodron

⚠️ πŸ’» πŸ›

Daniel Yogel

πŸ’΅ πŸ‘€ πŸ›

Sam Holmes

πŸ’΅

Misha Kaletsky

πŸ€” ⚠️ πŸ’»

s

πŸ“–

Jan Zimmek

πŸ’΅

Powered by Vercel