mafintosh/peerflix
{ "createdAt": "2013-03-14T17:15:43Z", "defaultBranch": "master", "description": "Streaming torrent client for node.js", "fullName": "mafintosh/peerflix", "homepage": "", "language": "JavaScript", "name": "peerflix", "pushedAt": "2022-06-19T23:29:59Z", "stargazersCount": 6255, "topics": [], "updatedAt": "2025-11-27T02:11:58Z", "url": "https://github.com/mafintosh/peerflix"}peerflix
Section titled “peerflix”Streaming torrent client for Node.js
npm install -g peerflixPeerflix can be used with a magnet link or a torrent file. To stream a video with its magnet link use the following command.
peerflix "magnet:?xt=urn:btih:ef330b39f4801d25b4245212e75a38634bfc856e" --vlcRemember to put " around your magnet link since they usually contain &.
peerflix will print a terminal interface. The first line contains an address to a http server. The --vlc flag ensures vlc is opened when the torrent is ready to stream.

To stream music with a torrent file use the following command.
peerflix "http://some-torrent/music.torrent" -a --vlcThe -a flag ensures that all files in the music repository are played with vlc.
Otherwise if the torrent contains multiple files, peerflix will choose the biggest one.
To get a full list of available options run peerflix with the help flag.
peerflix --helpExamples of usage of could be
peerflix magnet-link --list # Select from a list of files to downloadpeerflix magnet-link --vlc -- --fullscreen # will pass --fullscreen to vlcpeerflix magnet-link --mplayer --subtitles subtitle-file.srt # play in mplayer with subtitlespeerflix magnet-link --connection 200 # set max connection to 200Programmatic usage
Section titled “Programmatic usage”If you want to build your own app using streaming bittorrent in Node you should checkout torrent-stream
Chromebook users
Section titled “Chromebook users”Chromebooks are set to refuse all incoming connections by default - to change this:
sudo iptables -P INPUT ACCEPTChromecast
Section titled “Chromecast”If you wanna use peerflix on your chromecast checkout peercast or castnow
License
Section titled “License”MIT