@rubriclab/bunl
v0.1.25
Published
Expose localhost to the world
Readme
bunl
A Bun WebSocket re-write of LocalTunnel
Usage
To try it:
bun x bunl -p 3000 -d dev.rubric.me -s my-nameDevelopment
To install dependencies:
bun iTo run the server:
bun dev:server(Optional) to run a dummy process on localhost:3000:
bun demoTo run the client:
bun client -p 3000With full args:
bun client --port 3000 --domain example.so --subdomain my-subdomain --openOr in shortform:
bun client -p 3000 -d example.so -s my-subdomain -oThe options:
port/pthe localhost port to expose eg. 3000domain/dthe hostname of the server Bunl is running on eg. example.sosubdomain/sthe public URL to request eg. my-subdomain.example.soopen/oto auto-open your public URL in the browser
[WIP] Deployment
To build the client code:
bun run buildTo deploy the server, for example on Fly:
fly launch && fly deployMaking sure to set DOMAIN to your domain:
fly secrets set DOMAIN=example.soOpen to PRs!
