# middleapi/orpc

Typesafe APIs Made Simple 🪄

Repository: https://github.com/middleapi/orpc
Canonical: https://ross.abutalabs.com/products/orpc
Homepage: https://orpc.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: api, bunjs, cloudflare-worker, contract-first, denojs, next-js, nodejs, openapi, pinia-vuejs, react, rpc-api, solidjs, svelte, tanstack, typesafe, typescript, vue
Last push: 2026-08-26T14:08:11+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 84, longevity 50
- inputs: {"age_days": 706, "days_push": 7, "days_rel": 25, "gap_med": 1, "n_releases_24m": 202}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5510, forks 164 (observed 2026-08-28T04:09:21.787662+00:00)

## What it is
oRPC is a TypeScript framework for building end-to-end typesafe APIs without code generation, combining RPC-style typed clients with first-class OpenAPI support. It supports contract-first design, typed errors, streaming, and integrations with Next.js, TanStack Query, NestJS, and multiple runtimes including Node.js, Bun, Deno, and Cloudflare Workers.

## Use cases
- build typesafe APIs in TypeScript without codegen
- generate OpenAPI spec from TypeScript API definitions
- replace tRPC with OpenAPI-compatible RPC framework
- share API types between server and client
- add typed errors and streaming to API endpoints
- deploy typesafe APIs to Cloudflare Workers or AWS Lambda
- integrate TanStack Query with a typesafe backend

## When to choose
- you want end-to-end type safety plus OpenAPI documentation from one definition
- you need contract-first API development or typed errors and binary/streaming support
- you target multiple runtimes (Node, Bun, Deno, Cloudflare, Lambda) with one API layer

## When to avoid
- you need a non-TypeScript stack or language-agnostic clients
- you want a full general-purpose web framework rather than an API layer
- you depend on v1 wire-format compatibility during the v2 beta transition

## Facets
- artifact type: framework
- maturity: active
- function: api-framework, rpc, middleware, rate-limiting, websocket, serialization, form-handling
- domain: web-development, backend, frontend, apis, developer-tools
- platform: bun, cloud, serverless, cross-platform
- tags: openapi, contract-first, end-to-end-typesafety, trpc-alternative, tanstack-query, nextjs, schema-validation, zod, server-sent-events, no-codegen, nodejs, typescript, deno

## Member repositories
- middleapi/orpc (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:21.787662+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:56:15.626402+00:00, confidence not recorded.
  - readme: https://github.com/middleapi/orpc (fetched 2026-08-28T04:09:21.787662+00:00, sha 3c74034d40c7)
  - homepage: https://orpc.dev (fetched 2026-08-29T08:51:39.424243+00:00, sha 01afa77e9f91)
  - site_page: https://orpc.dev/docs/getting-started (fetched 2026-08-29T08:51:39.429321+00:00, sha b66e5d1f1dd6)
  - site_page: https://orpc.dev/docs/comparison (fetched 2026-08-29T08:51:39.431648+00:00, sha 0a3f5bf09f4a)
  - site_page: https://orpc.dev/docs/migrations/from-v1 (fetched 2026-08-29T08:51:39.433533+00:00, sha fca0bb701133)
  - site_page: https://orpc.dev/docs/playgrounds (fetched 2026-08-29T08:51:39.436077+00:00, sha 10cc81edc035)
  - site_page: https://orpc.dev/docs/adapters/node-http (fetched 2026-08-29T08:51:39.437774+00:00, sha 338abd79a1c2)
  - site_page: https://orpc.dev/docs/adapters/fetch-api (fetched 2026-08-29T08:51:39.439395+00:00, sha 20450a74a4fd)
  - site_page: https://orpc.dev/docs/adapters/aws-lambda (fetched 2026-08-29T08:51:39.441089+00:00, sha b6a52657c2ce)
  - site_page: https://v1.orpc.dev (fetched 2026-08-29T08:51:39.427304+00:00, sha 125f0ec3b8c5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
