Magic Links (share localhost)
Run npx depup-share share to share localhost through a temporary HTTPS link, no deploy needed.
Quick summary
Magic Links create a tunnel from your computer to the internet. Run your project as usual, type npx depup-share share in another terminal, and you get an HTTPS link to send to anyone. The link dies when you press Ctrl+C, or automatically after 2 hours.
Good for: Developers who want to show off work that's still running on localhost.
What you can do
- One command: npx depup-share share, or npx depup-share share 8000 for a specific port.
- --name sets a prefix for the link name and --ttl sets how long it stays active, in minutes.
- A temporary HTTPS link; by default it shuts off automatically after 2 hours (8 hours max).
- Visitors see a warning page once before continuing to your site.
How to use it
- Run the project on your computer, for example on localhost:8000.
- In another terminal, type npx depup-share share.
- Copy the HTTPS link that appears and send it to anyone.
- Press Ctrl+C when you're done; the link dies immediately.
Limits and things to know
- The link only lives while your computer is on and the share command is still running.
- WebSocket isn't supported yet (live reload or realtime chat).
- File uploads are limited to about 600 KB.
- Anyone with the link can open your website; don't share projects that contain secret data.
Frequently asked questions
- How do I share localhost without deploying?
- Run your project, then in another terminal type npx depup-share share. You get a temporary HTTPS link you can send to a lecturer or client.
- Is depup-share the same as the depup npm package for updating dependencies?
- No. Depup here is the web service at depup.cloud, and its official CLI is called depup-share.