Skip to main content
The repository includes a runnable Hono example in examples/hono. It demonstrates:
  • Hono request middleware
  • oRPC RPC and OpenAPI handlers
  • direct builder routes
  • contract-first routes
  • request context passed into handlers
  • request-scoped Effect services
  • traditional oRPC errors and tagged Effect errors
  • OpenTelemetry runtime setup
  • Node fiber context propagation with withFiberContext

Run it

Run the Hono example
cd examples/hono
bun install
bun start
The API is served on http://localhost:3000/api. The RPC endpoint is served on http://localhost:3000/rpc. OpenAPI docs are available at http://localhost:3000/docs.

Optional telemetry stack

Start telemetry dependencies
cd examples/hono
docker compose up

Where to look

FileWhat it shows
examples/hono/orpc/router.tsDirect builder and contract-first procedures.
examples/hono/runtime.tsManagedRuntime and OpenTelemetry setup.
examples/hono/app.tsHono mounting of oRPC handlers.
examples/hono/http.tsRequest context construction.
examples/hono/services/order.tsEffect service used by procedures.
Read Hono guide for the smaller integration recipe.
Last modified on June 15, 2026