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