hsync-server

April 10, 2026 ยท View on GitHub

CI npm version License: ISC

Server component for hsync โ€” creates unlimited public web URLs for your local web servers, no matter where they're running.

Features

  • ๐ŸŒ Reverse proxy - Expose local servers with public URLs
  • ๐Ÿ”Œ WebSocket tunneling - Real-time bidirectional communication
  • ๐Ÿ” Authenticated & anonymous modes - Secure with shared secret or allow public tunnels
  • ๐Ÿ“ก TCP relaying - Tunnel arbitrary TCP connections between peers via WebRTC
  • ๐Ÿš€ One-click deploy - Deploy to Heroku, DigitalOcean, or self-host

Quick Start

npm install hsync-server
export HSYNC_SECRET="your-secret-here"
npm start

Server runs on port 3101 by default.

Deploy

Deploy to Heroku

Configuration

See docs/customization.md for full configuration options including:

  • Environment variables
  • Nginx reverse proxy setup
  • Docker deployment
  • Unauthenticated access settings

Client

Use with the hsync client:

npx hsync -s your-server.com -k your-secret -n myapp -p 3000

Your local port 3000 is now available at https://myapp.your-server.com

License

ISC