{"id":13394831,"url":"https://github.com/mafintosh/peerflix","last_synced_at":"2025-05-13T21:12:35.867Z","repository":{"id":37396528,"uuid":"8780895","full_name":"mafintosh/peerflix","owner":"mafintosh","description":"Streaming torrent client for node.js","archived":false,"fork":false,"pushed_at":"2022-06-19T23:29:59.000Z","size":317,"stargazers_count":6234,"open_issues_count":139,"forks_count":672,"subscribers_count":154,"default_branch":"master","last_synced_at":"2025-05-08T04:36:55.361Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mafintosh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-14T17:15:43.000Z","updated_at":"2025-05-06T12:53:51.000Z","dependencies_parsed_at":"2022-07-08T16:47:11.662Z","dependency_job_id":null,"html_url":"https://github.com/mafintosh/peerflix","commit_stats":null,"previous_names":[],"tags_count":109,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fpeerflix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fpeerflix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fpeerflix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fpeerflix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mafintosh","download_url":"https://codeload.github.com/mafintosh/peerflix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253230017,"owners_count":21875044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T17:01:33.122Z","updated_at":"2025-05-13T21:12:30.853Z","avatar_url":"https://github.com/mafintosh.png","language":"JavaScript","readme":"# peerflix\n\nStreaming torrent client for Node.js\n\n```\nnpm install -g peerflix\n```\n\n[![build status](http://img.shields.io/travis/mafintosh/peerflix.svg?style=flat)](http://travis-ci.org/mafintosh/peerflix)\n\n## Usage\n\nPeerflix can be used with a magnet link or a torrent file.\nTo stream a video with its magnet link use the following command.\n\n```\npeerflix \"magnet:?xt=urn:btih:ef330b39f4801d25b4245212e75a38634bfc856e\" --vlc\n```\n\nRemember to put `\"` around your magnet link since they usually contain `\u0026`.\n`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.\n\n![peerflix](https://raw.github.com/mafintosh/peerflix/master/screenshot.png)\n\nTo stream music with a torrent file use the following command.\n\n```\npeerflix \"http://some-torrent/music.torrent\" -a --vlc\n```\n\nThe `-a` flag ensures that all files in the music repository are played with vlc.\nOtherwise if the torrent contains multiple files, `peerflix` will choose the biggest one.\nTo get a full list of available options run peerflix with the help flag.\n\n```\npeerflix --help\n```\n\nExamples of usage of could be\n\n```\npeerflix magnet-link --list # Select from a list of files to download\npeerflix magnet-link --vlc -- --fullscreen # will pass --fullscreen to vlc\npeerflix magnet-link --mplayer --subtitles subtitle-file.srt # play in mplayer with subtitles\npeerflix magnet-link --connection 200 # set max connection to 200\n```\n\n\n## Programmatic usage\n\nIf you want to build your own app using streaming bittorrent in Node you should checkout [torrent-stream](https://github.com/mafintosh/torrent-stream)\n\n## Chromebook users\n\nChromebooks are set to refuse all incoming connections by default - to change this:  \n\n```\nsudo iptables -P INPUT ACCEPT\n```\n\n## Chromecast\n\nIf you wanna use peerflix on your chromecast checkout [peercast](https://github.com/mafintosh/peercast)\nor [castnow](https://github.com/xat/castnow)\n\n## License\n\nMIT\n","funding_links":[],"categories":["JavaScript","Packages","包","Modules","High level","目录","\\*nix/\\*nux","Torrenting","Mad science","Useful Command Line Tools"],"sub_categories":["Mad science","黑科技","神奇的科学","逼格项目","Download Utilities","Torrent Clients"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmafintosh%2Fpeerflix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmafintosh%2Fpeerflix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmafintosh%2Fpeerflix/lists"}