awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
ts-rest avatar

ts-rest/ts-rest

0
View on GitHub↗
3,262 stars·175 forks·TypeScript·mit·13 viewsts-rest.com↗

Ts Rest

ts-rest is a TypeScript toolkit for building type-safe APIs by defining a shared contract that connects client and server code. The core idea is to specify endpoints, methods, request and response shapes in a single contract, then use that contract to generate fully typed clients and enforce server implementations that match the contract at compile time.

The project provides a way to consume remote APIs through a client that infers request and response shapes from the shared contract, offering autocompletion and compile-time checks. On the server side, it enforces that handlers return correct status codes and response shapes as defined in the contract. Additionally, it includes runtime request validation against predefined schemas to catch mismatches before they reach business logic.

The documentation covers defining contracts, implementing servers, and consuming APIs with type safety, providing a complete workflow for end-to-end type safety in API development.

Features

  • API Contract Definitions - Defines a shared contract specifying endpoints, methods, request and response shapes to enforce type safety across client and server.
  • Contract-First Server Implementations - Implements server handlers that enforce a shared contract, ensuring correct status codes and response shapes at compile time.
  • Type-Safe API Clients - Provides a fully typed client that infers request and response shapes from a shared contract for autocompletion and compile-time checks.
  • Request Validation - Validates incoming request data against predefined schemas to catch mismatches before they reach business logic.

Star history

Star history chart for ts-rest/ts-restStar history chart for ts-rest/ts-rest

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Ts Rest

Similar open-source projects, ranked by how many features they share with Ts Rest.
  • middleapi/orpcmiddleapi avatar

    middleapi/orpc

    4,862View on GitHub↗

    orpc is a contract-first API development framework for TypeScript that starts with a shared contract definition and generates type-safe clients and servers from that single source of truth. It guarantees end-to-end type safety, meaning inputs, outputs, errors, and streaming data are all checked at compile time across the client–server boundary. What distinguishes orpc from typical RPC frameworks is its ability to export contracts as OpenAPI specifications, to optimize server-side rendering by calling API handlers directly inside the server process, and to support real‑time bidirectional commu

    TypeScriptapibunjscloudflare-worker
    View on GitHub↗4,862
  • connectrpc/connect-goconnectrpc avatar

    connectrpc/connect-go

    3,963View on GitHub↗

    Connect-go is a library for building type-safe remote procedure call services that are wire-compatible with gRPC and HTTP. It provides a Go implementation of Protocol Buffers for structured data exchange, enabling the creation of multi-protocol RPC servers and generated type-safe clients. The framework is distinguished by its polyglot protocol support, allowing a single server handler to serve requests using several different protocols simultaneously over HTTP. This includes the ability to toggle between different transport protocols for the same service and the use of pluggable content negot

    Go
    View on GitHub↗3,963
  • kubernetes-sigs/kubebuilderkubernetes-sigs avatar

    kubernetes-sigs/kubebuilder

    8,992View on GitHub↗

    Kubebuilder is a framework and set of scaffolding tools used to build Kubernetes APIs and controllers. It functions as an operator framework that provides generators for custom resource definitions, admission webhooks, and RBAC manifests to extend cluster functionality. The project distinguishes itself through marker-based code generation, which parses source code comments to automatically produce Kubernetes manifests and boilerplate logic. It employs a hub-and-spoke versioning model to translate data between multiple API versions and uses a three-way merge strategy to automate project migrat

    Gok8s-sig-api-machinery
    View on GitHub↗8,992
  • elysiajs/elysiaelysiajs avatar

    elysiajs/elysia

    18,531View on GitHub↗

    Elysia is a high-performance TypeScript web framework designed for building type-safe backend services. It provides a modular, plugin-based architecture that allows developers to compose server logic, middleware, and validation schemas into scalable application instances. By leveraging native web standards, the framework ensures portability across diverse JavaScript runtimes, including Node.js, Deno, and various edge computing environments. The framework distinguishes itself through its focus on end-to-end type safety, automatically synchronizing request and response definitions between the s

    TypeScriptbunframeworkhttp
    View on GitHub↗18,531
See all 30 alternatives to Ts Rest→

Frequently asked questions

What does ts-rest/ts-rest do?

ts-rest is a TypeScript toolkit for building type-safe APIs by defining a shared contract that connects client and server code. The core idea is to specify endpoints, methods, request and response shapes in a single contract, then use that contract to generate fully typed clients and enforce server implementations that match the contract at compile time.

What are the main features of ts-rest/ts-rest?

The main features of ts-rest/ts-rest are: API Contract Definitions, Contract-First Server Implementations, Type-Safe API Clients, Request Validation.

What are some open-source alternatives to ts-rest/ts-rest?

Open-source alternatives to ts-rest/ts-rest include: middleapi/orpc — orpc is a contract-first API development framework for TypeScript that starts with a shared contract definition and… connectrpc/connect-go — Connect-go is a library for building type-safe remote procedure call services that are wire-compatible with gRPC and… kubernetes-sigs/kubebuilder — Kubebuilder is a framework and set of scaffolding tools used to build Kubernetes APIs and controllers. It functions as… elysiajs/elysia — Elysia is a high-performance TypeScript web framework designed for building type-safe backend services. It provides a… moya/moya — Moya is a network abstraction layer for Swift that provides a structured framework for defining and executing REST API… stripe/stripe-node — This is a typed server-side library and payment gateway SDK for integrating Stripe into Node.js applications. It…