https://github.com/trpc/trpc
๐งโโ๏ธ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.
https://github.com/trpc/trpc
api next nextjs prisma react typescript
Last synced: 7 days ago
JSON representation
๐งโโ๏ธ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.
- Host: GitHub
- URL: https://github.com/trpc/trpc
- Owner: trpc
- License: mit
- Created: 2020-07-18T01:17:11.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-31T19:38:57.000Z (14 days ago)
- Last Synced: 2025-03-31T23:06:38.011Z (14 days ago)
- Topics: api, next, nextjs, prisma, react, typescript
- Language: TypeScript
- Homepage: https://tRPC.io
- Size: 44.9 MB
- Stars: 36,733
- Watchers: 91
- Forks: 1,336
- Open Issues: 149
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
- awesome - trpc/trpc - ๐งโโ๏ธ Move Fast and Break Nothing. End-to-end typesafe APIs made easy. (TypeScript)
- awesome-projects - TRPC - safed rpc using typescript development (node.js/javascript)
- awesome-ccamel - trpc/trpc - ๐งโโ๏ธ Move Fast and Break Nothing. End-to-end typesafe APIs made easy. (TypeScript)
- awesome-github-repos - trpc/trpc - ๐งโโ๏ธ Move Fast and Break Nothing. End-to-end typesafe APIs made easy. (TypeScript)
- awesome-github-star - trpc - to-end typesafe APIs made easy. | trpc | 28900 | (TypeScript)
- react-cheatsheet - tRPC
- awesome-list - trpc - to-end typesafe APIs made easy | trpc | 1286 | (TypeScript)
- awesome-web-dev - trpc
- awesome-zod - `tRPC` - Build end-to-end type-safe APIs without GraphQL. (APIs and Servers)
- awesome-angular - trpc - Move Fast and Break Nothing. End-to-end typesafe APIs made easy. (Table of contents / Third Party Components)
- awesome-fe-resources - trpc
- StarryDivineSky - trpc/trpc - tRPC ๅ ทๆ้ถ deps ๅๆๅฐ็ๅฎขๆท็ซฏๅ ็จ็ฉบ้ดใๆไบๆทปๅ ๅฐๆจ็ฐๆ็้กน็ฎไธญใReact.js/Next.js/Express.js/Fastify ้้ ใ่ฎข้ ๆฏๆใ่ฏทๆฑๆนๅค็ - ๅๆถๅๅบ็่ฏทๆฑๅฏไปฅ่ชๅจๅๅนถไธบไธไธชใ (ๅ็ซฏๅผๅๆกๆถๅ้กน็ฎ / ็ฎก็้ขๆฟ)
- awesome-star-libs - trpc / trpc
- awesome-typesafe - trpc/trpc - Create end-to-end typesafe APIs with ease. (**1. Libraries** / APIs)
- awesome - trpc/trpc - ๐งโโ๏ธ Move Fast and Break Nothing. End-to-end typesafe APIs made easy. (TypeScript)
- awesome - trpc/trpc - ๐งโโ๏ธ Move Fast and Break Nothing. End-to-end typesafe APIs made easy. (TypeScript)
- fucking-awesome-angular - trpc - Move Fast and Break Nothing. End-to-end typesafe APIs made easy. (Table of contents / Third Party Components)
- awesome - trpc/trpc - ๐งโโ๏ธ Move Fast and Break Nothing. End-to-end typesafe APIs made easy. (TypeScript)
- awesome-repositories - trpc/trpc - ๐งโโ๏ธ Move Fast and Break Nothing. End-to-end typesafe APIs made easy. (TypeScript)
README
tRPC
Move fast and break nothing.
End-to-end typesafe APIs made easy.
![]()
![]()
![]()
![]()
![]()
![]()
The client above is not importing any code from the server, only its type declarations.
## Intro
tRPC allows you to easily build & consume fully typesafe APIs without schemas or code generation.
### 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.
- ๐ย Batteries included - React.js/Next.js/Express.js/Fastify adapters. _(But tRPC is not tied to React, and there are many [community adapters](https://trpc.io/docs/awesome-trpc#-extensions--community-add-ons) for other libraries)_
- ๐ฅย Subscriptions support.
- โก๏ธย Request batching - requests made at the same time can be automatically combined into one
- ๐ย Quite a few examples in the [./examples](./examples)-folder## Quickstart
There are a few [examples](https://trpc.io/docs/example-apps) that you can use for playing out with tRPC or bootstrapping your new project. For example, if you want a Next.js app, you can use the full-stack Next.js example:
**Quick start with a full-stack Next.js example:**
```sh
# yarn
yarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter# npm
npx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter# pnpm
pnpm create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter# bun
bunx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter# deno
deno init --npm next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
```**๐ See full documentation on [tRPC.io](https://trpc.io/docs). ๐**
## Star History
## Core Team
> Do you want to contribute? First, read the Contributing Guidelines before opening an issue or PR so you understand the branching strategy and local development environment. If you need any more guidance or want to ask more questions, feel free to write to us on Discord!
### Project leads
> The people who lead the API-design decisions and have the most active role in the development
Alex / KATT
Julius Marminge
Nick Lucas
### Active contributors
> People who actively help out improving the codebase by making PRs and reviewing code
### Special shout-outs
> Individuals who have made exceptional contributions to tRPC through code, documentation, community building, and other valuable efforts
## Sponsors
If you enjoy working with tRPC and want to support us, consider giving a token appreciation by [GitHub Sponsors](https://trpc.io/sponsor)!
### ๐ฅ Gold Sponsors
### ๐ฅ Silver Sponsors
Cal.com, Inc.
Greptile
CodeRabbit
### ๐ฅ Bronze Sponsors
Dr. B
Ryan Magoon
JonLuca De Caro
### ๐ป Smaller Backers
Ahoy Labs
Unkey
Tom Ballinger
Proxidize
rickk
Brooke Holmes
Max Greenwald
Dmitry Maykov
Chris Bradley
Jaron Heard
Liminity AB
Val Town
Illarion Koperski
Kalle
Jared Wyce
fanvue
Ascent Factory
Drew Powers
Drizzle Team
Leo Jace
Jonas Strassel
Spencer McKenney
Stefan Wallin
Maicon Carraro
Andrei Karushev
Venue Ink
## All contributors โจ
---