Quick Start
Get started with oRPC
Introduction
oRPC is a powerful combination of RPC and OpenAPI, offering an exceptional developer experience powered by TypeScript. It's designed to be simple and straightforward to use.
The oRPC ecosystem primarily consists of:
Server
The foundation where you implement your business logic, equipped with numerous utilities for enhanced developer experience.
Client
The interface for communicating with the oRPC server, featuring a fully typed client for seamless integration.
Contract
Enables painless contract-first development approach, ensuring consistent API design.
OpenAPI
Effortlessly publish your API under OpenAPI specification, maintaining industry standards.
Installation
This guide covers the essential server
and client
components. For additional information, see the Contract Guide and OpenAPI Guide.
Define Your First Router
In oRPC middleware is very useful and fully typed you can find more info here
Start Your Server
This example uses @whatwg-node/server to create a Node server with Fetch API.
Start the server and visit http://localhost:3000/api/getting?name=yourname to see the result.
Client Usage
Use the fully typed client in any environment:
That's all you need to get started with oRPC!