middleapi / orpc
Typesafe APIs Made Simple πͺ
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing middleapi/orpc in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler viewTypesafe APIs Made Simple πͺ **oRPC is a powerful combination of RPC and OpenAPI**, makes it easy to build APIs that are end-to-end type-safe and adhere to OpenAPI standards --- Highlights β’ **π End-to-End Type Safety**: Ensure type-safe inputs, outputs, and errors from client to server. β’ **π First-Class OpenAPI**: Built-in support that fully adheres to the OpenAPI standard. β’ **π Contract-First Development**: Optionally define your API contract before implementation. β’ **π First-Class OpenTelemetry**: Seamlessly integrate with OpenTelemetry for observability. β’ **βοΈ Framework Integrations**: Seamlessly integrate with TanStack Query (React, Vue, Solid, Svelte, Angular), SWR, Pinia Colada, and more. β’ **π Server Actions**: Fully compatible with React Server Actions on Next.js, TanStack Start, and other platforms. β’ **π Standard Schema Support**: Works out of the box with Zod, Valibot, ArkType, and other schema validators. β’ **ποΈ Native Types**: Supports native types like Date, File, Blob, BigInt, URL, and more. β’ **β±οΈ Lazy Router**: Enhance cold start times with our lazy routing feature. β’ **π‘ SSE & Streaming**: Enjoy full type-safe support for SSE and streaming. β’ **π Multi-Runtime Support**: Fast and lightweight on Cloudflare, Deno, Bun, Node.js, and beyond. β’ **π Extendability**: Easily extend functionality with plugins, middleware, and interceptors. Documentation You can find the full documentation here. Packages β’ @orpc/contract: Build your API contract. β’ @orpc/server: Build your API or implement API contract. β’ @orpc/client: Consume your API on the client with type-safety. β’ @orpc/openapi: Generate OpenAPI specs and handle OpenAPI requests. β’ @orpc/otel: OpenTelemetry integration for observability. β’ @orpc/nest: Deeply integrate oRPC with NestJS. β’ @orpc/react: Utilities for integrating oRPC with React and React Server Actions. β’ @orpc/tanstack-query: TanStack Query integration. β’ @orpc/experimental-react-swr: SWR integration. β’ @orpc/vue-colada: Integration with Pinia Colada. β’ @orpc/hey-api: Hey API integration. β’ @orpc/zod: More schemas that Zod doesn't support yet. β’ @orpc/valibot: OpenAPI spec generation from Valibot. β’ @orpc/arktype: OpenAPI spec generation from ArkType. Overview This is a quick overview of how to use oRPC. For more details, please refer to the documentation. β’ **Define your router:** β’ **Create your server:** β’ **Create your client:** β’ **Consume your API:** β’ **Generate OpenAPI Spec:** Sponsors If you find oRPC valuable and would like to support its development, you can do so here: GitHub Sponsors. π Platinum Sponsor ScreenshotOne.com π₯ Gold Sponsor Zuplo π₯ Silver Sponsor ζδΈγγ Valerii Petryniak christ12938 Generous Sponsors LN Markets Sponsors Reece McDonald Sefa Eyeoglu γγγγγ¨γΌγ«γ nk supastarter Dexter Miguel herrfugbaum Ryota Murakami David Cramer happyboy Valerii Strilets Kyle Mistele Andrew Peters Ryan Vogel Peter Adam Chen, Zhi-Yuan Ryan Soderberg Backers David Walsh Robbe Vaes Aidan Sunbury soonoo Kevin Porten Denis Christopher Kapic Tom Ballinger Sam Titoine Igor Makowski Anees Iqbal Alex Past Sponsors <img src="https://avatars.githubusercontent.com/u/196539378?u=d38374588d219b6748b16406982f _...truncated for preview_