FindSoftware

ts-rest

TypeScript library that defines an API contract shared by client and server, with type-safe client and server helpers.

ts-rest is a TypeScript library that defines an API contract shared by client and server, with type-safe client and server helpers. It is installed from npm as @ts-rest/core, and its quickstart describes that package as the core, with a basic fetch-based client. The project’s FAQ compares it with tRPC. The same repository holds adapters for Express, Nest, Fastify, Next and React Query.

The homepage says the contracts can use Standard Schema validators, naming Zod, Valibot and ArkType, and that the library can generate OpenAPI documents.

Worth knowing

The project is no longer maintained, as its README and homepage state. Both say that forks are welcome, and the repository is archived.

Identity

Status
Discontinued12
Maintainer
Oliver Butler5
Maintained by
Individual1
First release
20226

Rendering and deploy

Install with
npm4

Releases

Current major version
37
Last release
2025-03-047

Adoption

GitHub stars
3,3392
npm downloads a week
994,2519
Contributors
808

Why these figures do not compare

Sources

  1. 2026-11-16: Status, Maintained by, Categories, License model
    github.com/ts-rest/ts-rest/blob/main/README.md
  2. 2026-11-16: Status, links, Written in, License, GitHub stars
    api.github.com/repos/ts-rest/ts-rest
  3. 2026-11-16: links
    ts-rest.com/
  4. 2026-11-16: links, Install with
    ts-rest.com/quickstart
  5. 2026-11-16: Maintainer
    github.com/ts-rest/ts-rest/blob/main/LICENCE
  6. 2026-11-16: First release
    api.github.com/repos/ts-rest/ts-rest/releases?per_page=100
  7. 2026-11-16: Current major version, Last release
    api.github.com/repos/ts-rest/ts-rest/releases/latest
  8. 2026-11-16: Contributors
    api.github.com/repos/ts-rest/ts-rest/contributors?per_page=1
  9. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/@ts-rest/core

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON