RPC-like client, contract, and server implementation for a pure REST API
ts-rest provides a straightforward method for defining an API contract that can be utilized and executed by your application, ensuring end-to-end type safety without the need for complicated code generation.
To install ts-rest, follow these steps:
npm install ts-rest
import tsRest from 'ts-rest';
ts-rest streamlines the process of defining an API contract that can be easily consumed and implemented within your application, ensuring complete type safety without the need for extensive code generation. Its additional features, such as Zod support and OpenAPI integration, make it a versatile tool for developers looking to optimize their development process.