tRPC
🧙♀️ Move Fast and Break Nothing. End-to-end typesafe APIs made easy. observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 97
- Release rhythm 89
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 7.0
- age_days: 2238
- days_rel: 76
- days_push: 20
- n_releases_24m: 39
Adoption not part of the score
40548 stars · 1653 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
tRPC is a TypeScript library for building and consuming fully typesafe APIs without schemas or code generation, leveraging TypeScript type inference to share API contracts between client and server. It ships adapters for React, Next.js, Express, Fastify, and more, with features like subscriptions, request batching, and middleware.
Use cases
- build end-to-end typesafe APIs in a full-stack TypeScript app
- share API types between client and server without code generation
- replace GraphQL or REST with a typesafe RPC layer
- add typesafe data fetching to a Next.js app
- add real-time subscriptions with type safety
- batch multiple API requests into one
- add an API layer to an existing brownfield TypeScript project
When to choose
- your whole stack is TypeScript and you want API contracts checked at build time
- you want a lightweight alternative to GraphQL with no codegen or build step
- you use React/Next.js and want integrated typed data-fetching hooks
- you want subscriptions and request batching out of the box
When to avoid
- your clients are not written in TypeScript (e.g. mobile or third-party consumers) unless you add an OpenAPI layer
- you need a language-agnostic API contract for polyglot teams
- your project cannot use strict TypeScript mode or the required TypeScript version
Facets
library · maturity stable
api-framework rpc http-server http-client middleware websocket type-system web-development backend frontend apis developer-tools browser cross-platform end-to-end-typesafety full-stack-typescript no-codegen react nextjs request-batching subscriptions alternative-to-graphql typescript nodejs web-server
9 sources
- readme: https://github.com/trpc/trpc · fetched 2026-08-28 · dd610991d30e
- homepage: https://tRPC.io · fetched 2026-08-29 · 02ba9291f1d4
- site_page: https://trpc.io/docs · fetched 2026-08-29 · 4ef001e09c15
- site_page: https://trpc.io/docs/quickstart · fetched 2026-08-29 · 9649d852ef87
- site_page: https://trpc.io/docs/community/awesome-trpc · fetched 2026-08-29 · 22db9725ae67
- site_page: https://trpc.io/docs/client/nextjs · fetched 2026-08-29 · 5b11b2ded3c8
- site_page: https://trpc.io/docs/v10 · fetched 2026-08-29 · 520a281d3724
- site_page: https://trpc.io/docs/v9 · fetched 2026-08-29 · 02820abe5a74
- site_page: https://trpc.io/docs/faq · fetched 2026-08-29 · 9badb1808bad
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| trpc/trpc | main | 95 |
| trpc/trpc-openapi | plugin | 10 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem