// use case

Expose your Bun server publicly

Bun's native Bun.serve() and the Elysia / Hono frameworks running on it all bind to 127.0.0.1. lrok adds the public HTTPS layer without slowing down your single-binary workflow.
  1. Run Bun

    $ bun run server.ts
  2. Tunnel

    $ lrok http 3000
  3. Wire trust-proxy if your framework needs it

    Hono: c.req.header("x-forwarded-for") gives you the real client IP. Elysia: similar pattern. Bun.serve() exposes raw headers — read them directly.

// why lrok for this

Bun's strength is cold-start speed. lrok adds <50ms RTT in the EU; you keep the iteration loop tight and gain real HTTPS for free.

Related workflows