r/opensource • u/SatisfactionFar3936 • 2h ago
Promotional MeghXL: a self-hosted way to transfer files between devices on the same Wi-Fi (no cloud, no app on the phone)
Hey everyone,
I've been working on this in my free time for a while and finally think it's good enough to share here.
The problem was simple. In my home lab, I have Windows, Macs, Linux boxes, Android phones and iPhones, and transferring a file from one to another was always annoying. AirDrop only works between Apple devices, WeTransfer means uploading to someone else's server just to send a file across the room, and half the time people end up emailing things to themselves.
So I built MeghXL. You run it on one computer and it becomes a little hub on your local network. Anyone on the same Wi-Fi opens a link (or scans a QR code) in their browser and can send or receive files. The other devices don't need an app or an account, and nothing leaves your network.
Some things it does:
- drag & drop, or paste from clipboard
- send to everyone, to one specific device, or through a private link/QR
- files can expire after a set time or after one download
- no size limit except your disk, and uploads resume if your phone locks or Wi-Fi drops
- a shared note board for links, codes, Wi-Fi passwords, etc.
- the host can see connected devices, block or approve them, and post announcements
- a private mode for cafés/hotels where people join with a 6-digit code
- it flags disguised files (like an .exe renamed to .pdf) before saving
There are desktop apps for Windows, macOS and Linux (built with Tauri, so you don't need to install Node). You can also run it from source with npm install && npm start. The stack is deliberately boring: Node + Express, WebSocket, vanilla JS with no build step, and only 7 runtime dependencies. Apache 2.0.
Being upfront about what it doesn't do yet:
- it's hub-and-spoke, not P2P, so the host machine has to stay on
- LAN traffic is plain HTTP right now, so don't use it on a network you don't trust without private mode, and even then keep this in mind
- it's not meant to be exposed to the internet (use a VPN if you need remote access)
- some Android browsers don't resolve
meghxl.local, so use the IP/QR instead - Windows SmartScreen may complain because I'm a new publisher
Next on the list: HTTPS on the LAN, end-to-end encryption for private transfers, and Android/iOS apps with share-sheet support.
Some context: this is part of Matily, a small non-profit studio I run. I don't take money for any of the tools, I just build things I wish existed and put them out there.
I'd really appreciate any feedback, especially on the security side or the setup experience. Bug reports, PRs and "this is confusing" comments are all welcome.