Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

@rubriclab/bunl

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rubriclab/bunl

Expose localhost to the world

Source
npmnpm
Version
0.0.24
Version published
Weekly downloads
29
314.29%
Maintainers
3
Weekly downloads
 
Created
Source

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!

Keywords

local

FAQs

Package last updated on 04 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts