Use case · API
Hono + oRPC procedures typed from router to client. Drizzle on Postgres. The four sub-systems a service-only backend needs are wired into the registry before your first commit.
Eight capabilities grouped by the buyer-side question they answer. Two halves: what the partner integration calls, and what keeps the service running in production.
import { os, ORPCError } from "@orpc/server"
import { z } from "zod"
import { listInvoices } from "@workspace/database"
export const listInvoicesProcedure = os
.input(z.object({ orgId: z.string() }))
.handler(async ({ input, context }) => {
if (!context.user.belongsTo(input.orgId)) {
throw new ORPCError("FORBIDDEN")
}
return listInvoices(input.orgId)
})The four sub-systems an on-call engineer names first. OpenAPI generation, the test harness, service tokens, audit log — all on the same typed contract.
import { generateOpenAPI } from "@orpc/openapi"
import { router } from "./router"
export const writeSpec = async (path: string) => {
const spec = await generateOpenAPI(router, {
info: { title: "Service API", version: "1.0.0" },
})
await Bun.write(path, JSON.stringify(spec, null, 2))
}Built with the stack senior engineers ship on.
Process
The router is the schema. Clients import the type, the server enforces it. No hand-written request/response DTOs.
Drizzle on Postgres by default. Swap providers without rewriting the API surface — the schema stays the same.
OpenAPI is generated from the router. Clients consume the contract, not the implementation. Versioned deployments sit alongside the code.
Built on this
Production-ready starter templates, each deployed at its own URL. Used as the reference set for what the registry can ship.
Explore
Related
Multi-tenant B2B SaaS with auth, billing, and a working dashboard on day one.
Read more
Related
Auth, sync, and push notifications for native apps, on the same backend.
Read more
Related
RAG, chat, and agents wired against the same contracts your app uses.
Read more
Two doors
Self-serve gives you the registry and the templates. Engagement gives you the team that built it. Pick the door that fits the timeline.