Code Monkey home page Code Monkey logo

webtorrent-mvp's Introduction

Web3Torrent

Web3Torrent is a streaming torrent implementation, based of Webtorrent and including a custom BitTorrent protocol extension, that allows seeders to block/choke and unblock other peers by user request.

The BitTorrent Wire extension

The Extension establishes a basic way to send/recieve messages between peers, and it allows the seeder to easily control what to do when request for torrent pieces are receieved.

The client

As the client is a custom, extended version of Webtorrent, most of the docs from their docs page are applicable on this project.

There is a couple of extra properties and methods to take into account, the rest you can assume are pretty much the same:

  • pseAccount it's an ID, wich identifies the client (peer). This can be set when the client is instantiated (by passing an object with the key pseAccount), or a random number is assigned.
  • allowedPeers holds a list of torrents (identified by infoHash), in wich every torrent has a list of allowed peers (identified by pseAccount) this list is used by each peer Client, to control which peer is trying to leech files, and see who is allowed to do so.
  • togglePeer (affectedTorrent, peerAccount) is a method that allows a user to choke/unchoke a peer

Demo

The demo is the UI made for this. It's done in react, and it assumes that only one torrent is being shared or downloaded, and that torrent only has one file. You can see it working here

Installing and using

Just clone this repo and start tinkering. :-)

webtorrent-mvp's People

Contributors

dependabot[bot] avatar joelalejandro avatar spersico avatar

Watchers

 avatar  avatar  avatar

Forkers

prototypal

webtorrent-mvp's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.