:rocket: Streaming file transfer over WebTorrent (torrents on the web)

Streaming file transfer over WebTorrent (torrents on the web)

travis javascript style guide

Download/upload files using the WebTorrent protocol (BitTorrent over WebRTC). This is a beta.

Powered by WebTorrent, the first torrent client that works in the browser without plugins. WebTorrent is powered by JavaScript and WebRTC. Supports Chrome, Firefox, Opera (desktop and Android). Run localStorage.debug = ‘*’ in the console and refresh to get detailed log output.


If you just want to do file transfer on your site, or fetch/seed files over WebTorrent, then there’s no need to run a copy of on your own server. Just use the WebTorrent script directly. You can learn more at

The client-side code that uses is here.

Run a copy of this site on your own server

To get a clone of running on your own server, follow these instructions.

Get the code:

git clone
npm install

Modify the configuration options in config.js to set the IP/port you want the server to listen on.

Copy secret/index-sample.js to secret/index.js and set the Twilio API key if you want a NAT traversal service (to help peers connect when behind a firewall).

To start the server, run npm start. That should be it!



  1. Create a shareable link by adding a torrent infohash or magnet link to the end of the URL. For example: or

  2. You can add multiple torrents in the same browser window.


MIT. Copyright © WebTorrent, LLC.

Related Repositories

:rocket: Streaming file transfer over WebTorrent (torrents on the web) ...



The classic Socket.IO example: a simple instant messenger, written in Java, thanks to the JSweet transpiler. Server is spawned by Node.js and Web UI is powered by Angular. Both are linked together by Socket.IO ...



Instant form endpoint that emails you form data (think, but free and self hosted) ...



It is an elaborate design as a way to study to shooting instant messaging. ...



m2m instant messaging for moving things ...

Top Contributors

feross josephfrazier jhiesey substack markreid greenkeeperio-bot jakefb DiegoRBaquero gcq FletchXYZ danbovey joshterrill mafintosh nicola mathiasvr