3 ms·
Every few months, someone builds a site like this. It lasts for a few days (or weeks) at best before it's shutdown due to legal pressure or sheer cost for the o
by feross 12y ago
Every few months, someone builds a site like this. It lasts for a few days (or weeks) at best before it's shutdown due to legal pressure or sheer cost for the owner.
I'm going to ignore the piracy aspect of this site (since I don't support copyright infringement) and just talk about the implementation. This site is connecting to a centralized service to fetch the torrent data. It's not P2P, it's easy to censor, and it likely won't be around for long.
What we really need is a true P2P implementation of BitTorrent in the browser. I'm working on just such a project: WebTorrent (http://webtorrent.io http://webtorrent.io).
You can see a demo here: https://instant.io https://instant.io
Here is a link to watch Sintel (Creative Commons 3.0): https://instant.io/#c6642b73cf82dc52b5d538fabfdf9c8e3d9e850f https://instant.io/#c6642b73cf82dc52b5d538fabfdf9c8e3d9e850f
WebTorrent is powered by WebRTC, the de-facto standard for connecting two peers in the web browser. It even works in desktop apps (via Electron or NW.js) and mobile apps (via embedding the webrtc.org library).
With WebRTC, we can connect all types of endpoints (desktop, web, mobile) directly and completely P2P. This is the underlying transport that all future P2P protocols should be built upon.
Right now, the primary limitation of WebTorrent in the browser is that you can't just paste in any random magnet uri or .torrent file and have it work. The torrent must be seeded by a WebRTC-capable client, i.e. webtorrent-hybrid (https://github.com/feross/webtorrent-hybrid https://github.com/feross/webtorrent-hybrid) or https://instant.io https://instant.io.
We plan to build a desktop client (soon!) that can connect to normal BitTorrent peers, as well as WebRTC peers. These long-running peers will ensure there's lots of content available in the network that the shorter-running web peers can access.
This is the vision: All torrent clients (desktop, web, mobile) talking directly to each other. If you're interested in learning more about the idea of "WebRTC everywhere", here are some links:
https://github.com/webrtcftw/goals/issues/1 https://github.com/webrtcftw/goals/issues/1
https://github.com/jbenet/random-ideas/issues/13 https://github.com/jbenet/random-ideas/issues/13
- amelius 12y agoI guess the main problem is that browsers are not allowed to connect to random IP addresses using anything other than standard protocols. Otherwise, every website could potentially turn itself into a botnet. This problem is not likely to go away very easily, I suppose.
- realusername 12y agoThanks for your awesome work ! I guess when the WebTorrent protocol will be implemented in libtorrent, suddenly, everything is going to change. Right now it's a bit of a chicken-and-egg problem but I'm really confident your project will enable a whole new class of applications which are not possible to build easily currently.
- bobajeff 12y agoAt least until TCP and UDP Socket API is completed and implemented in browsers. http://www.w3.org/2012/sysapps/tcp-udp-sockets/ http://www.w3.org/2012/sysapps/tcp-udp-sockets/
- deleted 12y ago[deleted]
- Vexs 12y agoInstant.io is pretty much, hands down the best way I've found to transfer a file to a friend or coworker. No waiting for uploads to finish, no mucking about with accounts and permissions, just copy a hash and go. Really simple, very effective. I can't wait for the final version!