MCPcopy Index your code
hub / github.com/asapach/peerflix-server

github.com/asapach/peerflix-server @v0.6.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.6.0 ↗ · + Follow
12 symbols 23 edges 15 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

peerflix-server

NPM Version NPM Downloads Node.js Version Build Status

logo

Streaming torrent client for node.js with web ui.

screen capture

Based on torrent-stream, inspired by peerflix.

Usage

  1. npm install -g peerflix-server
  2. peerflix-server
  3. Open your browser at http://localhost:9000/
  4. Enjoy!

Configuration

You can configure the application using ~/.config/peerflix-server/config.json file (doesn't exist by default). The options are passed to all torrent-stream instances. Here's an example that overrides the defaults:

{
  "connections": 50,
  "tmp": "/mnt/torrents"
}

You can also change the default port by setting PORT environment variable:

PORT=1234 peerflix-server

# or on windows
SET PORT=1234
peerflix-server

The application stores its current state (list of torrents) in ~/.config/peerflix-server/torrents.json

Daemon

If you want to run peerflix-server as a daemon, you can do it using forever:

npm install -g forever
forever start $(which peerflix-server)

You might also want to enable logging -- see the docs.

FAQ

How do I add password protection?

Development

See Development.md

REST API

See REST.md

Docker

See Docker.md

Core symbols most depended-on inside this repo

findTorrent
called by 7
app/scripts/controllers/main.js
loadTorrent
called by 4
app/scripts/controllers/main.js
save
called by 2
server/store.js
shutdown
called by 2
server/store.js
load
called by 1
app/scripts/controllers/main.js
findPort
called by 1
server/engine.js
probe
called by 1
server/ffmpeg.js
remux
called by 1
server/ffmpeg.js

Shape

Function 12

Languages

TypeScript100%

Modules by API surface

app/scripts/controllers/main.js4 symbols
server/store.js2 symbols
server/index.js2 symbols
server/ffmpeg.js2 symbols
server/socket.js1 symbols
server/engine.js1 symbols

For agents

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

⬇ download graph artifact

Ask about this repo answers extend the page