@sifxprime/kshare
v1.0.3
Published
Turn any localhost port into a public HTTPS link — KShare by KODELYTH
Maintainers
Readme
KShare
by KODELYTH
Turn any localhost port into a public HTTPS link — in one command.
No config, no cloud account, no port forwarding. Just run it.
Install
# Install globally
npm install -g @sifxprime/kshare
# Or run without installing
npx @sifxprime/kshare --port 3000The binary is always called
kshare. After a global install, runkshare --port 3000.
Works on macOS, Linux, and Windows. Node 18+ required.
Quick start
kshare --port 3000Anyone on the internet can now open your app at that HTTPS link.
How it works
KShare opens one outbound WebSocket to the tunnel server. No inbound ports, no firewall rules, no cloud account. When someone hits your public URL, the request travels back through that WebSocket to your local server.
Usage
# Share any port
kshare --port 3000
kshare --port 5173
kshare --port 8080
# Short form — no flag needed
kshare 3000
# Password-protect the link
kshare --port 3000 --password mysecret
# Show QR code in terminal (great for mobile testing)
kshare --port 3000 --qr
# Point at your own self-hosted server
kshare --port 3000 --server wss://api.yourdomain.com
# View active tunnels on this machine
kshare status
# Stop tunnels
kshare stopLocal dashboard
While a tunnel is running, open http://localhost:4040 to see:
- Live request log with method, path, and timestamp
- Public URL, local port, and request count
- Expiry countdown with visual progress bar
- No browser extension required
Environment variables
| Variable | Default | Description |
|---|---|---|
| KSHARE_SERVER | wss://api.kodelyth.net | WebSocket server URL (overridden by --server flag) |
| KSHARE_PASSWORD | — | Default password (overridden by --password flag) |
Works with everything
| Framework | Command |
|-----------|---------|
| React / CRA | kshare 3000 |
| Vite / Vue | kshare 5173 |
| Next.js | kshare 3000 |
| Express / Node | kshare 3000 |
| Django | kshare 8000 |
| Flask | kshare 5000 |
| Laravel | kshare 8000 |
| Rails | kshare 3000 |
| FastAPI | kshare 8000 |
| Spring Boot | kshare 8080 |
Self-host
KShare works two ways:
Managed — connect to KODELYTH's server, zero setup:
kshare --port 3000
# → https://ab12x.kodelyth.netSelf-hosted — deploy on your own VPS, your domain:
git clone https://github.com/sifxprime/kshare.git
cd kshare/packages/server
cp .env.example .env # set BASE_DOMAIN and REDIS_URL
pnpm install && pnpm start
# Then point the CLI at your server:
kshare --port 3000 --server wss://api.yourdomain.com
# → https://ab12x.yourdomain.comSelf-hosted instances must display KODELYTH branding — the logo and "KShare by KODELYTH" appear on the homepage and error pages by default and should not be removed.
Full setup guide: docs/vps-setup.md
DNS and SSL guide: docs/dns-setup.md
Security
- One outbound WebSocket — no inbound ports opened
- No code injected into your app
- URL rewriting on raw text only — no DOM manipulation
- Tunnels auto-expire after 24 hours
- Password protection available
- Self-host for full traffic control
SECURITY.md — vulnerability disclosure policy.
Links
- GitHub: github.com/sifxprime/kshare
- Homepage: kodelyth.net
- Issues: github.com/sifxprime/kshare/issues
MIT — KODELYTH
