# ![WebTorrent](img/wordmark.png) [![Build Status][webtorrent-ti]][webtorrent-tu] [![NPM Version][webtorrent-ni]][webtorrent-nu] [![NPM Downloads][webtorrent-downloads-image]][webtorrent-downloads-url] [![Gratipay][webtorrent-gratipay-image]][webtorrent-gratipay-url] ### WebTorrent – Streaming torrent client for node & the browser WebTorrent is a streaming torrent client that works in node.js and the browser. **YEP, THAT'S RIGHT. The browser.** It's written completely in JavaScript – the language of the web – so the same code works in both runtimes. In browsers, WebTorrent uses **WebRTC** (data channels) for peer-to-peer transport. It can be used **without** browser plugins, extensions, or installations. It's Just JavaScript™. Simply include the `webtorrent.min.js` script on your page to start fetching files over WebRTC using the BitTorrent protocol. See [code examples](#usage) below. To make BitTorrent work over WebRTC (which is the only p2p transport that works on the web) we made some protocol changes. Currently, WebTorrent clients can only connect to other WebTorrent clients. We hope established torrent clients (uTorrent, Transmission, Vuze, etc.) will add support for WebRTC and the WebTorrent extensions so they can swarm with peers from both the normal *and* web networks. ![Network](img/network.png) > Warning: This is pre-alpha software. **Watch/star to follow along with progress.** [![Sauce Test Status][webtorrent-sauce-image]][webtorrent-sauce-url] ### Features - **Torrent client for node.js & the browser** (same npm module!) - **Insanely fast** - **Streaming video** to many devices (including AirPlay, Chromecast, and VLC player) - Download **multiple torrents** simultaneously, efficiently - **Pure Javascript** (no native dependencies) - Exposes files as **streams** (and fetches pieces on-demand before torrent is finished - Fetches data from the network on-demand, so streaming and seeking are supported - Seamlessly switches between sequential and rarest-first piece selection strategy - Supports advanced torrent client features - **magnet uri** support via **[ut_metadata](https://github.com/feross/ut_metadata)** - **peer discovery** via **[dht](https://github.com/feross/bittorrent-dht)**, **[tracker](https://github.com/feross/bittorrent-tracker)**, and **[ut_pex](https://github.com/fisch0920/ut_pex)** - **[protocol extension api](https://github.com/feross/bittorrent-protocol#extension-api)** for adding new extensions - **Comprehensive test suite** (completely offline, so it's reliable and fast) #### Browser-specific features - Uses **WebRTC data channels** for lightweight peer-to-peer communication (no plugins) - **No silos.** WebTorrent is a P2P network for the **entire web.** WebTorrent clients running on one domain can connect to clients on any other domain. - Stream video torrents into a `