New:Microsoft Teams Notifications Are Now Available in Socket.Learn more β†’
Get Started

@orpc/shared

Package Overview
Dependencies
Maintainers
1
Versions
1130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orpc/shared

Internal utilities shared across oRPC packages

Source
npmnpm
Version
2.0.0-beta.35
Version published
Weekly downloads
785K
-36.2%
Maintainers
1
Weekly downloads
Β 
Created
Source

oRPC - Typesafe APIs Made Simple πŸͺ„

codecov weekly downloads CodSpeed MIT License Discord Ask DeepWiki

Documentation

You can read the documentation here.

Packages

Core

PackagePurposeDocs
@orpc/contractDefine API contract as the single source of truth.Procedure Contract, Contract Router, Implementation, Generate from OpenAPI
@orpc/serverBuild APIs or implement contracts.Procedure, Router, Middleware, Context, RPC Handler
@orpc/clientConsume APIs with end-to-end type safety.Client-Side Clients, Server-Side Clients, RPC Link, Error Handling
@orpc/openapiAdd OpenAPI compatibility to APIs.OpenAPI Handler, OpenAPI Link, Specification, Scalar

Schema validation

PackagePurposeDocs
@orpc/zodIntegrate with Zod.Zod
@orpc/valibotIntegrate with Valibot.Valibot
@orpc/arktypeIntegrate with ArkType.ArkType

Built-in features

PackagePurposeDocs
@orpc/publisherPub/Sub with memory, Redis, and Upstash adapters.Publisher
@orpc/ratelimitRate limiting with memory, Redis, and Upstash adapters.Rate Limit
@orpc/hibernationLeverage Hibernation APIs like Cloudflare's Hibernation WebSocket.Hibernation
@orpc/json-schemaSmart coercion for OpenAPI requests.Smart Coercion

Framework & ecosystem integrations

PackagePurposeDocs
@orpc/nextIntegrate with Next.js Server Functions.Next.js
@orpc/ai-sdkTurn contracts and procedures into AI SDK tools.AI SDK
@orpc/tanstack-queryIntegrate with TanStack Query.TanStack Query
@orpc/pinia-coladaIntegrate with Pinia Colada.Pinia Colada
@orpc/swrIntegrate with SWR.SWR
@orpc/experimental-mswMock procedures with Mock Service Worker.MSW
@orpc/experimental-effectIntegrate with Effect.Effect
@orpc/nestImplement your contract with NestJS.NestJS
@orpc/nodeNode.js plugins for static file serving and large uploads.Static File, Tmp File Upload, Batch Response Compression
@orpc/bunAdapters for Bun's Redis.Publisher, Rate Limit
@orpc/cloudflareAdapters for Cloudflare Workers.Publisher, Rate Limit, Traces
@orpc/trpcReuse existing tRPC routers within oRPC.tRPC

Observability

PackagePurposeDocs
@orpc/opentelemetryIntegrate with OpenTelemetry for distributed tracing.OpenTelemetry
@orpc/pinoIntegrate with Pino for logging.Pino
@orpc/evlogIntegrate with Evlog for logging.Evlog

Sponsors

Like what we build over at middleapi? You can help keep it going through GitHub Sponsors or Open Collective. Every bit helps! πŸš€

ScreenshotOne.comScreenshotOne.com
The screenshot API for developers
YuzuYuzu
We're hiring NYC based engineers
MisskeyHQMisskeyHQ
Decentralized microblogging SNS born on Earth

Organization Sponsors

LN Markets
LN Markets

Sponsors

Reece McDonald
Reece McDonald
あわわわとーにゅ
あわわわとーにゅ
nk
nk
supastarter
supastarter
Dexter Miguel
Dexter Miguel
herrfugbaum
herrfugbaum
Ryota Murakami
Ryota Murakami
David Cramer
David Cramer
Valerii Petryniak
Valerii Petryniak
Valerii Strilets
Valerii Strilets
Kyle Mistele
Kyle Mistele
christ12938
christ12938
Ryan Soderberg
Ryan Soderberg
shota
shota
Ellis Driscoll
Ellis Driscoll
Hoang Nguyen
Hoang Nguyen
Orestis Ioannou
Orestis Ioannou
Stefan Smiljkovic
Stefan Smiljkovic

Backers

David Walsh
David Walsh
IPv4Addr
IPv4Addr
Robbe Vaes
Robbe Vaes
Aidan Sunbury
Aidan Sunbury
soonoo
soonoo
Kevin Porten
Kevin Porten
Denis
Denis
Christopher Kapic
Christopher Kapic
Tom Ballinger
Tom Ballinger
Sam
Sam
Titoine
Titoine
Igor Makowski
Igor Makowski
hanayashiki
hanayashiki
Lev Dubinets
Lev Dubinets
Kelly Peilin Chan
Kelly Peilin Chan
Guy Ariely
Guy Ariely
PaulSenon
PaulSenon
Alex
Alex
Andrey Gubanov
Andrey Gubanov

With thanks to 36 past sponsors who helped get oRPC here.

References

oRPC is inspired by existing solutions that prioritize type safety and developer experience. Special acknowledgments to:

  • tRPC: For pioneering the concept of end-to-end type-safe RPC and influencing the development of type-safe APIs.
  • ts-rest: For its emphasis on contract-first development and OpenAPI integration, which have greatly inspired oRPC's feature set.

License

Distributed under the MIT License. See LICENSE for more information.

Keywords

orpc

FAQs

Package last updated on 09 Sep 2026

Related posts