HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
mafintosh
peerflix
JavaScript2014–2023
mafintosh / peerflix

peerflix

Streaming torrent client for node.js

17Distinct people
18Mentions
0Explicit recommenders
6.3KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Streaming torrent client for node.js

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year18 dated mentions

Observed mentions: 2014-03-11 08:56:02 UTC to 2023-09-15 18:50:03 UTC.

024682014-01-01 00:00:00 UTC to 2015-01-01 00:00:00 UTC (exclusive): 8 mentions; 1 submissions, 7 comments20142015-01-01 00:00:00 UTC to 2016-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments2017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2023

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20142014-01-01 00:00:00 UTC2015-01-01 00:00:00 UTC817
20152015-01-01 00:00:00 UTC2016-01-01 00:00:00 UTC110
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC404
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC202
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC101
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC000
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC000
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC000
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC101
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC101

From the project README

An excerpt from the repository, fetched Nov 13, 2026.

Read the project’s introduction
peerflix Streaming torrent client for Node.js npm install -g peerflix Usage Peerflix 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" --vlc Remember 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 --vlc The -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 --help Examples of usage of could be peerflix magnet-link --list # Select from a list of files to download peerflix magnet-link --vlc -- --fullscreen # will pass --fullscreen to vlc peerflix magnet-link --mplayer --subtitles subtitle-file.srt # play in mplayer with subtitles peerflix magnet-link --connection 200 # set max connection to 200 Programmatic usage If you want to build your own app using streaming bittorrent in Node you should checkout torrent-stream Chromebook users Chromebooks are set to refuse all incoming connections by default - to change this: sudo iptables -P INPUT ACCEPT Chromecast If you wanna use peerflix on your chromecast checkout peercast or castnow License MIT
Read the full README on GitHub

What Hacker News says

18 sources
When I used a Chromecast, I was fond of an even more direct method. On my laptop I ran a Node CLI called "peercast" [0] with a single argument (a magnet link), and it streamed a video file while downloading its torrent, and since it called the torrent library directly, it could prioritize downloading the earlier chunks of the file so I could start streaming the video before the download completed. It looks like that repo hasn't been updated in a while, although it might still work. It's an offshoot of peerflix [1], a Node CLI that streams video from a torrent to an h264 playlist. So without peercast I would just open my browser to the local network address where peerflix was hosting the h264 playlist, and use the Cast button to stream it to my device (which I believe technically means Chromecast "takes over" downloading the playlist, rath
Read the rest
er than my laptop pushing the video to it, so I just needed to use a URL with the LAN IP of my computer). [0] https://github.com/mafintosh/peercast [1] https://github.com/mafintosh/peerflix
In Plex to block all servers hosted at Hetzner
A lot of credit for most FOSS software is the various libraries and programming languages they are built upon: I don't think you can take anything away from this project because of it. Indeed if you take the time to look into Peerflix's dependencies (https://github.com/mafintosh/peerflix/blob/master/package.js...) you'll see that it, too, is based upon airplay-js, parse-torrent, torrent-stream, amongst others. We're at a rather convenient point in time where building a program/app is an exercise in coming up with an idea, researching the alternative components it can be built out of and then spending the time getting them to play nicely together. I wouldn't underestimate the amount of work that entails.
In Stream PirateBay movies directly from CLI
It seems a lot of the magic behind this comes from Peerflix - a node.js library for streaming torrents. This is mostly a CLI wrapper for searching piratebay, parsing the results, and then streaming using peerflix. https://github.com/mafintosh/peerflix I'm curious why thepiratebay npm package wasn't used instead: https://github.com/t3chnoboy/thepiratebay That said, great usage of cheerio for parsing the returned HTML results. I love how it's as simple as running JQuery like commands on the server side.
In Stream PirateBay movies directly from CLI
You can use peerflix[1] for that, eg: peerflix "magnet:?xt=urn:btih:44052304ac07aa461b4828c63c52a44f34df2ce7&dn=FIFA.World.Cup.2014.Group.B.Spain.vs.Netherlands.720p.HDTV.x264-&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Fopen.demonii.com%3A1337" And then watch at http://localhost:8888 with your favorite player. [1] https://github.com/mafintosh/peerflix
In Realtime streaming from torrents in the browser

Showing the 15 most recent of 18 sources. Enable JavaScript to search and browse every indexed mention.

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.