{"library":"webtorrent","type":"library","category":null,"description":"WebTorrent is a versatile streaming BitTorrent client designed for both Node.js environments and web browsers. Currently stable at version 2.8.5, it receives frequent minor updates and bug fixes, with new features introduced periodically. Its primary differentiator is its ability to operate directly within a web browser using WebRTC data channels for peer-to-peer communication, making it the \"streaming torrent client for the web.\" In Node.js, it functions as a standard torrent client utilizing TCP and UDP. This pure JavaScript library exposes torrent files as streams, supporting on-demand piece fetching, and can seamlessly switch between sequential and rarest-first piece selection strategies. WebTorrent facilitates connecting \"web peers\" (browser clients) with other WebTorrent-compatible clients, including desktop applications and specialized command-line tools like `webtorrent-hybrid`.","language":"javascript","status":"active","version":"2.8.5","tags":["javascript","bittorrent","bittorrent client","download","mad science","p2p","peer-to-peer","peers","streaming"],"last_verified":"Wed May 27","install":[{"cmd":"npm install webtorrent","imports":["import WebTorrent from 'webtorrent'","import WebTorrent from 'webtorrent'; const supportsWebRTC = WebTorrent.WEBRTC_SUPPORT","import WebTorrent, { Torrent } from 'webtorrent'; // or import type { Torrent } from 'webtorrent' for TS"]},{"cmd":"yarn add webtorrent","imports":[]},{"cmd":"pnpm add webtorrent","imports":[]}],"homepage":"https://webtorrent.io","github":"https://github.com/webtorrent/webtorrent","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/webtorrent","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/webtorrent/compatibility"}}