@kushalshah0/expoz
v1.1.0
Published
Expose localhost to the internet instantly
Maintainers
Readme
expoz
Expose localhost to the internet instantly.
Install
npm install -g @kushalshah0/expozUsage
# expose port 3000
expoz 3000
# tune reconnect timing
expoz 3000 --reconnect-delay 5000 --max-reconnect-delay 30000
# you'll be prompted to enter a tunnel ID
# Enter tunnel ID (leave blank for random): myapp
# Exposed at: https://expoz.onrender.com/t/myappThe CLI prints connection details and request diagnostics by default, including request method, path, response status, and elapsed time. Query strings, headers, and bodies are not logged.
Programmatic
import { createTunnel } from '@kushalshah0/expoz'
createTunnel({ port: 3000, tunnelId: 'myapp' })Self-host
Set your own server:
EXPOZ_SERVER=wss://your-server.com expoz 3000Development
npm install
npm run build
npm testThe package is written in TypeScript and publishes the compiled dist directory.
