A simple tunneling service to expose your localhost to the internet.
npm install -g tunl.ccRequires Node.js 18 or newer.
Start a tunnel to your local server:
tunl <port> [subdomain]# Tunnel port 8080 with random subdomain
tunl 8080
# Tunnel port 3000 with custom subdomain
tunl 3000 myappYour local server will be accessible at https://<subdomain>.tunl.cc
To run your own tunnel server:
# Install dependencies
npm install
# Build
npm run build
# Start server
BASE_DOMAIN=tunl.cc PORT=80 npm startPORT- Server port (default: 3000)BASE_DOMAIN- Your domain (default: localhost:3000)HTTPS- Enable HTTPS (default: false)TUNNEL_SERVER- Tunnel server URL for client (default: wss://tunl.cc)
# Install dependencies
npm install
# Run server in development mode
npm run dev:server
# Run client in development mode
npm run dev:client
# Build TypeScript
npm run build
# Run tests
npm testFor production deployment, add a wildcard DNS record:
*.<your-domain>.cc → YOUR_SERVER_IP
MIT
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
For issues and questions, please visit GitHub Issues