Back
Join now
About

Popular Tags

  • react
  • typescript
  • ui-components
  • shadcn-ui
  • tailwind
  • open-source-coding-agent
  • llm
  • ai-agents
  • open-source
  • react-components

Top Sources

  • github.com
  • clerk.com
  • 1771technologies.com
  • 21st.dev
  • abui.io
  • activepieces.com
  • ai-sdk.dev
  • alash3al.github.io
  • alchemy.run
  • altsendme.com

Browse by Type

  • Tools
  • Code
bookmrks.io - Discovery, refined.
Tags
  • 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
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
Tech Stack
PostgreSQLAzureAzure FunctionsDocusaurusCloudflareAWSAWS LambdaCloudflare WorkersGitHubTypeScriptESLintNode.jsJestJSXCSSVueNext.jsTailwind CSSJavaScriptFumaDocsLucide IconsPostHogReactZodBunFastifyOpenAPIExpressArkTypeSWCNestJSPrettierpnpmValibotdaisyUISolid.jsVitestVue.jsBabelTesting LibraryNXPrismaRollupViteWebpacknvmDockerGitHub Actions
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!