keenahn / trpc

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

Home Page:https://tRPC.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

πŸ’¬ Join the tRPC Discord server to chat to other people using tRPC - trpc.io/discord

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 creator of 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!

For companies

Is your company using tRPC, want to attract amazing TypeScript developers to your team, & support long-term maintainance of tRPC? Have a look at the sponsorship tiers or get in touch to discuss potential partnerships.

πŸ₯‰ Bronze Sponsors


Newfront

Dr. B

Cal.com

😻 Individuals


Anthony Short

Hampus Kraft

Daniel Yogel

Sam Holmes

Jan Zimmek

Theo Browne

Max Greenwald

Stephen Mount

Alex Schumacher

Bill

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

πŸ’΅

Alaister Young

πŸ’» ⚠️

Theo Browne

πŸ‘€ πŸ’΅

Max Greenwald

πŸ’΅ πŸ’» πŸ“– ⚠️ πŸ›

Stephen Mount

πŸ’΅

amr

πŸ’»

Thomas Coldwell

πŸ“–

Alex Schumacher

πŸ’΅

Ifiok Jr.

⚠️ πŸ’» πŸ“–

Memory-Lane-Games

πŸ’΅

Bill

πŸ’΅

Powered by Vercel

About

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

https://tRPC.io

License:MIT License


Languages

Language:TypeScript 95.5%Language:JavaScript 3.4%Language:CSS 1.1%