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-14
More in Developer tools and infrastructure
Midscene is a vision-based GUI agent and testing framework for end-to-end tests of web, mobile, and desktop apps. Describe interface actions and expected results in natural language, then use it to interact with screens and verify what users see.
Forked 2026-10-13Last synced 2026-10-14License: MITDeveloper tools and infrastructureGitHub
xtool builds, signs, and deploys iOS apps from SwiftPM on Linux, Windows, and macOS. It helps developers work on iOS apps without relying only on Xcode.
Forked 2026-10-12Last synced 2026-10-14License: MITDeveloper tools and infrastructureGitHub
A daily monitor for emerging AI model, product, tool, and repo names, helping SEO and content teams spot new search opportunities before keyword tools do.
Forked 2026-10-12Last synced 2026-10-14License: MITDeveloper tools and infrastructureGitHub
iPhone Use lets Codex control a real iPhone over USB through WebDriverAgent for app navigation, page reading, gestures, and text entry. It automates phone tasks and shows a live screen preview.
Forked 2026-10-11Last synced 2026-10-14License: MITDeveloper tools and infrastructureGitHub