peerflix is a Node.js-based streaming torrent client that lets you stream video or audio files directly from a torrent (magnet link or .torrent file), without needing to wait for the entire download to finish. It spins up a small HTTP server that serves the torrent’s content as it’s downloaded; for example, if you point a media player (like VLC or MPV) to the provided URL, it will start playing almost immediately. Peerflix automatically selects the largest file in a multi-file torrent by default (or can list all files for manual selection), and supports passing arbitrary flags to the media player — letting you stream with subtitles, full-screen mode, or other player-specific options. Because it's built on the torrent peer network, it downloads pieces on demand as playback proceeds, which can be more efficient if you only want to watch a single file. Peerflix also exposes programmatic API usage using underlying low-level torrent-streaming logic.
Features
- Stream video or audio from a torrent (magnet link or .torrent) directly to a media player via HTTP streaming
- Automatic selection of the largest file (or manual list selection) in multi-file torrents
- Support for media player flags (subtitles, fullscreen, custom options) when launching playback
- On-demand downloading of pieces during playback rather than full prior download
- Exposed API allowing embedding of torrent-streaming logic into custom Node.js applications
- Command-line interface for easy use with minimal setup