tRPC
A strong pick. 1st of 10 RPC and GraphQL libraries.
tRPC is the most widely used library for end-to-end typesafe RPC between a TypeScript server and a TypeScript client. Version 11 is mature and actively maintained, and it is a strong default when one team owns both ends of the app. For public APIs, or clients written in other languages, oRPC or GraphQL fits better, because tRPC's own OpenAPI output is still alpha.
Best for: Full-stack TypeScript teams, especially on Next.js with TanStack Query, who own both client and server and want types shared without code generation.
Scores
Overall8.2
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
tRPC is a strong, well-maintained pick and the default for full-stack TypeScript apps where one team owns both ends. It loses ground for public or multi-language APIs, where oRPC (stable OpenAPI) or a GraphQL server fits better. oRPC's fast growth is a real competitive signal, which keeps tRPC from being the category's clear default.
- npm downloadsLast4Weeks: Large and growing faster than the median.
- peers oRPC: A fast-growing alternative with OpenAPI.
- blog.logrocket.com/trpc-vs-orpc-type-safe-rpc: tRPC for single-team TypeScript apps, oRPC for external consumers.
- trpc.io/docs/openapi: OpenAPI support still alpha.
GPT-6.2 Sol: 8.3, likely 7.3 to 9.3
tRPC is a strong choice for a new full-stack TypeScript app that can share router types and coordinate client and server releases. Its mature integrations, active maintenance and growing use make it easy to adopt. The ranking changes with the API contract. oRPC has the stronger OpenAPI story today, and GraphQL Yoga fits APIs whose clients need to select their own fields.
- trpc.io/docs/quickstart: Shows the stable typed server-to-client workflow.
- github releasesLastYear, npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo: Frequent releases and above-median download growth support a new-project choice.
- thoughtworks.com/radar/tools/orpc: Independent assessment identifies OpenAPI generation as an oRPC strength.
- echobind.com/post/why-we-ditched-graphql-for-trpc: Hands-on comparison explains the trade-off between simpler RPC and client-selected GraphQL fields.
Needed by many5.9
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Many TypeScript web developers build full-stack apps where one team owns both client and server, which is tRPC's target. It is narrower than the whole category, though. It does not serve public APIs, clients in other languages, or teams that want GraphQL.
- blog.logrocket.com/trpc-vs-orpc-type-safe-rpc: Best fit for all-TypeScript apps run by a single team; weak for public APIs.
- pkgpulse.com/guides/orpc-vs-trpc-vs-hono-rpc-type-safe-apis-2026: Recommended for full-stack Next.js apps; RPC only, with no mixing of REST routes.
GPT-6.2 Sol: 5.8, likely 4.7 to 6.9
Typed APIs matter to a large group of full-stack developers, and tRPC works across several frameworks and runtimes. Its approach fits best when the client and server can share TypeScript types. The survey measures tool use, so the share of projects with that architecture is still an estimate.
- 2025.stateofjs.com/en-US/libraries/back-end-frameworks: Surveys tRPC use and identifies demand for typed backend APIs.
- trpc.io/docs/server/adapters: Supports standalone Node.js, Express, Fastify, Next.js, Lambda and Fetch runtimes.
- trpc.io/docs/faq: Separate repositories can share the router types through a package.
Helps a lot8.3
How well does it do the job for those who need it?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
v11 is polished: type inference, batching, SSE subscriptions, a first-class TanStack Query integration and many adapters. It has good docs, and AI coding agents write it well because it is so widely used. The limits: OpenAPI output is still alpha, and type checking slows down in big routers. oRPC now does the same core job and adds stable OpenAPI.
- trpc.io/docs/openapi: Official OpenAPI package is 11.x alpha and skips subscriptions.
- pkgpulse.com/guides/orpc-vs-trpc-vs-hono-rpc-type-safe-apis-2026: Lists TanStack Query integration, adapters and subscriptions as strengths, and no OpenAPI as a gap.
- discord-questions.trpc.io/c/1020132255567454310: User threads on production debugging and slowdowns as routers grow.
- npm hasTypes: TypeScript-first, with types bundled.
GPT-6.2 Sol: 8.5, likely 7.4 to 9.4
Stable v11.29.5 offers inferred procedure types, batching, subscriptions and a well-documented TanStack Query integration. The shipped coding-agent guides cover common tasks, and TypeScript checks procedure calls. Users report editor lag in large monorepos, and an oRPC-maintained benchmark found lower tRPC HTTP throughput in one synthetic workload. Performance depends on the application, and official OpenAPI generation remains in alpha.
- github.com/trpc/trpc/releases/tag/v11.29.5: Current stable release includes an OpenAPI output fix.
- trpc.io/docs: Documents type inference, batching, subscriptions and client integrations.
- trpc.io/docs/skills: Versioned agent guides cover setup, adapters, links and migration.
- reddit.com/r/typescript/comments/1o2aq5c/how_do_you_debug_typescript_autocomplete_slowness: Teams report editor lag with large tRPC and Zod setups.
- github.com/middleapi/orpc-benchmarks: Peer-maintained benchmarks show a throughput gap on synthetic HTTP requests.
- trpc.io/docs/openapi: Official OpenAPI generator is documented as alpha.
Holds up over time8.1
Will it still be a good choice in two years?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
Activity is high: 559 commits, 39 GitHub releases and 45 npm versions in the last year. Open issues are few (55) against 1,329 closed, and the project has 578 contributors. Several core maintainers share the work, and new work such as OpenAPI is under way. The project is funded by sponsors rather than owned by a company, and oRPC competes for new users, which keeps this short of the top.
- github commitsLastYear / releasesLastYear: 559 commits and 39 releases in the last year.
- github openIssues / closedIssues: 55 open against 1,329 closed.
- bsky.app/profile/nicklucas.dev/post/3mh2lwbldwc2u: A maintainer seeking feedback on the OpenAPI beta in March 2026.
- trpc maintainers: Several core maintainers, funded by sponsors.
GPT-6.2 Sol: 8.2, likely 7.1 to 9.2
The repository logged 559 commits and 39 releases in a year, and the OpenAPI discussion shows maintainers fixing issues users reported. Multiple maintainers have handled releases, and GitHub Actions publishes current GitHub releases. The v10-to-v11 migration and the planned removal of the classic React Query integration show that major upgrades can take work. Public sponsorship is visible, while long-term staffing and typical issue turnaround are harder to gauge.
- github commitsLastYear, releasesLastYear, latestRelease: 559 commits, 39 releases and a stable update on November 18.
- github.com/trpc/trpc/discussions/7239: Maintainers respond to OpenAPI feedback and ship fixes.
- github.com/trpc/trpc/releases/tag/v11.1.1: A maintainer tagged the WebSocket fix.
- github.com/trpc/trpc/releases/tag/v11.8.0: A second maintainer released v11.8.0.
- github.com/trpc/trpc/releases/tag/v11.29.5: The latest GitHub release was published by GitHub Actions.
- trpc.io/docs/migrate-from-v10-to-v11: Documents breaking changes and the deprecated React Query integration.
- opencollective.com/trpc: Records recurring sponsorship and a modest public budget.
Used widely6.9
How many use it, and is that growing?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
@trpc/server had 32.4M downloads in the last 4 weeks, against 6.3M a year before. That ratio of 5.1 is above the 4.1 median, so it is gaining ground, though oRPC is growing much faster from a smaller base. It has 5,111 dependent repos and 40.8k stars, the most among the RPC peers. Starters such as create-t3-app inflate the downloads somewhat.
- npm downloadsLast4Weeks: 32.4M now against 6.3M a year ago, a ratio of 5.1 against a 4.1 median.
- dependents: 5,111 repos and 386 packages, far ahead of ts-rest and Connect.
- peers oRPC downloads: oRPC grew 36x to 12.4M, a fast-rising rival.
- github stars: 40.8k stars.
GPT-6.2 Sol: 6.3, likely 4.9 to 7.5
Four-week downloads rose from 6.3 million to 32.4 million, a 5.13× increase against the catalog median of 4.1×. That indicates a gain in download share, with faster growth for oRPC and Connect. Ecosyste.ms found 5,111 repositories and 386 packages, and tRPC tied GraphQL.js for the most Bluesky links in this group. Partial repository coverage and repeated automated installs leave the number of direct users uncertain.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Download growth exceeded the catalog median.
- dependents repos, packages: Ecosyste.ms observed 5,111 repositories and 386 npm packages.
- peers downloadsLast4Weeks, downloadsSame4WeeksYearAgo, dependentRepos: oRPC and Connect grew faster. Apollo Server and Yoga had more indexed repositories.
- github stars, bluesky posts, peers blueskyPosts: 40,844 stars and 11 Bluesky links show strong attention within the category.
Vouched for7.5
Who stands behind it being good?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Independent comparisons treat it as the established standard for type-safe RPC. It is the API layer of the T3 stack, is used in known production apps, and appears in the State of JS back-end frameworks question. No current survey satisfaction figure was found for it, and the independent sources are mostly blog comparisons, which keeps this below 8.
- blog.logrocket.com/trpc-vs-orpc-type-safe-rpc: Independent comparison that treats tRPC as the main option.
- pkgpulse.com/guides/orpc-vs-trpc-vs-hono-rpc-type-safe-apis-2026: Calls it the standard choice for full-stack Next.js apps.
- 2025.stateofjs.com/en-US/libraries/back-end-frameworks: Listed in State of JS 2025 back-end frameworks; not among the top for satisfaction.
- create-t3-app, Cal.com: Popular starters and apps build on tRPC.
GPT-6.2 Sol: 8.0, likely 6.9 to 9.0
State of JavaScript 2025 reports 81% satisfaction, Documenso documents tRPC in its API architecture, and Create T3 App scaffolds it. Echobind's migration report describes less boilerplate and explains what its team gave up by leaving GraphQL. The strongest evidence comes from teams that control both ends of a TypeScript app, so confidence is lower for other setups.
- 2025.stateofjs.com/en-US/libraries: Independent survey puts tRPC at 81% satisfaction.
- github.com/documenso/documenso/blob/main/ARCHITECTURE.md: Documenso uses tRPC for internal calls and its v2 API layer.
- create.t3.gg/en/usage/trpc: Create T3 App documents its generated tRPC integration.
- echobind.com/post/why-we-ditched-graphql-for-trpc: Independent migration report describes reduced boilerplate and lost field selection.
Safe7.4
How safe is it to depend on?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
The server package has zero runtime dependencies and an MIT licence. Two high-severity advisories in the last 24 months (a WebSocket DoS, and prototype pollution in an experimental Next.js caller) were published with fixes. The OpenSSF Scorecard is 6.3, with zeros for pinned dependencies, token permissions and fuzzing.
- npm dependencies: Zero runtime dependencies.
- advisories: Two high-severity advisories, in April and December 2025.
- scorecard: 6.3 overall; weak on Pinned-Dependencies and Token-Permissions.
- github license: MIT.
GPT-6.2 Sol: 7.2, likely 6.0 to 8.3
The server package has zero runtime dependencies and a permissive MIT license. Both high-severity advisories had fixes by public disclosure, and the prototype-pollution fix was also backported to v10. OpenSSF scored the project 6.3, with weak workflow token permissions, dependency pinning and branch protection. The GitHub release is automated, while npm publisher access and package provenance remain unclear.
- npm dependencies, license: Zero runtime dependencies and MIT licensing.
- scorecard score, checks: 6.3 overall, with zero scores for token permissions, pinning and fuzzing.
- github.com/trpc/trpc/security/advisories/GHSA-43p4-m455-4f4j: Lists fixes in v11.8.0 and v10.45.3.
- github.com/trpc/trpc/security/advisories/GHSA-pj3v-9cm8-gvj8: Lists the WebSocket denial-of-service fix in v11.1.1.
- github.com/trpc/trpc/releases/tag/v11.8.0: The v11 prototype-pollution fix shipped before public disclosure.
- github.com/trpc/trpc/releases/tag/v11.1.1: The WebSocket fix was tagged before public disclosure.
- github.com/trpc/trpc/releases/tag/v11.29.5: GitHub Actions published the latest GitHub release.
Good
- Types flow from the server router to the client with no code generation or schema files.
- Close TanStack Query v5 integration, plus adapters for Next.js, Express, Fastify, fetch and edge runtimes.
- Very active: 39 releases and 559 commits in the last year from a team of several maintainers.
- The server package has zero runtime dependencies, and it works with any Standard Schema validator (Zod, Valibot, ArkType).
Bad
- Only useful when both client and server are TypeScript, so it is a poor fit for public or multi-language APIs.
- Official OpenAPI generation (@trpc/openapi) is still an alpha and skips subscriptions, while oRPC ships OpenAPI as stable.
- Client and server are tightly coupled, which makes independent deploys and versioning harder across teams.
- Users report type-check slowdowns as routers grow, and production errors that are hard to debug.
The numbers
- npm downloads, 4 weeks
- 32M ×5.1 in a year
- GitHub stars
- 41k
- Commits, 12 months
- 559
- npm version
- 11.29.5 Nov 2026
- Versions, 12 months
- 45
- Advisories, 24 months
- 2 of 2 ever
- OpenSSF Scorecard
- 6.3 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (trpc/trpc), npm (@trpc/server), OSV and the OpenSSF Scorecard.
RPC and GraphQL libraries
- 8.2tRPC
- 8.0GraphQL Yoga
- 7.9Pothos
- 7.8oRPC
- 7.6GraphQL.js
- 7.5Connect
- 7.2Apollo Server
- 6.9Mercurius
- 5.0TypeGraphQL
- 1.7ts-rest