End-to-End Typesafe API Builder for Developers
oRPC is an open-source toolkit that helps developers build robust TypeScript functions and expose them to the internet using typesafe clients, OpenAPI standards, or even server actions. Our focus is on developer experience, performance, and reliability.
Build Robust, Typesafe Functions
Only the
.func
method is required. All other chain methods are optional.
With Middleware and the Procedure Builder, you can create reusable logic that ensures type safety and adds power and flexibility to your functions.
Use as a Regular Function
The Procedure Caller feature lets your procedures behave like regular TypeScript functions.
Expose It Online with a Fully Typed Client
Our Vanilla Client is fully typed and doesn't rely on generated code—thanks to TypeScript!
Seamless Integration with TanStack Query
We now support React Query Integration and Vue Query Integration.
Access via OpenAPI Standard
Features like Smart Conversion and Bracket Notation automatically
convert 1992
into a bigint
and seamlessly parse objects like user
.
Use as a Server Action
With Smart Conversion and Bracket Notation, inputs are automatically parsed into the correct types, ensuring smooth data handling. Learn more about Server Action.
Dependency Injection with Context
When you use Initial Context, every call to your procedure will require a valid ORPCContext
.
Contract-First Development
With oRPC's Contract First Development, you can easily separate the procedure's definition from its implementation.
Modern Adapters
oRPC works seamlessly in any environment that supports the Fetch API, including Node.js, Bun, Deno, Next.js, Nuxt.js, Cloudflare Workers, Supabase Functions, and more. We offer first-class serverless support with a dedicated router optimized for cold start performance. Learn more about oRPC's Modern Adapters.
Performance
We focus on both runtime performance and TypeScript checking performance to ensure a developer-first experience. Benchmarks are coming soon!
Reliability
We are committed to delivering robust software. Our aim is 100% test coverage to ensure oRPC's reliability at every level.