Elestia Open Source Ratings
1.7

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.

WebsiteGitHubnpm

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

  1. 8.2tRPC
  2. 8.0GraphQL Yoga
  3. 7.9Pothos
  4. 7.8oRPC
  5. 7.6GraphQL.js
  6. 7.5Connect
  7. 7.2Apollo Server
  8. 6.9Mercurius
  9. 5.0TypeGraphQL
  10. 1.7ts-rest
Compare all 10 on six scores