July 7th, 2024

Sharedrop: Easy P2P file transfer powered by WebRTC – inspired by Apple AirDrop

ShareDrop is a GitHub web app like Apple AirDrop, facilitating secure file transfers via WebRTC and Firebase. It allows local and cross-network transfers, supports various browsers, and offers donation options. Setup and deployment guidance are provided.

Read original articleLink Icon
Sharedrop: Easy P2P file transfer powered by WebRTC – inspired by Apple AirDrop

ShareDrop is a web application on GitHub inspired by Apple AirDrop, enabling secure file transfers between devices using WebRTC and Firebase. It supports local network transfers without configuration and cross-network transfers via unique URL rooms, catering to mobile and desktop devices. Users can donate to support server costs through PayPal or Buy Me a Coffee. Supported browsers include Chrome, Edge, Firefox, Opera, and Safari 13+. The repository offers setup steps for Firebase, dependency installation, and local development. Deployment instructions for Heroku are also available. For inquiries or assistance, users can reach out for help.

Link Icon 18 comments
By @almog - 5 months
So it's not offline first, and even though it can do P2P through WebRTC I've ran into situation where I wanted to send a file from my android (not supporting AirDrop) phone to someone's iphone (not supporting Nearby Share) when we were both at the same location but days away from cell service.

Localsend can do that. Problem being when the other person did does not have that installed on their phone. It's really crazy how offline-first networking is still partitioned by iPhone/Android for so many years.

By @smusamashah - 5 months
I keep a list of about 10 such browser based p2p file sending tools https://gist.github.com/SMUsamaShah/fd6e275e44009b72f64d0570...

Have made this using occasional threads like this one and update it when I find some new tool.

By @tamimio - 5 months
I tried most of these apps some time ago, and the best ones for large files were Landrop and Localsend. If you have a VPN, you can use them to transfer files remotely too.

https://landrop.app

https://localsend.org

By @sandreas - 5 months
Well, maybe an alternative: Localsend[1]

Works pretty good for my use cases.

1: https://localsend.org/

EDIT: Oh, this was already mentioned... sorry.

By @GeekyBear - 5 months
If this is truly "inspired by Airdrop", then it should continue to function without a accessible cellular signal or WiFi network, by automatically configuring one of the devices to act as a mobile Wifi hotspot.
By @toenail - 5 months
Does this work on mobile? I use localsend so far, https://localsend.org/
By @kelnos - 5 months
Local discovery didn't work for me. Loaded it on my (Linux) laptop and (Android) phone (both Firefox), but they didn't see each other.

I wonder if it's an IPv6 issue? My two devices might have shown up to the server as two different IPv6 addresses, not the same NATed IPv4 address.

By @ValtteriL - 5 months
How is this different from webwormhole.io?
By @oezi - 5 months
They mention running this cost them money (likely for hosting and Firebase). Isn't there a way that this could be entirely distributed?
By @posix86 - 5 months
This is like PushBullet but better. Nice work! Gonna try when I need to move something from phone to tabled to PC.
By @BitPirate - 5 months
Sadly things are a bit broken if IPv6 is involved:

https://github.com/szimek/sharedrop/issues/55

By @bevenhall - 5 months
ELI5: Do you have two devices on the same local network - is it a single common wifi access point in the badlands, just a local lan, no internet? Do I *need* to have your file on my phone? Why?
By @user_7832 - 5 months
I'd like to give a shoutout to localsend as well: https://github.com/localsend/localsend
By @JaneLovesDotNet - 5 months
imho https://pairdrop.net/ is the best one of these
By @grishka - 5 months
I made NearDrop, a macOS implementation of Google's Nearby Share: https://github.com/grishka/NearDrop
By @1oooqooq - 5 months
> as well: https://github.com/localsend/localsend > imho https://pairdrop.net/ is the best > How is this different from webwormhole.io? > My fave is https://snapdrop.net

it's so funny how everyone have a favorite. They all use standardized hacks on top of hacks, just because ISP do not want to let you serve content and will fight for NAT, which is their only line of defense from everyone else messing with their precious IGMP multicast hacks so they can subsidize their TV business on your internet bill. it's all so funny.

but the best joke is how microsoft and apple both tried to "make things work" in the late 90s (?) with their special zero-conf-by-other-names trainwreak of network protocols.

There's no end in sight.