awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
trpc avatar

trpc/trpc

0
View on GitHub↗
40,348 星标·1,624 分支·TypeScript·MIT·14 次浏览tRPC.io↗

Trpc

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 backend logic into hierarchical, composable structures. It incorporates a schema-driven validation layer that enforces strict data integrity on incoming request payloads before they reach core application logic. Furthermore, the system utilizes a runtime-agnostic adapter layer, ensuring that backend logic remains portable across traditional servers, serverless functions, and edge computing environments without requiring modifications.

Beyond its core communication capabilities, the project provides a middleware-based request pipeline for handling cross-cutting concerns like authentication and logging. It includes native integrations for common frontend state management and routing patterns, enabling developers to fetch remote data and manage application state with full type safety. The library also supports AI-assisted development by allowing developers to link its capabilities and documentation directly into AI agents for context-aware implementation guidance.

Features

  • Remote Procedure Calls - Allows developers to invoke server-side functions directly from client-side code as if they were local methods.
  • API Frameworks - Provides a complete framework for building end-to-end type-safe APIs.
  • Remote Procedure Execution - Calls server-side functions from a client as if they were local, hiding complex HTTP implementation details.
  • Type-Safe Communication - Synchronizes data structures between frontend and backend automatically without manual code generation.
  • API Routers - Organize backend logic into modular structures that group related procedures together for easier maintenance and better code reuse across the application.
  • Type-Safe Clients - Ensures frontend requests automatically match expected server data structures through shared type definitions.
  • Type System Tools - Uses the language compiler to extract and share backend function signatures with the frontend without requiring manual code generation.
  • Full-Stack Frameworks - Streamlines full-stack development by treating remote server functions as local methods.
  • Type-Safe API Clients - Creates a type-safe API client by importing server router definitions and configuring network links.
  • Input Validation Schemas - Enforces data integrity on incoming request payloads by applying defined validation rules before execution reaches the core procedure logic.
  • Mutation Procedures - Creates server-side operations that modify data or trigger side effects by processing incoming requests.
  • Next.js App Router Integrations - Connects server-side routing to prefetch data, stream responses, and handle loading states using standard component boundaries.
  • Query Procedures - Fetches data from the server using read-only operations that retrieve information without changing the underlying state.
  • Remote Data Fetching Hooks - Executes type-safe queries and mutations to integrate directly with standard data-fetching hooks.
  • Language Toolkits - End-to-end typesafe API framework.
  • Data Integrity Layers - Enforces strict input rules on incoming request payloads before they reach core application logic.
  • Input Validation - Enforces data integrity by checking incoming request payloads against defined rules before processing.
  • Schema Validation - Enforces strict data integrity on incoming request payloads to ensure valid information reaches core logic.
  • Router Architectures - Organizes API endpoints into hierarchical, nested structures that allow for granular control and reusable logic.
  • State Management Providers - Creates a type-safe provider to manage API state and caching for complex full-stack application architectures.
  • Serverless Adapters - Enables backend logic to run portably across traditional servers, serverless functions, and edge environments.
  • Runtime Environments - Provides a compatibility interface allowing backend logic to execute across diverse runtime environments.
  • Middleware Pipelines - Processes incoming requests through a chain of composable functions that handle authentication, logging, and data transformation.
  • Deployment Adapters - Decouples core application logic from specific network environments to enable deployment across traditional servers, serverless functions, and edge runtimes.
  • API Gateways - Connects router logic to web servers to make functionality accessible over standard network protocols.
  • Modular Architectures - Uses a hierarchical organization pattern to group related API endpoints for improved maintenance.
  • Next.js Pages Router Integrations - Connects server-side rendering and static site generation to an application by wrapping components with necessary providers.

Star 历史

trpc/trpc 的 Star 历史图表trpc/trpc 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Trpc 的开源替代方案

相似的开源项目,按与 Trpc 的功能重合度排序。
  • middleapi/orpcmiddleapi 的头像

    middleapi/orpc

    4,862在 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
    在 GitHub 上查看↗4,862
  • apache/brpcapache 的头像

    apache/brpc

    17,545在 GitHub 上查看↗

    brpc is a high-performance C++ RPC framework and network programming library designed for building distributed systems. It functions as a multi-protocol RPC server capable of hosting and detecting multiple communication protocols, including gRPC, Thrift, HTTP, Redis, and Memcached, on a single TCP port. The project distinguishes itself through high-throughput data transport and memory efficiency, utilizing RDMA-based transport to bypass the kernel TCP stack and zero-copy memory management to eliminate data duplication. It also implements the Raft algorithm for consensus-based state replicatio

    C++rpc
    在 GitHub 上查看↗17,545
  • connectrpc/connect-goconnectrpc 的头像

    connectrpc/connect-go

    3,963在 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
    在 GitHub 上查看↗3,963
  • open62541/open62541open62541 的头像

    open62541/open62541

    3,033在 GitHub 上查看↗

    open62541 is an open-source implementation of the OPC Unified Architecture standard, providing a complete stack for industrial automation and data exchange. It functions as both an OPC UA server and client, enabling the creation of an object-oriented address space to model physical industrial assets and their relationships. The project is designed for versatility across diverse hardware, offering a C99 library that can be deployed to both cloud servers and resource-constrained embedded environments. It distinguishes itself through a pluggable network layer and interface-based security backend

    Ccclientiec-62541
    在 GitHub 上查看↗3,033
查看 Trpc 的所有 30 个替代方案→

常见问题解答

trpc/trpc 是做什么的?

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…

trpc/trpc 的主要功能有哪些?

trpc/trpc 的主要功能包括:Remote Procedure Calls, API Frameworks, Remote Procedure Execution, Type-Safe Communication, API Routers, Type-Safe Clients, Type System Tools, Full-Stack Frameworks。

trpc/trpc 有哪些开源替代品?

trpc/trpc 的开源替代品包括: middleapi/orpc — orpc is a contract-first API development framework for TypeScript that starts with a shared contract definition and… apache/brpc — brpc is a high-performance C++ RPC framework and network programming library designed for building distributed… connectrpc/connect-go — Connect-go is a library for building type-safe remote procedure call services that are wire-compatible with gRPC and… open62541/open62541 — open62541 is an open-source implementation of the OPC Unified Architecture standard, providing a complete stack for… tanstack/virtual. google/tarpc — tarpc is a remote procedure call framework for Rust that generates server traits and client stubs for network…