{"id":13907925,"url":"https://github.com/amishshah/prism-media","last_synced_at":"2026-02-12T10:01:29.511Z","repository":{"id":34181610,"uuid":"77282264","full_name":"amishshah/prism-media","owner":"amishshah","description":"Easily transcode media using Node.js 🎶","archived":false,"fork":false,"pushed_at":"2023-07-18T20:37:12.000Z","size":3136,"stargazers_count":255,"open_issues_count":25,"forks_count":56,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-03T12:45:06.113Z","etag":null,"topics":["audio","audio-processing","ffmpeg","media","transcoding"],"latest_commit_sha":null,"homepage":"https://amishshah.github.io/prism-media","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amishshah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"amishshah","patreon":"discordjs","custom":"https://www.paypal.me/amishshah17"}},"created_at":"2016-12-24T12:34:27.000Z","updated_at":"2025-09-30T01:11:13.000Z","dependencies_parsed_at":"2023-10-20T17:06:50.656Z","dependency_job_id":null,"html_url":"https://github.com/amishshah/prism-media","commit_stats":{"total_commits":221,"total_committers":22,"mean_commits":"10.045454545454545","dds":"0.14932126696832582","last_synced_commit":"4ef1d6f9f53042c085c1f68627e889003e248d77"},"previous_names":["hydrabolt/prism-media"],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/amishshah/prism-media","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amishshah%2Fprism-media","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amishshah%2Fprism-media/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amishshah%2Fprism-media/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amishshah%2Fprism-media/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amishshah","download_url":"https://codeload.github.com/amishshah/prism-media/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amishshah%2Fprism-media/sbom","scorecard":{"id":189812,"data":{"date":"2025-08-11","repo":{"name":"github.com/amishshah/prism-media","commit":"4ef1d6f9f53042c085c1f68627e889003e248d77"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":1,"reason":"Found 4/29 approved changesets -- score normalized to 1","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":"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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/docs.yml:1","Warn: no topLevel permission defined: .github/workflows/test.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":"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/amishshah/prism-media/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/amishshah/prism-media/docs.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docs.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/amishshah/prism-media/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/amishshah/prism-media/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/amishshah/prism-media/test.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/docs.yml:18","Warn: npmCommand not pinned by hash: .github/workflows/test.yml:19","Warn: npmCommand not pinned by hash: .github/workflows/test.yml:20","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   3 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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'","Warn: branch protection not enabled for branch 'stable'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 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":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"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-16T20:25:14.699Z","repository_id":34181610,"created_at":"2025-08-16T20:25:14.699Z","updated_at":"2025-08-16T20:25:14.699Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29363010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: 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":["audio","audio-processing","ffmpeg","media","transcoding"],"created_at":"2024-08-06T23:02:18.988Z","updated_at":"2026-02-12T10:01:29.446Z","avatar_url":"https://github.com/amishshah.png","language":"JavaScript","funding_links":["https://github.com/sponsors/amishshah","https://patreon.com/discordjs","https://www.paypal.me/amishshah17","https://www.patreon.com/discordjs"],"categories":["HarmonyOS","JavaScript"],"sub_categories":["Windows Manager"],"readme":"[![Logo](https://hydrabolt.me/assets/prism-media-logo.svg)](https://amishshah.github.io/prism-media/)\n\n\u003cdiv align=\"center\"\u003e\n\n[![Build Status](https://travis-ci.org/amishshah/prism-media.svg?branch=master)](https://travis-ci.org/hydrabolt/prism-media)\n[![dependencies](https://david-dm.org/amishshah/prism-media/status.svg)](https://david-dm.org/hydrabolt/prism-media)\n[![npm](https://img.shields.io/npm/dt/prism-media.svg)](https://www.npmjs.com/package/prism-media)\n[![Patreon](https://img.shields.io/badge/donate-patreon-F96854.svg)](https://www.patreon.com/discordjs)\n\n\u003c/div\u003e\n\n## What is it?\n\nAn easy-to-use stream-based toolkit that you can use for media processing. All the features provided have predictable\nabstractions and join together coherently.\n\n```js\n// This example will demux and decode an Opus-containing OGG file, and then write it to a file.\nconst prism = require('prism-media');\nconst fs = require('fs');\n\nfs.createReadStream('./audio.ogg')\n  .pipe(new prism.opus.OggDemuxer())\n  .pipe(new prism.opus.Decoder({ rate: 48000, channels: 2, frameSize: 960 }))\n  .pipe(fs.createWriteStream('./audio.pcm'));\n```\n\nThe example above can work with either a native or pure JavaScript Opus decoder - you don't need to worry about changing\nyour code for whichever you install.\n\n- FFmpeg support (either through npm modules or a normal installation) \n- Opus support (native or pure JavaScript)\n- Demuxing for WebM/OGG files (no modules required!)\n- Volume Altering (no modules required!)\n\n## Dependencies\n\nThe following dependencies are all optional, and you should only install one from each category (the first listed in\neach category is preferred)\n\n- Opus\n  - [`@discordjs/opus`](https://github.com/discordjs/opus)\n  - [`node-opus`](https://github.com/Rantanen/node-opus)\n  - [`opusscript`](https://github.com/abalabahaha/opusscript)\n- FFmpeg\n  - [`ffmpeg-static`](http://npmjs.com/ffmpeg-static)\n  - `ffmpeg` from a [normal installation](https://www.ffmpeg.org/download.html)\n\n## Useful Links\n\n- [Documentation](https://amishshah.github.io/prism-media)\n- [Examples](https://github.com/amishshah/prism-media/tree/master/examples)\n- [Patreon](https://www.patreon.com/discordjs)\n\n## License\n\n\u003e Copyright 2019 - 2022 Amish Shah\n\u003e \n\u003e Licensed under the Apache License, Version 2.0 (the \"License\");\n\u003e you may not use this file except in compliance with the License.\n\u003e You may obtain a copy of the License at\n\u003e \n\u003e    http://www.apache.org/licenses/LICENSE-2.0\n\u003e \n\u003e Unless required by applicable law or agreed to in writing, software\n\u003e distributed under the License is distributed on an \"AS IS\" BASIS,\n\u003e WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\u003e See the License for the specific language governing permissions and\n\u003e limitations under the License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famishshah%2Fprism-media","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famishshah%2Fprism-media","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famishshah%2Fprism-media/lists"}