Skip to main content
effect-orpc preserves oRPC route metadata methods. Use them when your router is served by an oRPC OpenAPI handler or when you generate OpenAPI documentation from your oRPC router.

Route a procedure

route.ts

Prefix a router

prefix.ts
The final route path is /api/users.

Tag procedures

tag.ts

Contract-first metadata

Contract-first APIs can also use route metadata in the contract definition.
contract-route.ts

Next step

Expose procedures directly with Callable and actionable procedures.
Last modified on June 15, 2026