|
| 1 | +<div align="center"> |
| 2 | + <image align="center" src="https://orpc.unnoq.com/logo.webp" width=280 alt="oRPC logo" /> |
| 3 | +</div> |
| 4 | + |
| 5 | +<h1></h1> |
| 6 | + |
| 7 | +<div align="center"> |
| 8 | + <a href="https://codecov.io/gh/unnoq/orpc"> |
| 9 | + <img alt="codecov" src="https://codecov.io/gh/unnoq/orpc/branch/main/graph/badge.svg"> |
| 10 | + </a> |
| 11 | + <a href="https://www.npmjs.com/package/@orpc/ai-sdk"> |
| 12 | + <img alt="weekly downloads" src="https://img.shields.io/npm/dw/%40orpc%2Fai-sdk?logo=npm" /> |
| 13 | + </a> |
| 14 | + <a href="https://github.com/unnoq/orpc/blob/main/LICENSE"> |
| 15 | + <img alt="MIT License" src="https://img.shields.io/github/license/unnoq/orpc?logo=open-source-initiative" /> |
| 16 | + </a> |
| 17 | + <a href="https://discord.gg/TXEbwRBvQn"> |
| 18 | + <img alt="Discord" src="https://img.shields.io/discord/1308966753044398161?color=7389D8&label&logo=discord&logoColor=ffffff" /> |
| 19 | + </a> |
| 20 | + <a href="https://deepwiki.com/unnoq/orpc"> |
| 21 | + <img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"> |
| 22 | + </a> |
| 23 | +</div> |
| 24 | + |
| 25 | +<h3 align="center">Typesafe APIs Made Simple 🪄</h3> |
| 26 | + |
| 27 | +**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 |
| 28 | + |
| 29 | +--- |
| 30 | + |
| 31 | +## Highlights |
| 32 | + |
| 33 | +- **🔗 End-to-End Type Safety**: Ensure type-safe inputs, outputs, and errors from client to server. |
| 34 | +- **📘 First-Class OpenAPI**: Built-in support that fully adheres to the OpenAPI standard. |
| 35 | +- **📝 Contract-First Development**: Optionally define your API contract before implementation. |
| 36 | +- **🔍 First-Class OpenTelemetry**: Seamlessly integrate with OpenTelemetry for observability. |
| 37 | +- **⚙️ Framework Integrations**: Seamlessly integrate with TanStack Query (React, Vue, Solid, Svelte, Angular), SWR, Pinia Colada, and more. |
| 38 | +- **🚀 Server Actions**: Fully compatible with React Server Actions on Next.js, TanStack Start, and other platforms. |
| 39 | +- **🔠 Standard Schema Support**: Works out of the box with Zod, Valibot, ArkType, and other schema validators. |
| 40 | +- **🗃️ Native Types**: Supports native types like Date, File, Blob, BigInt, URL, and more. |
| 41 | +- **⏱️ Lazy Router**: Enhance cold start times with our lazy routing feature. |
| 42 | +- **📡 SSE & Streaming**: Enjoy full type-safe support for SSE and streaming. |
| 43 | +- **🌍 Multi-Runtime Support**: Fast and lightweight on Cloudflare, Deno, Bun, Node.js, and beyond. |
| 44 | +- **🔌 Extendability**: Easily extend functionality with plugins, middleware, and interceptors. |
| 45 | + |
| 46 | +## Documentation |
| 47 | + |
| 48 | +You can find the full documentation [here](https://orpc.unnoq.com). |
| 49 | + |
| 50 | +## Packages |
| 51 | + |
| 52 | +- [@orpc/contract](https://www.npmjs.com/package/@orpc/contract): Build your API contract. |
| 53 | +- [@orpc/server](https://www.npmjs.com/package/@orpc/server): Build your API or implement API contract. |
| 54 | +- [@orpc/client](https://www.npmjs.com/package/@orpc/client): Consume your API on the client with type-safety. |
| 55 | +- [@orpc/openapi](https://www.npmjs.com/package/@orpc/openapi): Generate OpenAPI specs and handle OpenAPI requests. |
| 56 | +- [@orpc/otel](https://www.npmjs.com/package/@orpc/otel): [OpenTelemetry](https://opentelemetry.io/) integration for observability. |
| 57 | +- [@orpc/nest](https://www.npmjs.com/package/@orpc/nest): Deeply integrate oRPC with [NestJS](https://nestjs.com/). |
| 58 | +- [@orpc/react](https://www.npmjs.com/package/@orpc/react): Utilities for integrating oRPC with React and React Server Actions. |
| 59 | +- [@orpc/tanstack-query](https://www.npmjs.com/package/@orpc/tanstack-query): [TanStack Query](https://tanstack.com/query/latest) integration. |
| 60 | +- [@orpc/experimental-react-swr](https://www.npmjs.com/package/@orpc/experimental-react-swr): [SWR](https://swr.vercel.app/) integration. |
| 61 | +- [@orpc/vue-colada](https://www.npmjs.com/package/@orpc/vue-colada): Integration with [Pinia Colada](https://pinia-colada.esm.dev/). |
| 62 | +- [@orpc/hey-api](https://www.npmjs.com/package/@orpc/hey-api): [Hey API](https://heyapi.dev/) integration. |
| 63 | +- [@orpc/zod](https://www.npmjs.com/package/@orpc/zod): More schemas that [Zod](https://zod.dev/) doesn't support yet. |
| 64 | +- [@orpc/valibot](https://www.npmjs.com/package/@orpc/valibot): OpenAPI spec generation from [Valibot](https://valibot.dev/). |
| 65 | +- [@orpc/arktype](https://www.npmjs.com/package/@orpc/arktype): OpenAPI spec generation from [ArkType](https://arktype.io/). |
| 66 | + |
| 67 | +## `@orpc/ai-sdk` |
| 68 | + |
| 69 | +The [AI SDK](https://ai-sdk.dev/) integration for oRPC. |
| 70 | + |
| 71 | +## Sponsors |
| 72 | + |
| 73 | +<p align="center"> |
| 74 | + <a href="https://cdn.jsdelivr.net/gh/unnoq/unnoq/sponsors.svg"> |
| 75 | + <img src='https://cdn.jsdelivr.net/gh/unnoq/unnoq/sponsors.svg'/> |
| 76 | + </a> |
| 77 | +</p> |
| 78 | + |
| 79 | +## License |
| 80 | + |
| 81 | +Distributed under the MIT License. See [LICENSE](https://github.com/unnoq/orpc/blob/main/LICENSE) for more information. |
0 commit comments