WebTorrent Workshop

10 - Explore on your own

Congrats on building your own file sharing website using WebTorrent!

In around 100 lines of code you were able to build a powerful website that delivers files directly between users using peer-to-peer WebRTC technology, without sending the files through a central server. Seriously nice work!

Furthermore, since the site is powered by the WebTorrent protocol, you automatically get swarming behavior, which means that if one person wants to share a file to 100 people (say by tweeting it out to your followers), it will scale very well. Any peer which has a piece of the file will be able to share it with other peers that don’t have it yet. The initial sharer of the file won’t have to do all of the work sending 100 individual copies of the file to each of the 100 people who want it. Very powerful! And you didn’t need to write any extra code to get this behavior.

Unlike traditional web server architectures which slow down the more users they get, WebTorrent-powered sites get faster and more resilient the more users who join. It’s people power in action!

Tips

You should spend some time now adding enhancements to your file sharing site. Here is a list of ideas to make your site more useful:

When you are ready, you can start the next workshop.