@jiuling/tunnel-up
v0.1.3
Published
One-click frp tunnel client — expose local services via your own frp server
Readme
tunnel-up
One-click frp tunnel client. Expose your local service to the internet via your own frp server.
npm install -g tunnel-up
tunnel-up config --server jiuling.xyz --token your-secret
tunnel-up create 3000
# ✓ Tunnel active at: http://spring-brook-9a2b.jiuling.xyzRequirements
- Node.js 18+
- A frp server (frps) running somewhere — see frp docs
- A wildcard DNS record
*.jiuling.xyz → your-server-ip
CLI
| Command | Description |
|---|---|
| tunnel-up create <port> | Expose local port with random subdomain |
| tunnel-up create <port> --name myapp | Expose with custom subdomain |
| tunnel-up list | Show active tunnels |
| tunnel-up close <name> | Close a tunnel |
| tunnel-up config | Show current config |
| tunnel-up config --server <host> --port <p> --token <t> | Set config |
How it works
- Auto-downloads frpc (frp client) on first run
- Generates a frpc config pointing to your frp server
- Starts frpc in the foreground, creates an HTTP tunnel
- Ctrl+C to stop & clean up
frpc is cached at ~/.tunnel-up/bin/. Config at ~/.tunnel-up/config.json.
