{"id":26505584,"url":"https://github.com/ch1ller0/fridgefm-radio-core","last_synced_at":"2026-03-15T08:50:27.156Z","repository":{"id":39626645,"uuid":"172209723","full_name":"ch1ller0/fridgefm-radio-core","owner":"ch1ller0","description":"Simple lightweight package for creating your own radio station via NodeJS heavily inspired by Shoutcast and Icecast.","archived":false,"fork":false,"pushed_at":"2025-02-20T20:21:29.000Z","size":967,"stargazers_count":50,"open_issues_count":10,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T02:36:47.286Z","etag":null,"topics":["highland","icecast","mp3","music","nodejs","radio","shoutcast","stream"],"latest_commit_sha":null,"homepage":"https://fridgefm.com","language":"TypeScript","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/ch1ller0.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-02-23T12:07:08.000Z","updated_at":"2025-07-26T00:47:56.000Z","dependencies_parsed_at":"2024-06-10T18:59:29.319Z","dependency_job_id":"3fffb38d-14b4-415e-b1f1-d3d8498caf62","html_url":"https://github.com/ch1ller0/fridgefm-radio-core","commit_stats":{"total_commits":70,"total_committers":4,"mean_commits":17.5,"dds":"0.11428571428571432","last_synced_commit":"bf1b57a7c84b6f345c9dd5840a978eb87f488056"},"previous_names":["kefir100/radio-ch1ller","kefir100/fridgefm-radio-core"],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/ch1ller0/fridgefm-radio-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ch1ller0%2Ffridgefm-radio-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ch1ller0%2Ffridgefm-radio-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ch1ller0%2Ffridgefm-radio-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ch1ller0%2Ffridgefm-radio-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ch1ller0","download_url":"https://codeload.github.com/ch1ller0/fridgefm-radio-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ch1ller0%2Ffridgefm-radio-core/sbom","scorecard":{"id":77568,"data":{"date":"2025-08-11","repo":{"name":"github.com/ch1ller0/fridgefm-radio-core","commit":"b6194aed1e30796f581e95024fea07e178aaff6f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Code-Review","score":0,"reason":"Found 0/25 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pr_checks.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Info: no jobLevel write permissions found"],"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":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr_checks.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/ch1ller0/fridgefm-radio-core/pr_checks.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr_checks.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/ch1ller0/fridgefm-radio-core/pr_checks.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr_checks.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/ch1ller0/fridgefm-radio-core/pr_checks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr_checks.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/ch1ller0/fridgefm-radio-core/pr_checks.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/ch1ller0/fridgefm-radio-core/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/ch1ller0/fridgefm-radio-core/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/ch1ller0/fridgefm-radio-core/publish.yml/main?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":"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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish.yml:9"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","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-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p"],"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-15T05:10:27.066Z","repository_id":39626645,"created_at":"2025-08-15T05:10:27.067Z","updated_at":"2025-08-15T05:10:27.067Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30539324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-15T07:17:37.589Z","status":"ssl_error","status_checked_at":"2026-03-15T07:17:31.738Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["highland","icecast","mp3","music","nodejs","radio","shoutcast","stream"],"created_at":"2025-03-20T21:47:44.454Z","updated_at":"2026-03-15T08:50:27.140Z","avatar_url":"https://github.com/ch1ller0.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Radio engine for NodeJS\n[![build](https://img.shields.io/github/actions/workflow/status/ch1ller0/fridgefm-radio-core/publish.yml)](https://github.com/ch1ller0/fridgefm-radio-core/actions/workflows/publish.yml)\n[![coverage](https://img.shields.io/codecov/c/gh/ch1ller0/fridgefm-radio-core.svg)](https://codecov.io/gh/ch1ller0/fridgefm-radio-core)\n[![npm](https://img.shields.io/npm/dm/@fridgefm/radio-core.svg)](https://www.npmjs.com/package/@fridgefm/radio-core)\n![GitHub](https://img.shields.io/github/license/ch1ller0/fridgefm-radio-core.svg)\n\n## Usage\n\n\u003e Simple lightweight package to start your own `live` radio station 📻 Just drop your `mp3` files and broadcast them to the world 🌎Heavily inspired by [Shoutcast](https://www.shoutcast.com) and [Icecast](http://icecast.org).\n\n## Setup\n\n### Installation\n```\nnpm i @fridgefm/radio-core --save\n```\n### Server\n```ts\nconst { Station } = require('@fridgefm/radio-core');\nconst station = new Station();\n\nstation.addFolder('User/Music');\n\nserver.get('/stream', (req, res) =\u003e {\n  station.connectListener(req, res);\n});\n\nstation.start();\n```\n### Client\n```html\n\u003caudio\n    controls\n    type='audio/mp3'\n    src='/stream'\n/\u003e\n```\n\n## Station constructor\nCreating a station is as simple as \n```ts\nconst myAwesomeStation = new Station({\n  verbose: false, // if true - enables verbose logging (for debugging purposes),\n  responseHeaders: { // in case you want custom response headers for your endpoint\n    'icy-genre': 'jazz'\n  }\n})\n```\n\n## Station methods\n`connectListener` connects real users to your station, this is the only method that should be exposed to listeners  \nresponse argument is required\n```ts\nstation.connectListener(request, response, callback);\n```\n`addFolder` adds track within a folder to the playlist\n```ts\nstation.addFolder('User/Music');\n```\n`start` starts broadcasting\n```ts\nstation.start();\n```\n`next` instantly switches track to the next one\n```ts\nstation.next();\n```\n`togglePause` pauses the stream\n```ts\nstation.togglePause(); // no argument, changes the pause state to the opposite\nstation.togglePause(true); // force pause, regardless of the previous state\nstation.togglePause(false); \n```\n`getPlaylist` just returns you the entire playlist\n```ts\nstation.getPlaylist();\n```\n`reorderPlaylist` lets you manipulate the entire playlist via passed callback\n```ts\nconst myShuffleMethod = (list) =\u003e list\n  // doubles the list (making it twice as long)\n  .concat(list)\n  // filters out the specific track\n  .filter(track =\u003e track.fsStats.name !== 'Artist - Track'); \n\nstation.reorderPlaylist(myShuffleMethod);\n```\nThere are also some built-in shuffle methods\n```ts\nconst { SHUFFLE_METHODS } = require('@fridgefm/radio-core')\n\n// This one randomly shuffles the playlist (keeping the length the same)\nstation.reorderPlaylist(SHUFFLE_METHODS.randomShuffle());\n\n// This one moves the track on the 1st position and moves it to the 2nd position \nstation.reorderPlaylist(SHUFFLE_METHODS.rearrange({ from: 1, to: 2 }));\n\n```\n`on` lets you make a subscription to station events (see below)\n\n## Station events\nStation emits several events - they are available via \n```ts\nconst { PUBLIC_EVENTS } = require('@fridgefm/radio-core')\n```\n#### `NEXT_TRACK`\nevent fires when track changes  \nuseful for getting to know when exactly the track changed and what track that is\n```ts\nstation.on(PUBLIC_EVENTS.NEXT_TRACK, (track) =\u003e {\n  const result = await track.getMetaAsync();\n  console.log(result)\n})\n```\n\n#### `START`\nEvent fires on station start  \n```ts\nstation.on(PUBLIC_EVENTS.START, () =\u003e { console.log('Station started') });\n```\n\n#### `RESTART`\nEvent fires on station restart (when playlist is drained and new one is created)  \nit might be a nice time to shuffle your playlist for example\n```ts\nstation.on(PUBLIC_EVENTS.RESTART, () =\u003e { /* do something*/ });\n```\n\n#### `ERROR`\nEvent fires when there is some error. You `should` add this handler - otherwise any error will be treated as unhandled (causing `process.exit` depending on Node version)\n```ts\nstation.on(PUBLIC_EVENTS.ERROR, (e) =\u003e { handleError(e) });\n```\n\n\u003e or just go to [examples](./examples/server.js)\n## Development\n```\nnpm run dev\n```\nor\n```\nnpm run dev [path/to/your_mp3tracks]\n# in this case it would take a little more time, just wait\n```\n\n## Demo\nSandbox is available here on [Codesandbox](https://codesandbox.io/p/github/ch1ller0/fridgefm-radio-core/main)\\\nFully working demo is available on [FridgeFM](https://fridgefm.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fch1ller0%2Ffridgefm-radio-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fch1ller0%2Ffridgefm-radio-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fch1ller0%2Ffridgefm-radio-core/lists"}