effect-orpc/node entrypoint installs a Node AsyncLocalStorage bridge for Effect FiberRefs.
side-effect-import.ts
withFiberContext
import.ts
withFiberContext(fn) captures the current Effect fiber refs and runs an async callback inside the Node bridge.
with-fiber-context.ts
When to import
| Need | Import |
|---|---|
Passive bridge across split effect-orpc runtime boundaries | import "effect-orpc/node" |
| Capture outer Effect request context before calling framework continuation | import { withFiberContext } from "effect-orpc/node" |