ts-rest
A TypeScript toolkit for defining a REST API contract once and getting a typed client and server from it. It works with frameworks like NestJS, Fastify and Next.js.
Share on XLicense: MIT
Overview
ts-rest is a TypeScript toolkit for defining a REST API contract once and using it on both client and server. The contract gives end-to-end type safety without code generation, and you can adopt it step by step in an existing app. It offers an RPC-like client, optional Zod validation, and optional OpenAPI output, and it works with frameworks such as NestJS, Fastify and Next.js.
Key features
- Shared API contract with end-to-end type safety
- RPC-like client side API
- No code generation and a small bundle size
- Zod support for runtime validation
- Optional OpenAPI integration
Best for
TypeScript teams that want typed REST endpoints shared between frontend and backend while keeping a plain REST API. It can be adopted incrementally.
- Upstream
- ts-rest/ts-rest
- Fork on GitHub
- Guo-astro/ts-rest
- Upstream stars
- 3.3k
- Category
- Developer tools and infrastructure
- Language
- TypeScript
- License
- MIT
- Forked
- 2023-04-24
- Sync status
- In syncLast synced 2026-10-11
More in Developer tools and infrastructure
Creates full-stack project scaffolds from compatible stack parts, reducing setup and integration work. Use the CLI, browser builder, or MCP server to generate a project.
Forked 2026-10-09Last synced 2026-10-11License: MITDeveloper tools and infrastructureGitHub
A Python SDK for adding local face detection, landmark extraction, and face comparison to applications on Windows and Linux, without sending images off-device.
Forked 2026-10-09Last synced 2026-10-11No license declaredDeveloper tools and infrastructureGitHub
Whole-disk file search for macOS that finds files by name quickly, handles typos, and searches indexed file contents. Best for local desktop search from the CLI or Rust crate.
Forked 2026-10-08Last synced 2026-10-11License: MITDeveloper tools and infrastructureGitHub
REA helps reverse engineers inspect apps, binaries, and runtime behavior with agent workflows. It is used to understand how a feature works, find evidence, and build a similar capability in a project.
Forked 2026-10-08Last synced 2026-10-11License: MITDeveloper tools and infrastructureGitHub