Back
Join now
About

Popular Tags

  • open-source
  • react
  • typescript
  • alternative
  • ai
  • composable
  • tailwind-css
  • components
  • tailwind-components
  • react-native

Top Sources

  • github.com
  • 21st.dev
  • activepieces.com
  • alchemy.run
  • altsendme.com
  • anthropic.com
  • better-auth-ui.com
  • better-hub.com
  • better-i18n.com
  • better-t-stack.dev

Browse by Type

  • Tools
  • Code
bookmrks.io - Discovery, refined.
github.com
Website preview

RPC-like Client and Server Helpers for REST API

ts-rest offers a simple way to define API contracts with type safety, enhancing the development experience for REST APIs.

Sselcuk
Summary

ts-rest is a library that provides an RPC-like client and server helpers for defining contracts in a pure REST API. It enables developers to achieve end-to-end type safety without the need for code generation, simplifying the process of API implementation and consumption.

Key features:

  • End-to-end type safety - Ensures type consistency across client and server.
  • RPC-like client side API - Facilitates a straightforward interface for API interactions.
  • Small Bundle Size - Optimized for performance with minimal footprint.
  • No Code Generation - Reduces complexity by avoiding additional code generation steps.
  • Zod support for runtime validation - Integrates with Zod for validating request and response schemas.
  • Full optional OpenAPI integration - Allows for comprehensive API documentation.

With ts-rest, developers can create a contract, implement it on their server, and consume it in their client applications seamlessly. This library is particularly useful for teams looking to incrementally adopt type-safe API practices.

Comments
No comments yet. Sign in to add the first comment!
Top
  • contract
    1
  • end-to-end-type-safety
    1
  • openapi-integration
    1
  • rest-api
    1
  • rpc-like-client
    1
  • rpc-like-interface
    1
  • server-implementation
    1
  • ts-rest
    1
  • type-safe-router
    1
  • zod-support
    1