hsync

hsync is a reverse-proxy client for node.js and browsers that connects to an hsync-server.
You can share your local webserver as a secure public URL, as well as tunnel whatever tcp/ip traffic you'd like between two hsync clients.
installation
npm
npm i -g hsync
or add to a webpage
<script src="https://cdn.jsdelivr.net/npm/hsync/dist/hsync.min.js"></script>
this gives you a hsync global variable.
run
hsync
run with npx
npx hsync
run inside of a webpage
const hsyncCon = await hsync.dynamicConnect();
configuration
by default hsync will connect to the default hsync.tech server and allow a connection for up to 4 hours.
However you can pass flags to the command line or configure env variables:
| flag | long flag | type | env variable | description |
|---|
| -p | -port | number | PORT | port for local webserver |
| -d | --dynamic-host | url | HSYNC_DYNAMIC_HOST | host to get a dynamic connection from |
| -s | --hsync-server | url | HSYNC_SERVER | hsync-server location ex: https://sub.mydomain.com |
| -hs | --hsync-secret |