ts-rest
Do not start with it. 10th of 10 RPC and GraphQL libraries.
ts-rest lets you write a typed contract for a plain REST API and get a typed client and server from it. Its repository was archived on 26 October 2026, and the README says it is no longer maintained: no V4, bug fixes or security updates. Its last stable release is v3.52.1 from March 2025, and that release does not support Zod 4. For new work, pick oRPC (contract-first REST with OpenAPI) or tRPC instead.
Best for: Teams that already run ts-rest and need time to plan a move to oRPC or to a fork. It is not for new projects.
Scores
Overall1.7
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 1.5, likely 1.0 to 2.5
The project is archived and has declared itself unmaintained. Its stable release is stuck before Zod 4. oRPC covers the same contract-first REST and OpenAPI job and is under active development. Keep ts-rest only where it already runs, and plan to migrate.
- github.com/ts-rest/ts-rest: Archived on 26 October 2026; no longer maintained
- infoq.com/news/2025/12/orpc-v1-typesafe: oRPC v1 is stable and production-ready
- peers oRPC: 938 commits in the last year; downloads grew about 36x in a year
GPT-6.2 Sol: 1.9, likely 0.9 to 2.9
Stable 3.52.1 still works for shared TypeScript REST contracts, and existing teams can keep running it on a compatible stack. The archive and end of security updates make it a poor choice for new work. oRPC is the stronger choice for the same job, with current releases, contract-first REST, and Zod 4 OpenAPI support.
- ts-rest.com/faq: Confirms the stable version and end of upstream maintenance.
- v1.orpc.dev/docs/openapi/openapi-specification: Documents OpenAPI generation from contracts and Zod 4 support.
- docs.openjii.org/developers/design-decisions/orpc-migration-adr: Shows oRPC replacing ts-rest while retaining the deployed REST API.
- peers oRPC latestPublishedAt: oRPC published on November 19, 2026.
Needed by many5.2
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Many TypeScript teams that build full-stack apps or REST APIs want typed contracts between client and server. ts-rest's REST-shaped take serves a large part of that group, including teams that need a public REST API that tRPC does not fit. It is framework-agnostic, but it needs TypeScript on both ends.
- github description: RPC-like client, contract and server for a pure REST API
- orpc.unnoq.com/docs/comparisons: Contract-first REST is its own niche next to tRPC's RPC style
GPT-6.2 Sol: 5.3, likely 4.1 to 6.5
A shared REST contract fits TypeScript web and mobile projects, especially when a team wants to add typing to existing endpoints. Several server adapters and standard HTTP make it usable across stacks. Its scope is limited to REST, and surveys give only indirect evidence of how many teams need this particular setup.
- ts-rest.com: Shared REST contracts, a fetch client, and multiple server integrations.
- docs.openjii.org/developers/design-decisions/orpc-migration-adr: A deployed NestJS API shared its contract with web and mobile clients.
- 2025.stateofjs.com/en-US/libraries/back-end-frameworks: Tracks typed API peer tRPC within a varied back-end ecosystem.
Helps a lot5.3
How well does it do the job for those who need it?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
The design was good: contracts, typed clients and adapters for several frameworks. But the stable version is stuck on Zod 3, and the Zod 4 release candidate is reported not to compile with stable Zod 4. oRPC now does the same contract-first REST job with built-in OpenAPI and more schema libraries, so it is clearly better for most people.
- news.ycombinator.com/item?id=47959078: A user reports the Zod 4 RC is broken (issue #852) and V4 was never merged
- orpc.unnoq.com/docs/comparisons: Rates ts-rest's OpenAPI support as partial; oRPC's is built in
- dev.to/vevarunsharma/architecting-for-speed-safety-how-we-2xd-dev-velocity-with-ts-rest-and-nextjs-api-and-56nb: A team reports that one contract file drove both its client and its server
GPT-6.2 Sol: 6.5, likely 5.4 to 7.6
Stable 3.52.1 gives clients status-specific response types and lets the same contract drive server handlers and OpenAPI output. The stable release uses Zod 3, while parts of the quickstart show schema support that only reached a release candidate. That makes examples easy to misapply, and editor performance evidence comes mainly from individual projects.
- raw.githubusercontent.com/ts-rest/ts-rest/v3.52.1/libs/ts-rest/core/package.json: The tagged stable release declares Zod 3 as its optional validation peer.
- ts-rest.com/quickstart: Shows typed routes and includes Valibot and ArkType examples.
- ts-rest.com/openapi: Documents generating OpenAPI from a ts-rest contract.
- ts-rest.com/faq: Confirms Standard Schema stayed in prerelease and describes autocomplete slowdown.
- reddit.com/r/typescript/comments/1dp18ax/fastest_rpc_library_language_service_performance: Users report acceptable editor performance in their own projects.
Holds up over time0.6
Will it still be a good choice in two years?
Claude Opus 5.5: 0.5, likely 0.0 to 1.5
The repository was archived on 26 October 2026, and the README says there will be no releases, fixes or security updates. There was one commit and no releases in the last year. Users report that issues went unanswered for months before the archive. Forks may appear, but none is an established successor.
- github.com/ts-rest/ts-rest: Archived; the README says ts-rest is no longer maintained
- github archived / releasesLastYear: archived true; 0 releases and 1 commit in the last year
- news.ycombinator.com/item?id=47959078: A user describes the project going dormant and the backlog of unanswered issues
GPT-6.2 Sol: 0.6, likely 0.0 to 1.5
The repository was archived in October 2026, and upstream ended support and cancelled v4. The last stable release was in March 2025, while oRPC and tRPC continue to ship releases. The maintenance decision makes the range narrow, though ordinary HTTP makes it easier to move an existing API.
- github.com/ts-rest/ts-rest: GitHub records the October 26, 2026 archive.
- ts-rest.com/faq: Upstream ended support and has no plans to release v4.
- github latestRelease and releasesLastYear: The last stable release was in March 2025, with zero releases in the past year.
- peers oRPC and tRPC latestPublishedAt: Both published in November 2026.
- docs.openjii.org/developers/design-decisions/orpc-migration-adr: A migration preserved deployed HTTP methods, paths, and response shapes.
Used widely3.9
How many use it, and is that growing?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
It has 4.0M downloads in 4 weeks, up from 0.87M a year ago. That is a ratio of about 4.7, a little above the 4.1 median. ecosyste.ms finds only 23 dependent repos, far fewer than tRPC (5,111) or TypeGraphQL (7,054). Now that the project is archived, the share of new projects choosing it should fall.
- npm downloadsLast4Weeks: 4,028,753, against 865,281 a year before
- dependents: 23 repos and 21 packages
- bluesky posts: Only 1 post in 24 months
- github stars: 3,338 stars
GPT-6.2 Sol: 3.8, likely 2.4 to 5.2
Four-week installs grew about 4.66 times year over year, modestly ahead of the 4.1 catalog baseline and behind both tRPC and oRPC. The 23 indexed dependent repositories and 21 packages, along with sparse public discussion, point to a smaller footprint than 4 million installs might suggest. Repeated installs and partial dependent coverage leave the number of projects choosing it uncertain.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, and medianDownloadsRatio: 4.03 million installs versus 865,281 a year earlier.
- dependents repos and packages: ecosyste.ms indexed 23 repositories and 21 npm packages.
- peers tRPC and oRPC npm downloads: Both had more installs and faster year-over-year growth.
- github stars, hackerNews stories, and bluesky posts: 3,338 repository stars, two matched Hacker News stories, and one Bluesky link.
Vouched for3.0
Who stands behind it being good?
Claude Opus 5.5: 2.5, likely 1.5 to 4.0
There are some write-ups from teams that used it, and oRPC names it as an inspiration. No large company or framework is known to back it today. The main recent independent source is a user writing about the project going dormant.
- dev.to/vevarunsharma/architecting-for-speed-safety-how-we-2xd-dev-velocity-with-ts-rest-and-nextjs-api-and-56nb: One team's positive production report
- news.ycombinator.com/item?id=47959078: A production user now weighing a fork against a migration
- hackerNews: Only 2 small stories
GPT-6.2 Sol: 3.4, likely 2.1 to 4.8
openJII used ts-rest across a deployed API and its web and mobile clients, then replaced it with oRPC. An independent developer credited the shared contract and OpenAPI support but chose oRPC for a new project. Current production endorsements and survey evidence specific to ts-rest are sparse, leaving a wide range.
- docs.openjii.org/developers/design-decisions/orpc-migration-adr: Firsthand record of deployment and replacement with oRPC.
- dev.to/ihssmaheel/why-i-switched-from-ts-rest-to-orpc-3igf: Firsthand comparison praises contract-first design and OpenAPI support.
- ts-rest.com/faq: Maintainers report historical production use at Onsi.
- 2025.stateofjs.com/en-US/libraries/back-end-frameworks: Provides no project-specific satisfaction result for ts-rest.
Safe5.2
How safe is it to depend on?
Claude Opus 5.5: 5.0, likely 3.5 to 6.5
The core package has zero dependencies, no known advisories and an MIT licence, so the attack surface is small. But the maintainers have said no security updates will come, so any future flaw will stay unfixed. There is no Scorecard data.
- npm dependencies: 0 runtime dependencies
- advisories: 0 advisories in total
- github.com/ts-rest/ts-rest: No security updates are planned
GPT-6.2 Sol: 5.4, likely 4.1 to 6.7
The MIT-licensed core declares zero regular dependencies, and the advisory snapshot lists zero known issues. GitHub Actions published the last stable GitHub release, but the available evidence leaves npm publisher access and Scorecard checks unverified. The security policy explicitly ends updates and active monitoring of reports, so future issues are likely to need downstream fixes.
- npm license and dependencies: MIT license and zero regular dependencies in the core package.
- advisories total and scorecard: Zero advisories in the collector snapshot and no Scorecard result.
- github.com/ts-rest/ts-rest/releases/tag/v3.52.1: GitHub Actions created the release and GitHub verified the tagged commit signature.
- github.com/ts-rest/ts-rest/security: Security updates and active monitoring of reports have ended.
Good
- A single contract file gives typed REST routes for the client and the server, using normal HTTP methods and paths.
- The core package has zero runtime dependencies and an MIT licence.
- It has adapters for Express, Nest, Next.js, Fastify and React Query, so it can be added to an existing REST API bit by bit.
- No security advisories have ever been published for it.
Bad
- The repository is archived, and the maintainers say there will be no more bug fixes or security updates.
- The stable release does not support Zod 4, and the 3.53 release candidate is reported not to compile with stable Zod 4.
- The planned V4 was never finished, so users must fork it or migrate.
- OpenAPI support is only partial compared with oRPC's built-in OpenAPI support.
The numbers
- npm downloads, 4 weeks
- 4M ×4.7 in a year
- GitHub stars
- 3.3k
- Commits, 12 months
- 1
- npm version
- 3.52.1 Mar 2025
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (ts-rest/ts-rest), npm (@ts-rest/core), 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