MCPcopy
hub / github.com/mafintosh/peerflix

github.com/mafintosh/peerflix @v0.39.0 sqlite

repository ↗ · DeepWiki ↗ · release v0.39.0 ↗
23 symbols 43 edges 2 files 0 documented · 0%
README

peerflix

Streaming torrent client for Node.js

npm install -g peerflix

build status

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.

peerflix

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 bittorent 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

Core symbols most depended-on inside this repo

bytes
called by 8
app.js
enc
called by 6
app.js
registry
called by 5
app.js
draw
called by 3
app.js
watchVerifying
called by 2
app.js
ontorrent
called by 2
app.js
runVLC
called by 2
app.js
runPotPlayer
called by 2
app.js

Shape

Function 23

Languages

TypeScript100%

Modules by API surface

app.js16 symbols
index.js7 symbols

Dependencies from manifests, versioned

airplayer2.0.0 · 1×
buffer-from1.0.0 · 1×
clivas0.2.0 · 1×
inquirer5.0.1 · 1×
keypress0.2.1 · 1×
mime2.2.0 · 1×
network-address1.1.0 · 1×
numeral2.0.6 · 1×
open0.0.5 · 1×
optimist0.6.1 · 1×
parse-torrent5.4.0 · 1×
pump2.0.0 · 1×

For agents

$ claude mcp add peerflix \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact