Stream video torrents into a tag (webm (vp8, vp9) or mp4 (h. WebTorrent clients running on one domain can connect to clients on any other domain. WebTorrent is a P2P network for the entire web. WebRTC data channels for lightweight peer-to-peer communication with no plugins Protocol extension api for adding new extensionsĬomprehensive test suite (runs completely offline, so it's reliable and fast) Peer discovery via dht, tracker, and ut_pex Supports advanced torrent client features Seamlessly switches between sequential and rarest-first piece selection strategy If you just want to do file transfer on your site, or fetch/seed files over WebTorrent, then theres no need to run a copy of instant.io on your own server. Torrent client for node.js & the browser (same npm module!)ĭownload multiple torrents simultaneously, efficientlyįetches pieces from the network on-demand so seeking is supported (even before torrent is finished) We hope established torrent clients (Transmission, Vuze, uTorrent, etc.) will add support for WebTorrent so they too can connect to both normal and web peers. We're also working on WebTorrent.app, a desktop client with a familiar UI that can connect to web peers. To seed files to web peers, use a client that supports WebTorrent, e.g. Therefore, a browser-based WebTorrent client or "web peer" can only connect to other clients that support WebTorrent/WebRTC. To make BitTorrent work over WebRTC (which is the only p2p transport that works on the web) we made some protocol changes. Simply include the script on your page to start fetching files over WebRTC using the BitTorrent protocol, or require('webtorrent') with browserify.
It can be used without browser plugins, extensions, or installations. In the browser, WebTorrent uses WebRTC (data channels) for peer-to-peer transport. In node.js, this module is a simple torrent client, using TCP and UDP to talk to other torrent clients. It's written completely in JavaScript – the language of the web – so the same code works in both runtimes. WebTorrent is a streaming torrent client for node.js and the browser.
Streaming torrent client for node & the browser