exposeme
v0.2.1
Published
Zero-config, P2P localhost tunnel with a 6-digit code UX.
Maintainers
Readme
exposeme
Zero-config, P2P localhost tunnel with a 6-digit code UX.
npx exposeme 3000You get a 6-digit code and a shareable link. The person you share it with opens
the link (or enters the code at exposeme.anishroy.com),
and your localhost:3000 streams to their browser over a direct WebRTC data
channel — no relay servers touching your traffic.
How it works
- A Cloudflare Worker mints short-lived 6-digit session codes.
- Firebase Realtime Database carries the WebRTC signaling handshake.
- The page itself is fetched peer-to-peer: a Service Worker in the viewer's browser forwards requests over the data channel to the CLI, which proxies them to your local server.
Configuration
None required. For self-hosted deployments, override via environment variables
(or a .env file): EXPOSEME_API_URL and FIREBASE_* / VITE_FIREBASE_*
web config. See the repository for
details.
