DEV Community

Aditya Sorathiya
Aditya Sorathiya

Posted on

I built MagicDrop — Share files and text between your terminal and browser over your local network

Have you ever needed to quickly move a file or some text between your phone and computer without uploading it to a cloud service?

I built MagicDrop, a simple local-network file and text sharing tool that connects your terminal with a browser.

You start MagicDrop from the terminal, scan a QR code, and your browser becomes a connected device.
MagicDrop supports:

  • 💻 Terminal → Browser file sharing
  • 🌐 Browser → Terminal file sharing
  • 🌐 Browser → Browser file sharing
  • 💬 Text sharing between devices
  • 📱 Multiple connected devices
  • 📷 QR-code connection
  • ✅ Transfer approval/rejection
  • 📦 Chunk-based file transfers
  • 📁 Automatic downloads on the terminal

The first version, v0.0.1, is now released.

Github: https://github.com/sorathiya903/MagicDrop

🚀 Install

npm install -g magicdrop-cli
Enter fullscreen mode Exit fullscreen mode

Start it:

md start
Enter fullscreen mode Exit fullscreen mode

MagicDrop starts a local server and displays a QR code. Scan it from another device connected to the same local network.

📁 Send a file

From the terminal:

md> send photo.jpg
Enter fullscreen mode Exit fullscreen mode

The receiving device gets an approval request. Once accepted, the file is transferred in chunks.

💬 Send text

md> send-text Hello from MagicDrop!
Enter fullscreen mode Exit fullscreen mode

No quotes are required.

🔢 Check version

md -v
Enter fullscreen mode Exit fullscreen mode

Output:

MagicDrop 0.0.1 by Aditya Sorathiya
Enter fullscreen mode Exit fullscreen mode

This is my first release of MagicDrop, and I'm planning to keep improving it.
I'd love to hear what features you think would make MagicDrop more useful. 🚀

Top comments (0)