Typesafe API's Made Simple 🪄
End-to-End Typesafe API's made easy in a toolkit that helps developers build robust TypeScript API's with a focus on developer experience, reliability.
Build Robust, Typesafe Functions
Only the
.handler
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 Client feature lets your procedures behave like regular TypeScript functions.
Expose It In Your Frontend 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, Vue Query Integration, and Pinia Colada 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.