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
·

End-to-End Type-Safe API Layers

Ranking updated Jun 30, 2026

For an end-to-end type-safe API layer for TypeScript, the strongest matches are middleapi/orpc (orpc is a contract-first TypeScript framework that enforces end-to-end), trpc/trpc (trpc is the definitive end-to-end type-safe RPC framework for) and protobufjs/protobuf.js (protobuf). Each is ranked by relevance to your query, popularity and recent activity.

Frameworks and libraries that provide full-stack type safety between TypeScript backends and frontend API clients.

End-to-End Type-Safe API Layers

Find the best repos with AI.We'll search the best matching repositories with AI.
  • 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

    orpc is a contract-first TypeScript framework that enforces end-to-end type safety by generating type-safe clients and servers from a shared contract, covering all requested features like automatic inference, RPC-style calls, runtime validation, framework agnosticism, and transport abstraction.

    TypeScriptProcedure DefinitionsType InferenceEnd-to-End Type Safety Frameworks
    View on GitHub↗4,862
  • trpc/trpctrpc avatar

    trpc/trpc

    40,348View on GitHub↗

    This project is an end-to-end type-safe API framework designed to synchronize data structures between frontend and backend codebases without the need for manual code generation. By leveraging TypeScript’s type inference, it allows developers to invoke server-side functions directly from the client as if they were local methods. This remote procedure call approach abstracts away the complexities of HTTP verbs and URL structures, streamlining the full-stack development workflow into a unified experience. The framework distinguishes itself through a modular router architecture that organizes bac

    trpc is the definitive end-to-end type-safe RPC framework for TypeScript, offering automatic type inference, RPC-style client calls, schema validation with runtime types, and framework-agnostic transport – exactly delivering the fully typed client-server communication layer you are looking for.

    TypeScriptType-Safe Clients
    View on GitHub↗40,348
  • protobufjs/protobuf.jsprotobufjs avatar

    protobufjs/protobuf.js

    10,558View on GitHub↗

    protobuf.js is a JavaScript and TypeScript library for encoding and decoding structured data using the Protocol Buffers binary format. It functions as a dynamic parser that can load and process schemas at runtime, a JSON transcoder for converting messages to human-readable formats, and a framework for building transport-agnostic remote procedure call clients. The project distinguishes itself by offering both dynamic message handling and a static code generator that produces TypeScript declarations and JavaScript modules to reduce runtime overhead. It also provides a reflection API for definin

    protobuf.js provides a TypeScript library for defining schemas, serializing messages, and building transport-agnostic RPC clients with generated type declarations, which fits the search for a type-safe communication layer—though it relies on explicit Protocol Buffers schemas rather than automatic inference from server code.

    JavaScriptBinary Serialization FormatsProtocol BuffersBinary Serialization
    View on GitHub↗10,558

Related searches

  • a lightweight HTTP client for TypeScript
  • a type-safe ORM for TypeScript applications
a runtime type validation library for TypeScript
  • a study set for TypeScript interviews
  • a TypeScript-first ORM for SQL databases
  • a schema validation library for TypeScript
  • a web framework for building APIs in Kotlin
  • a dependency injection library for TypeScript