{"id":13497470,"url":"https://github.com/chrisguttandin/angular-audio-context","last_synced_at":"2026-03-09T13:01:03.150Z","repository":{"id":14698858,"uuid":"17418970","full_name":"chrisguttandin/angular-audio-context","owner":"chrisguttandin","description":"An Angular wrapper for the Web Audio API's AudioContext.","archived":false,"fork":false,"pushed_at":"2025-12-15T17:11:45.000Z","size":40445,"stargazers_count":21,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-12-18T23:28:03.048Z","etag":null,"topics":["angular","audio","ngx","web-audio"],"latest_commit_sha":null,"homepage":"","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/chrisguttandin.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2014-03-04T22:05:10.000Z","updated_at":"2025-12-15T17:11:49.000Z","dependencies_parsed_at":"2023-01-16T20:01:37.207Z","dependency_job_id":"4c07afd3-e99d-4031-84a0-121371cf3215","html_url":"https://github.com/chrisguttandin/angular-audio-context","commit_stats":{"total_commits":3844,"total_committers":3,"mean_commits":"1281.3333333333333","dds":0.04188345473465138,"last_synced_commit":"e641417199b41ac784553e192725da465c5adc1c"},"previous_names":[],"tags_count":458,"template":false,"template_full_name":null,"purl":"pkg:github/chrisguttandin/angular-audio-context","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisguttandin%2Fangular-audio-context","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisguttandin%2Fangular-audio-context/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisguttandin%2Fangular-audio-context/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisguttandin%2Fangular-audio-context/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisguttandin","download_url":"https://codeload.github.com/chrisguttandin/angular-audio-context/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisguttandin%2Fangular-audio-context/sbom","scorecard":{"id":279939,"data":{"date":"2025-08-11","repo":{"name":"github.com/chrisguttandin/angular-audio-context","commit":"23a6d45dfcbdc5d17ac1e0f3dce859af3c81cf1f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"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":10,"reason":"26 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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/30 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/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":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/chrisguttandin/angular-audio-context/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/chrisguttandin/angular-audio-context/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/chrisguttandin/angular-audio-context/test.yml/master?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 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: 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":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":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-44c6-4v22-4mhx","Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"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-17T15:29:44.038Z","repository_id":14698858,"created_at":"2025-08-17T15:29:44.038Z","updated_at":"2025-08-17T15:29:44.038Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30292186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T11:12:22.024Z","status":"ssl_error","status_checked_at":"2026-03-09T11:10:54.577Z","response_time":61,"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":["angular","audio","ngx","web-audio"],"created_at":"2024-07-31T20:00:31.440Z","updated_at":"2026-03-09T13:01:03.054Z","avatar_url":"https://github.com/chrisguttandin.png","language":"TypeScript","readme":"# angular-audio-context\n\n**An Angular wrapper for the Web Audio API's AudioContext.**\n\n[![version](https://img.shields.io/npm/v/angular-audio-context.svg?style=flat-square)](https://www.npmjs.com/package/angular-audio-context)\n\nBesides being a wrapper this module also patches the deprecated and prefixed versions of the\nAudioContext which are out there. It uses the\n[standardized-audio-context](https://github.com/chrisguttandin/standardized-audio-context) to do so.\n\n## Usage\n\nThis module can be installed via [npm](https://www.npmjs.com/package/angular-audio-context) like\nthis:\n\n```shell\nnpm install angular-audio-context\n```\n\nIt provides an [Angular Module](https://angular.io/docs/ts/latest/guide/ngmodule.html) that can be\nimported into your Angular app as usual.\n\n```typescript\nimport { AudioContextModule } from 'angular-audio-context';\n\n@NgModule({\n    imports: [AudioContextModule.forRoot('balanced')]\n})\nexport class AppModule {}\n```\n\nThe `AudioContext` can then be injected into your components and services.\n\n```typescript\nimport { Injectable } from '@angular/core';\nimport { AudioContext } from 'angular-audio-context';\n\n@Injectable()\nexport class AnyService {\n    constructor(private _audioContext: AudioContext) {}\n}\n```\n\nIn addition to the `AudioContext`, this module also provides a function called `isSupported` which\nreturns a promise which either resolves to true or false depending on the currently used browser's\nWeb Audio API support. An example usage might look like this:\n\n```typescript\nimport { Component, Inject } from '@angular/core';\nimport { isSupported } from 'angular-audio-context';\n\n@Component({\n    selector: 'any-component',\n    template: '\u003cspan *ngIf=\"this.isSupported() | async\"\u003eYeah, your browser is supported.\u003c/span\u003e'\n})\nexport class AnyComponent {\n    constructor(@Inject(isSupported) public isSupported) {}\n}\n```\n\nIn case you are missing a feature or found a bug please create a pull request or raise an issue.\nThanks.\n\n## Example\n\nThe following component defintion shows how to implement a basic component which produces a beep each time the button inside the template gets clicked.\n\n```typescript\nimport { Component } from '@angular/core';\nimport { AudioContext } from 'angular-audio-context';\n\n@Component({\n    selector: 'my-beep',\n    template: '\u003cbutton (click)=\"beep()\"\u003ebeep\u003c/button\u003e'\n})\nexport class BeepComponent {\n    constructor(private _audioContext: AudioContext) {}\n\n    public async beep(): void {\n        if (this._audioContext.state === 'suspended') {\n            await this._audioContext.resume();\n        }\n\n        const oscillatorNode = this._audioContext.createOscillator();\n\n        oscillatorNode.onended = () =\u003e oscillatorNode.disconnect();\n        oscillatorNode.connect(this._audioContext.destination);\n\n        oscillatorNode.start();\n        oscillatorNode.stop(this._audioContext.currentTime + 0.5);\n    }\n}\n```\n\n## Compatibility\n\nUp to [version 5](https://github.com/chrisguttandin/angular-audio-context/releases/tag/v5.0.0) this\nmodule was compatible with Angular 1.\n\n## Alternatives\n\nThere is also module called [ngWebAudio](https://github.com/nehz/ngWebAudio) which tries to simplify\nthe buffering and playback of a single audio file by utilizing the Web Audio API.\n\n[ng-web-apis/audio](https://github.com/ng-web-apis/audio) is a library which allows the Web Audio API to be used from within the templates.\n\n## Acknowledgement\n\nThe naming of this module tries to align with the recommendations given in the\n[Specification for reusable AngularJS components](https://github.com/angular/angular-component-spec).\n","funding_links":[],"categories":["Uncategorized","Third Party Components"],"sub_categories":["Uncategorized","Media"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisguttandin%2Fangular-audio-context","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisguttandin%2Fangular-audio-context","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisguttandin%2Fangular-audio-context/lists"}