{"id":24267731,"url":"https://github.com/moecre/forked-daapd-homebridge-middleware","last_synced_at":"2025-09-24T04:31:23.278Z","repository":{"id":57240204,"uuid":"172739649","full_name":"moecre/forked-daapd-homebridge-middleware","owner":"moecre","description":"A middleware for provisioning common use cases of forked-daapd's HTTP API to homebridge","archived":false,"fork":false,"pushed_at":"2019-03-25T19:33:30.000Z","size":949,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-25T00:02:58.961Z","etag":null,"topics":["airplay","api","audio","forked-daapd","homebridge","middleware","multiroom","music","playlist","plugin","radio","speaker"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moecre.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-02-26T15:37:24.000Z","updated_at":"2024-05-31T08:34:41.000Z","dependencies_parsed_at":"2022-08-29T22:22:43.049Z","dependency_job_id":null,"html_url":"https://github.com/moecre/forked-daapd-homebridge-middleware","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/moecre/forked-daapd-homebridge-middleware","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moecre%2Fforked-daapd-homebridge-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moecre%2Fforked-daapd-homebridge-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moecre%2Fforked-daapd-homebridge-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moecre%2Fforked-daapd-homebridge-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moecre","download_url":"https://codeload.github.com/moecre/forked-daapd-homebridge-middleware/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moecre%2Fforked-daapd-homebridge-middleware/sbom","scorecard":{"id":656264,"data":{"date":"2025-08-11","repo":{"name":"github.com/moecre/forked-daapd-homebridge-middleware","commit":"c4998e49f9ff6124143e6db22ee5ac49715c7a08"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"44 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-fhjf-83wg-r2j9","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-332q-7ff2-57h2"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T14:43:37.435Z","repository_id":57240204,"created_at":"2025-08-21T14:43:37.436Z","updated_at":"2025-08-21T14:43:37.436Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276694531,"owners_count":25687765,"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","status":"online","status_checked_at":"2025-09-24T02:00:09.776Z","response_time":97,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["airplay","api","audio","forked-daapd","homebridge","middleware","multiroom","music","playlist","plugin","radio","speaker"],"created_at":"2025-01-15T12:19:50.179Z","updated_at":"2025-09-24T04:31:22.877Z","avatar_url":"https://github.com/moecre.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"For use in conjunction with\n* [forked-daapd](https://github.com/ejurgensen/forked-daapd)\n* [Shairport Sync](https://github.com/mikebrady/shairport-sync) (Optional)\n* [Homebridge](https://github.com/nfarina/homebridge)\n* [homebridge-better-http-rgb](https://github.com/jnovack/homebridge-better-http-rgb)\n\nto play your favourite radio stations with just a voice command and control multiple output devices.\n\nExamples:\n\n* \"Hey Siri, start ROCK ANTENNE\"\n* \"Hey Siri, start [YOUR_FAVOURITE_RADIO_STATION]\"\n* \"Hey Siri, turn on Speaker in Hallway\"\n* \"Hey Siri, turn off [SPEAKER_NAME] in [ROOM_NAME]\"\n* You can use the brightness setting to control the output volume: \"Hey Siri, set brightness of [SPEAKER_NAME] in [ROOM_NAME] to 70%\"\n\n![Hallway](docs/Home.app-Hallway.PNG)\n![Kitchen](docs/Home.app-Kitchen.PNG)\n![Volume control](docs/Home.app-Speaker-Volume.PNG)\n\n# Overview\n\nThis package acts like a standalone proxy server which endpoints get to be called by the homebridge-better-http-rgb plugin.\nThe plugin is responsible for then advertising the various accessories to homebridge (see [config.json](config/homebridge/config.json)).\nThe middleware is using the amazing [forked-daapd JSON API](https://github.com/ejurgensen/forked-daapd/blob/master/README_JSON_API.md)\nto control the various accessories and redirect their actions to forked-daapd. Therefore it is possible to advertise almost\nany forked-daapd action to HomeKit.\n\n# Prerequisites\n\n* [Node.js](https://nodejs.org/en/) \u003e= v10.15.1 with [npm](https://www.npmjs.com) \u003e= v6.4.1\n* [forked-daapd](https://github.com/ejurgensen/forked-daapd) \u003e= v26.4 available in your local network\n* [homebridge](https://homebridge.io) \u003e= v0.4.46 with [homebridge-better-http-rgb](https://www.npmjs.com/package/homebridge-better-http-rgb) \u003e= v2.0.0 plugin available in your local network\n* At least one output device (AirPlay, Chromecast, etc) in your local network which can be controlled by forked-daapd\n* At least one playlist with an internet radio stream url in it, available in your forked-daapd library\n\n# Installation and execution\n\n## Option 1: Installing as npm dependency\n\n```bash\n$ mkdir forked-daapd-homebridge-middleware\n$ npm init\n$ npm install --save forked-daapd-homebridge-middleware\n```\n\nFor the `npm init` command answer all questions with [ENTER] key.\n\n### Configuration\nSee [configuration](#configuration-2).\n\n### Run as npm dependency\n\n```bash\n$ cd forked-daapd-homebridge-middleware\n$ npx forked-daapd-homebridge-middleware\n```\n\n## Option 2: Installing as separate project\n\n```bash\n$ git clone https://github.com/moecre/forked-daapd-homebridge-middleware.git\n$ cd forked-daapd-homebridge-middleware\n$ npm install\n```\n\n### Configuration\nSee [configuration](#configuration-2).\n\n### Run as separate project\n\n```bash\n$ cd forked-daapd-homebridge-middleware\n$ npm start\n```\n\n## Running with PM2\n\nIn production I strongly advise you to use a process manager like [PM2](http://pm2.keymetrics.io) to run forked-daapd-homebridge-middleware.\nIn case anything unexpected happens the middleware is going to be restarted automatically by PM2.\n\n![PM2 status](docs/PM2-status.png)\n\nBy the way, that's a good solution for your Homebridge process, too.\n\n# Configuration\n\n## Create forked-daapd-homebridge-middleware configuration file\n\nCopy the distributed [index.dist.json](config/index.dist.json) to index.json in the same directory and change the file\naccording to your setup and needs.\n\n| Param   | Description                       |\n|---------|-----------------------------------|\n| baseUrl | URL to your forked-daapd JSON API |\n\n## Adding your accessories to Homebridge\n\nPlease take a look at the provided [config.json](config/homebridge/config.json) for examples. In general your Homebridge\nconfiguration file is located in `~/.homebridge/config.json`.\n\n### Radio station\n\nPlease replace placeholders, eg. `{NAME YOUR RADIO STATION}` for `ROCK ANTENNE`. Keep in mind that the name must\nbe unique over all your accessories (UUID in Homebridge).\n\n```json\n{\n  \"accessory\": \"HTTP-RGB\",\n  \"name\": \"{NAME YOUR RADIO STATION}\",\n  \"service\": \"Light\",\n  \"switch\": {\n    \"status\": \"http://{HOSTNAME ON WHICH FORKED-DAAPD-HOMEBRIDGE-MIDDLEWARE IS RUNNING}:3000/playlists/{URL ENCODED NAME OF THE PLAYLIST IN FORKED-DAAPD}\",\n    \"powerOn\": \"http://{HOSTNAME ON WHICH FORKED-DAAPD-HOMEBRIDGE-MIDDLEWARE IS RUNNING}:3000/playlists/{URL ENCODED NAME OF THE PLAYLIST IN FORKED-DAAPD}/play[?shuffle=true]\",\n    \"powerOff\": \"http://{HOSTNAME ON WHICH FORKED-DAAPD-HOMEBRIDGE-MIDDLEWARE IS RUNNING}:3000/player/stop\"\n  }\n}\n```\nThe `/playlists/:playlist/play` endpoint has an optional parameter `shuffle`. If applied all the playlist items get added to the queue shuffled.\n\n### Speaker (output device)\n\nPlease replace placeholders, eg. `{NAME YOUR SPEAKER}` for `Hallway speaker`. Keep in mind that the name must be \nunique over all your accessories (UUID in Homebridge).\n\n```json\n{\n  \"accessory\": \"HTTP-RGB\",\n  \"name\": \"{NAME YOUR SPEAKER}\",\n  \"service\": \"Light\",\n  \"switch\": {\n    \"status\": \"http://{HOSTNAME ON WHICH FORKED-DAAPD-HOMEBRIDGE-MIDDLEWARE IS RUNNING}:3000/outputs/{URL ENCODED NAME OF OUTPUT DEVICE IN FORKED-DAAPD}\",\n    \"powerOn\": \"http://{HOSTNAME ON WHICH FORKED-DAAPD-HOMEBRIDGE-MIDDLEWARE IS RUNNING}:3000/outputs/{URL ENCODED NAME OF OUTPUT DEVICE IN FORKED-DAAPD}/state/on\",\n    \"powerOff\": \"http://{HOSTNAME ON WHICH FORKED-DAAPD-HOMEBRIDGE-MIDDLEWARE IS RUNNING}:3000/outputs/{URL ENCODED NAME OF OUTPUT DEVICE IN FORKED-DAAPD}/state/off\"\n  },\n  \"brightness\": {\n     \"status\": \"http://{HOSTNAME ON WHICH FORKED-DAAPD-HOMEBRIDGE-MIDDLEWARE IS RUNNING}:3000/outputs/{URL ENCODED NAME OF OUTPUT DEVICE IN FORKED-DAAPD}/volume\",\n     \"url\": \"http://{HOSTNAME ON WHICH FORKED-DAAPD-HOMEBRIDGE-MIDDLEWARE IS RUNNING}:3000/outputs/{URL ENCODED NAME OF OUTPUT DEVICE IN FORKED-DAAPD}/volume/%s\"\n  }\n}\n```\n\n## How to create playlists in your forked-daapd server\n\nPlease have a look [here](https://github.com/ejurgensen/forked-daapd#playlists-and-internet-radio).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoecre%2Fforked-daapd-homebridge-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoecre%2Fforked-daapd-homebridge-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoecre%2Fforked-daapd-homebridge-middleware/lists"}