Skip to main content

Disposable public file links directly from your machine

Project description

Rift

Disposable public file links directly from your machine.

Rift starts a temporary server, prints a share link, and shuts down after the first successful download.

This project is heavily inspired from Magic Wormhole which I'm a massive fan of. It makes P2P file sharing stupidly simple, and its UX was a revelation for me. I built Magic Rift because there were times when asking someone to install an app or package was too much to ask and I wished I could just share a link to a file on my machine without having to upload it somewhere first.

Install

pipx is recommended for Python tool installation:

pipx install magic-rift

or if you prefer uv, you can install with:

uv tool install magic-rift

For easier and more reliable sharing, install cloudflared (if not already installed): https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/

Quick Start

Share a file:

rift share /path/to/file.pdf

Rift prints a disposable link like:

https://PUBLIC_IP:PORT/4-crystal-salmon

After one successful download, the server exits and the link stops working.

Stop manually anytime with Ctrl+C.

How Connectivity Works

Rift tries methods in this order:

  1. cloudflared (if installed) - Fast and reliable Cloudflare tunnel
  2. pinggy.io (SSH tunnel) - Fastest SSH tunnel, 60-minute session limit
  3. natpmp - Router port forwarding
  4. upnp - Router port forwarding

If automatic forwarding/tunneling fails, Rift exits and does not print a public link.

For most users, installing cloudflared gives the smoothest setup. Alternatively, pinggy.io offers excellent performance without any installation (uses built-in SSH, but has a 60-minute timeout on free tier).

Security Notes

  • Links are one-time and include a random secret path.
  • Files are served directly from your machine.
  • HTTPS may use a self-signed cert by default, which can show browser warnings.
  • If cert setup is unavailable, Rift can fall back to HTTP.
  • No built-in authentication. Encrypt sensitive files before sharing.

Configuration Path

Rift stores config at:

~/.config/rift/config.json

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

magic_rift-0.1.6.tar.gz (46.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

magic_rift-0.1.6-py3-none-any.whl (44.6 kB view details)

Uploaded Python 3

File details

Details for the file magic_rift-0.1.6.tar.gz.

File metadata

  • Download URL: magic_rift-0.1.6.tar.gz
  • Upload date:
  • Size: 46.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for magic_rift-0.1.6.tar.gz
Algorithm Hash digest
SHA256 e6f367619d5d038154d23a5a4b4d23c3d848528aacae3d770f07d9cb3b8fa812
MD5 a08553dd0c1baffd6ed044f8f26a3d2d
BLAKE2b-256 10d5c35002e70b9bb17abce0265d5cbccba44ec241b28b108cb782aa900e4129

See more details on using hashes here.

File details

Details for the file magic_rift-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: magic_rift-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 44.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for magic_rift-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4a45662351b26fac77495d32db2bf1e5e0cfaf26a6bcbc2fd855374c1128da13
MD5 b74bef8f7de778f97a307f846755725f
BLAKE2b-256 66b57aa8be8d581e3095fd5737ea1adeacf261960aa7bc73cf4be71a7a3cbd07

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page