← Back to DAGDA | Support | Source: https://github.com/trpc/trpc
Skip to content
trpcPublic

About

πŸ§™β€β™€οΈ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.

Topics

Resources

Contributing

Security policy

Stars

40.9k stars

Watchers

115 watching

Forks

Latest commit

Β 

History

5,374 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

tRPC

tRPC

Move fast and break nothing.
End-to-end typesafe APIs made easy.

codecov weekly downloads MIT License Discord Follow @trpcio on X

Demo

The client above is not importing any code from the server, only its type declarations.


Intro

tRPC lets you build and consume fully typesafe APIs without schemas or code generation.

Features

  • πŸ§™β€β™‚οΈΒ  Full static typesafety and autocompletion on the client, for inputs, outputs, and errors.
  • 🐎  No code generation, runtime bloat, or build pipeline.
  • πŸƒΒ  Zero dependencies and a tiny client-side footprint.
  • 🐻  Easy to add to an existing project.
  • πŸ”‹Β  Adapters for Next.js, Express, Fastify, AWS Lambda, Fetch and more, plus TanStack Query integration. Not tied to React; see the community add-ons.
  • πŸ₯ƒΒ  Subscriptions over SSE and WebSockets.
  • ⚑️  Request batching: queries made at the same time can be combined into one request, and so can mutations.
  • βœ…Β  Well-tested and production ready.

Quickstart

Bootstrap a full-stack Next.js app from the next-prisma-starter example:

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

Swap npx create-next-app for pnpm create next-app, yarn create next-app or bunx create-next-app if you prefer. More starters are in ./examples and on the example apps page.

πŸ‘‰ Read the full documentation on trpc.io. πŸ‘ˆ

Contributing

Read the Contributing Guidelines before opening an issue or PR; they cover the branching strategy and local setup. Questions are welcome on Discord.

A table of avatars from the project's contributors

Sponsors

If you enjoy working with tRPC and want to support us, consider giving a token appreciation by GitHub Sponsors!

tRPC's sponsors, each drawn bigger the more they've given

Silver partners

CodeRabbit
CodeRabbit
Greptile
Greptile
SerpApi
SerpApi

Backers

Unkey
Unkey
Dr. B
Dr. B
Ryan Magoon
Ryan Magoon
Proxidize
Proxidize
Liminity AB
Liminity AB
BestKru
BestKru
Max Greenwald
Max Greenwald
Dmitry Maykov
Dmitry Maykov
Chris Bradley
Chris Bradley
fanvue
fanvue
Aerius Ventilation AB
Aerius Ventilation AB
Stefan Smiljkovic
Stefan Smiljkovic
Kalle
Kalle
Drizzle Team
Drizzle Team
Spencer McKenney
Spencer McKenney
Andrei Karushev
Andrei Karushev
Venue.ink
Venue.ink
Vault
Vault

About

πŸ§™β€β™€οΈ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.

Topics

Resources

Contributing

Security policy

Stars

40.9k stars

Watchers

115 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages