{"schemaVersion":1,"id":"webtorrent","name":"WebTorrent","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/webtorrent/","officialUrl":"https://github.com/webtorrent/webtorrent","isCatalog":false,"description":"A torrent client library for Node.js and browsers: it provides streaming and peer transport for your media applications.","tasks":["Add peer-to-peer streaming to a media application","Connect media retrieval and test streaming while data downloads"],"categoryIds":["backend"],"subcategoryIds":["backend.api","backend.realtime"],"tags":["WebTorrent","API","Development"],"aliases":["webtorrent/webtorrent","webtorrent"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"MIT for the code; dependencies have separate licenses.","selectionGuide":{"purpose":"Add peer-to-peer streaming to a media application","chooseWhen":["Add peer-to-peer streaming to a media application","Connect media retrieval and test streaming while data downloads"],"considerInstead":[],"requirements":["For the browser client, ensure WebRTC-compatible peers exist. Test with a torrent that has such a seed rather than relying only on the total ordinary BitTorrent peer count."],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: MIT for the code; dependencies have separate licenses.","Browser WebTorrent does not directly connect to ordinary TCP/UDP BitTorrent peers. A torrent file and ordinary-client peers do not guarantee browser file availability."],"faq":[{"question":"What can you use for free in WebTorrent?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with WebTorrent?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for WebTorrent?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with WebTorrent?","answer":"Choose an authorized test torrent and the browser or Node.js environment. Connect media retrieval and test streaming while data downloads. Add error handling and an integration check of the result."},{"question":"Why does a torrent work in Node.js but fail to download in a browser?","answer":"The README distinguishes transports: the Node.js client uses TCP/UDP, while the browser client uses WebRTC. Browser exchange requires the other side to support WebRTC too, such as a compatible hybrid client."}],"related":[],"sources":["https://github.com/webtorrent/webtorrent","https://raw.githubusercontent.com/webtorrent/webtorrent/HEAD/README.md","https://raw.githubusercontent.com/webtorrent/webtorrent/HEAD/LICENSE","https://www.open-source-tools.com/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Add peer-to-peer streaming to a media application.","inputs":["A data contract or HTTP workflow.","A project with a supported runtime."],"steps":["Choose an authorized test torrent and the browser or Node.js environment.","Connect media retrieval and test streaming while data downloads.","Add error handling and an integration check of the result."],"checks":["Invalid and missing data are handled predictably.","Types and the actual response agree; errors are not hidden."]},"sources":["https://github.com/webtorrent/webtorrent","https://raw.githubusercontent.com/webtorrent/webtorrent/HEAD/README.md","https://raw.githubusercontent.com/webtorrent/webtorrent/HEAD/LICENSE","https://www.open-source-tools.com/"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Backend / API library","kind":"library","pricingNote":"Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/webtorrent/webtorrent","label":"Official source"},{"url":"https://raw.githubusercontent.com/webtorrent/webtorrent/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/webtorrent/webtorrent/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}