r/node • • Jun 13 '20

MyDrive - Open Source Google Drive Clone (Docker, Amazon S3, MongoDB)

316 Upvotes

23 comments sorted by

39

u/subnub99 Jun 13 '20

Hey guys, i'm excited to announce the first major update to myDrive, myDrive is an Open Source File Service I created, it’s similar to Google Drive. MyDrive now has more features than ever, features such as Docker support, the ability to choose between multiple databases (Amazons S3, the Filesystem, or MongoDB/Gridfs), and the backend is now even written in Typescript! Here’s a short list of the myDrive features.

  • Upload Files

  • Download Files

  • Multiple DB Support (S3, Filesystem, Mongo)

  • Docker Support

  • Create Folders

  • Share Files

  • Creates Image Thumbnails

  • Photo-Viewer

  • Video-Viewer

  • Create One-Time Download links for files

  • Move Files/Folders

  • AES256 Encryption (For file chunks, tokens, and more!)

  • Search For Files/Folders

  • Mobile Friendly (Including Uploading!)

  • Advanced Filter Option

For more info, or to download myDrive view the Github page: https://github.com/subnub/myDrive

I even made a demo: https://mydrive-demo.herokuapp.com/

0

u/[deleted] Jun 13 '20

[deleted]

7

u/subnub99 Jun 13 '20

Thank you! And no, because myDrive uses the the standard download manager used in web browsers, there's no way for me to perform the encryption client side. I have looked into things such as the HTML5 Download Manager, but they all seem to have pretty decent downsides. If anyone has any tips on how to solve this issue i'd love to hear them.

3

u/Snoo_51296 Jun 13 '20

How does megaupload do it?

4

u/subnub99 Jun 13 '20

I believe mega uses the HTML5 downloader maybe, but mega has the issue where downloading will start to eat up your RAM, and if you do not have sufficient RAM you may not be able to download to file. MyDrive you're able to download the file regardless of size (I was able to download a 100GB file in my testing).

I believe that's why mega has like the download bar on the website, and then once it finishes it's actually just putting it from memory onto the disk? But I'm really not 100% sure.

Maybe a desktop and mobile application would be the best bet for client side encryption and such.

12

u/lapa98 Jun 13 '20

Damn how long did this took Looks impressive

10

u/subnub99 Jun 13 '20

Thank you, and judging the the initial commit from the private repo, it seems like I started this project about 6 months ago. It is worth noting I have been very on and off in terms of actually working on this project.

9

u/flki Jun 13 '20

Looks greate

1

u/subnub99 Jun 13 '20

Thanks man

7

u/vertigo_101 Jun 13 '20

Hey looks amazing

4

u/subnub99 Jun 13 '20

Thank you!

3

u/[deleted] Jun 13 '20 edited Jun 13 '20

That seems pretty cool. Did you also include authentication? I don't see it in the feature list.

Because without that it would pretty much be useless as anyone could just access your files and delete them (or even upload their own data, which may take up a lot of space)

Edit: just notices you did from a GitHub issue. Nice work man

1

u/subnub99 Jun 13 '20

Yes it has authentication I should probably add that too the list, each item has a owner ID which corresponds to the users account. The unit tests have some tests that check this, resulting in 401 error codes if you're not the correct user.

Edit: I should also add that myDrive uses JWT for authentication.

1

u/[deleted] Jun 13 '20

Made with material-ui?

3

u/subnub99 Jun 13 '20

Nope! It uses SASS but thats about it in terms of design tools.

1

u/MrMimmet Jun 13 '20

Somehow my wires are a little crossed right now... but this lets you host your own cloud file/data server?

4

u/subnub99 Jun 13 '20

Yes it allows you to host pretty much your own version of Google Drive, or Dropbox. You can either host it on your own local machine, or even host it on a Droplet or something like that.

1

u/MrMimmet Jun 13 '20

That's amazing! :)

1

u/lucas_kardo Jun 13 '20

very cool!

1

u/XDavidT Jun 13 '20

Its looks like Filerun, but better !

1

u/eric_cart Jun 14 '20

That is amazing. Hats off to your hardwork

1

u/jagdishjadeja Jun 14 '20

saved and starred your repo.

need more like this.

1

u/bagera_se Jul 14 '20

Seems really nice. Will hopefully try it out soon.

Why did you go with the Google design? Would be awesome if it looked like its own thing.

1

u/CrashOverride93 Dec 09 '21

Did someone created a docker image based on the sources?