Skip to main content
makeEffectORPC creates an Effect-aware oRPC builder.
import.ts
import { makeEffectORPC } from "effect-orpc";

With a ManagedRuntime

managed-runtime.ts
const runtime = ManagedRuntime.make(AppLive);

const effectProcedure = makeEffectORPC(runtime);

await runtime.dispose();
Use this when the application owns runtime acquisition and shutdown.

With an existing builder

existing-builder.ts
const authedOs = os.$context<{ userId: string }>();

const effectAuthedOs = makeEffectORPC(authedOs).provide(AppLive);
Use this when you already have oRPC builder configuration and want to add Effect support.

With defaults

default.ts
const effectProcedure = makeEffectORPC().provide(AppLive);
This is equivalent in spirit to using eos.

See also

Last modified on June 15, 2026