{"id":13453553,"url":"https://github.com/mafintosh/peercast","last_synced_at":"2025-04-05T10:10:41.542Z","repository":{"id":21427872,"uuid":"24746012","full_name":"mafintosh/peercast","owner":"mafintosh","description":"torrent-stream + chromecast","archived":false,"fork":false,"pushed_at":"2018-05-07T23:15:03.000Z","size":169,"stargazers_count":517,"open_issues_count":9,"forks_count":38,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-03-29T09:12:09.984Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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":"2014-10-03T03:47:48.000Z","updated_at":"2025-03-17T12:04:40.000Z","dependencies_parsed_at":"2022-07-13T15:30:57.282Z","dependency_job_id":null,"html_url":"https://github.com/mafintosh/peercast","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fpeercast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fpeercast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fpeercast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fpeercast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mafintosh","download_url":"https://codeload.github.com/mafintosh/peercast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318745,"owners_count":20919484,"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-31T08:00:42.947Z","updated_at":"2025-04-05T10:10:41.518Z","avatar_url":"https://github.com/mafintosh.png","language":"JavaScript","funding_links":[],"categories":["Packages","JavaScript","包","目录","Mad science","High level"],"sub_categories":["Mad science","黑科技","逼格项目","神奇的科学"],"readme":"# peercast\n\ntorrent-stream + chromecast\n\n```\nnpm install -g peercast\n```\n\n## Usage\n\nBe on the same wifi as your chromecast and do\n\n```\npeercast magnet:?xt=urn:btih:99feae0a05c6a5dd9af939ffce5ca9b0d16f31b0\n```\n\nCurrently this does not do any transcoding so the torrent should be mp4 (or whatever chromecast supports)\n\n## Programmatic usage\n\n``` js\nvar peercast = require('peercast')\n\nvar engine = peercast(torrentOrMagnetLink)\n\nengine.on('chromecast-status', function(status) {\n  console.log('chromecast status: %s', status.playerState)\n})\n\nengine.on('chromecast-playing', function(file) {\n  console.log('chromcast is playing %s', file.name)\n})\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmafintosh%2Fpeercast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmafintosh%2Fpeercast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmafintosh%2Fpeercast/lists"}