• Stars
    star
    9,421
  • Rank 3,788 (Top 0.08 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 10 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Easy P2P file transfer powered by WebRTC - inspired by Apple AirDrop
ShareDrop

ShareDrop is a web application inspired by Apple AirDrop service. It allows you to transfer files directly between devices, without having to upload them to any server first. It uses WebRTC for secure peer-to-peer file transfer and Firebase for presence management and WebRTC signaling.

ShareDrop allows you to send files to other devices in the same local network (i.e. devices with the same public IP address) without any configuration - simply open https://www.sharedrop.io on all devices and they will see each other. It also allows you to send files between networks - just click the + button in the top right corner of the page to create a room with a unique URL and share this URL with other people you want to send a file to. Once they open this page in a browser on their devices, you'll see each other's avatars.

The main difference between ShareDrop and AirDrop is that ShareDrop requires Internet connection to discover other devices, while AirDrop doesn't need one, as it creates ad-hoc wireless network between them. On the other hand, ShareDrop allows you to share files between mobile (Android and iOS) and desktop devices and even between networks.

Support ShareDrop!

ShareDrop is free, however, it still costs money to run.

If you use it and like it, please consider making a small donation either via

PayPal

or

Support ShareDrop

to help me keep it free for everyone. Thanks!

Supported browsers

  • Chrome
  • Edge (Chromium based)
  • Firefox
  • Opera
  • Safari 13+

Local development

  1. Setup Firebase:
    1. Sign up for a Firebase account and create a database.
    2. Go to "Security Rules" tab, click "Load Rules" button and select firebase_rules.json file.
    3. Take note of your database URL and its secret, which can be found in "Secrets" tab.
  2. Run npm install -g ember-cli to install Ember CLI.
  3. Run yarn to install app dependencies.
  4. Run cp .env{.sample,} to create .env file. This file will be used by Foreman to set environment variables when running the app locally.
    • SECRET key is used to encrypt cookies and generate room name based on public IP address for / route. It can be any random string - you can generate one using e.g. date | md5sum
    • NEW_RELIC_* keys are only necessary in production
  5. Run yarn develop to start the app.

Deployment

Heroku

Create a new Heroku app:

heroku create <app-name>

and push the app to Heroku repo:

git push heroku master

More Repositories

1

signature_pad

HTML5 canvas based smooth signature drawing
TypeScript
10,905
star
2

xmpp-chat

Facebook chat clone written using Strophe.js and Ember.js
JavaScript
170
star
3

webrtc-translate

Highly experimental (read: "barely working") app that uses WebRTC API and Web Speech API to provide almost (read: "not really") real-time translations during a video call. Chrome only, because of Web Speech API. Demo: https://youtu.be/Tv8ilBOKS2o
JavaScript
70
star
4

efax

Ruby library for accessing the eFax Developer service
Ruby
27
star
5

webgl-hdr

HDR image tone mapping in WebGL using Three.js library
JavaScript
25
star
6

omniauth-evernote

Evernote strategy for OmniAuth
Ruby
18
star
7

final-countdown

Simple countdown clock (uses RxJS)
HTML
12
star
8

bundlerjs

Bundler.js tries to bring the simplicity of Ruby Bundler to npm (TL;DR just use Yarn instead)
JavaScript
11
star
9

impasse-js

HTML5/JS port of Impasse - awesome game originally made by Wanderlands
CoffeeScript
10
star
10

gatsby-react-intl-example

CSS
6
star
11

devise_facebook_open_graph

Provides an authentication strategy for users signing in via Facebook's JavaScript SDK.
Ruby
4
star
12

presentation-webrtc-intro

Presentation about WebRTC mostly based on http://io13webrtc.appspot.com
JavaScript
2
star
13

webrtc-twilio-client

Make phone calls from your browser using WebRTC and Twilio
Ruby
2
star
14

dotfiles

2
star
15

raytracing-in-one-weekend-typescript

TypeScript
1
star
16

presentation-javascript-promises

Presentation about promises in JavaScript based on http://www.html5rocks.com/en/tutorials/es6/promises post.
JavaScript
1
star