0.1.24 • Published 1 month ago

@rubriclab/bunl v0.1.24

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

bunl

A Bun WebSocket re-write of LocalTunnel

Usage

To try it:

bun x bunl -p 3000 -d dev.rubric.me -s my-name

Development

To install dependencies:

bun i

To run the server:

bun dev:server

(Optional) to run a dummy process on localhost:3000:

bun demo

To run the client:

bun client -p 3000

With full args:

bun client --port 3000 --domain example.so --subdomain my-subdomain --open

Or in shortform:

bun client -p 3000 -d example.so -s my-subdomain -o

The options:

  • port / p the localhost port to expose eg. 3000
  • domain / d the hostname of the server Bunl is running on eg. example.so
  • subdomain / s the public URL to request eg. my-subdomain.example.so
  • open / o to auto-open your public URL in the browser

WIP Deployment

To build the client code:

bun run build

To deploy the server, for example on Fly:

fly launch && fly deploy

Making sure to set DOMAIN to your domain:

fly secrets set DOMAIN=example.so

Open to PRs!

0.1.24

1 month ago

0.0.22

1 month ago

0.0.23

1 month ago

0.0.24

1 month ago

0.0.20

1 month ago

0.0.21

1 month ago

0.0.14

1 month ago

0.0.15

1 month ago

0.0.16

1 month ago

0.0.17

1 month ago

0.0.18

1 month ago

0.0.19

1 month ago

0.0.11

1 month ago

0.0.12

1 month ago

0.0.13

1 month ago

0.0.10

2 months ago

0.0.9

2 months ago

0.0.8

2 months ago

0.0.7

2 months ago

0.0.6

2 months ago

0.0.5

2 months ago

0.0.4

2 months ago

0.0.3

2 months ago

0.0.2

2 months ago

0.0.1

2 months ago

0.0.0

2 months ago