{"id":26088874,"url":"https://github.com/plus1tv/redux-webmidi","last_synced_at":"2025-09-19T22:38:48.830Z","repository":{"id":42663437,"uuid":"68397398","full_name":"plus1tv/redux-webmidi","owner":"plus1tv","description":"🎹 Intuitive Redux reducer/action creators for handling MIDI devices.","archived":false,"fork":false,"pushed_at":"2023-03-14T15:26:51.000Z","size":222,"stargazers_count":8,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T14:56:27.241Z","etag":null,"topics":["keyboard","midi","piano","redux","webmidi"],"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/plus1tv.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","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}},"created_at":"2016-09-16T16:46:41.000Z","updated_at":"2021-04-30T09:19:11.000Z","dependencies_parsed_at":"2024-10-04T13:41:32.071Z","dependency_job_id":"8862d220-8dc9-4ec0-9c76-00d6127e007c","html_url":"https://github.com/plus1tv/redux-webmidi","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"168c184013ff1a9c017a1fd037b66bbd17b64307"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/plus1tv/redux-webmidi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plus1tv%2Fredux-webmidi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plus1tv%2Fredux-webmidi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plus1tv%2Fredux-webmidi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plus1tv%2Fredux-webmidi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plus1tv","download_url":"https://codeload.github.com/plus1tv/redux-webmidi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plus1tv%2Fredux-webmidi/sbom","scorecard":{"id":738402,"data":{"date":"2025-08-11","repo":{"name":"github.com/plus1tv/redux-webmidi","commit":"168c184013ff1a9c017a1fd037b66bbd17b64307"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"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":"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":-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":"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":"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":"Code-Review","score":0,"reason":"Found 0/10 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":-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":"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.md:0","Info: FSF or OSI recognized license: MIT License: license.md: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":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986"],"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-22T16:36:09.228Z","repository_id":42663437,"created_at":"2025-08-22T16:36:09.229Z","updated_at":"2025-08-22T16:36:09.229Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275312989,"owners_count":25442567,"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-15T02:00:09.272Z","response_time":75,"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":["keyboard","midi","piano","redux","webmidi"],"created_at":"2025-03-09T08:20:02.728Z","updated_at":"2025-09-19T22:38:48.782Z","avatar_url":"https://github.com/plus1tv.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Cover Image][cover-url]\n\n# redux-webmidi\n\n[![Npm Package][npm-img]][npm-url]\n[![License][license-img]][license-url]\n[![Dependency Status][david-img]][david-url]\n[![devDependency Status][david-dev-img]][david-dev-url]\n\nAn intuitive Redux reducer/action creators for handling MIDI devices.\n\n```bash\nnpm i redux-webmidi -S\n```\n\n## Usage\n\n```js\nimport { createStore, combineReducers } from 'redux';\nimport { midiReducer as midi, midiProvider } from 'redux-webmidi';\n\nconst reducer = combineReducers({\n  // Your other reducers\n  midi\n});\n\nconst store = createStore(reducer);\n\n// Wrap your store with a proxy provider\nmidiProvider(store);\n\n```\n\n```js\nimport { connect } from 'react-redux';\n\n@connect((state) =\u003e ({midi: state.midi}))\nlet App = ({ midi }) =\u003e (\n  \u003cdiv\u003e\n    {midi.ports.map((c, i) =\u003e \u003cInstrumentView data={c} key={i}/\u003e)}\n    \u003cSynth keys={(midi.ports[0]) ? midi.ports[0].keys : null}/\u003e\n  \u003c/div\u003e\n);\n\n```\n\n## Data Layout\n\n```ts\ntype KeyMap = {\n  // The index is the key on the keyboard.\n  [index: number]: {\n    // The status keycode\n    status: number,\n    velocity: number\n  }\n};\n\ntype MidiDevice = {\n  id: number,\n  name: string,\n  manufacturer: string,\n  state: 'connected' | 'disconnected',\n  type: 'input' | 'output' | 'input/output',\n  keys: KeyMap\n};\n\ntype WebMidiState = {\n  ports: MidiDevice[]\n};\n```\n\nRefer to the official [Midi specification](https://www.midi.org/specifications/item/table-1-summary-of-midi-message) or [WebMidi](https://webaudio.github.io/web-midi-api/) specification if you have any other questions.\n\nThe first byte (denoted as zero in all examples in the table) describes the midi channel, whereas the larger byte describes the actual message.\n\n| Message  | Status |\n|----------|--------|\n| Note Off | `0x80` |\n| Note On  | `0x90` | \n\n```js\nlet {keys} = this.state.port[0];\nkeys.map( key =\u003e {\n  if (key.status \u0026 0x90) {\n    playSound('./bee.wav');\n  }\n});\n```\n\n[cover-url]: docs/cover.png\n[license-img]: http://img.shields.io/:license-mit-blue.svg?style=flat-square\n[license-url]: https://opensource.org/licenses/MIT\n[david-url]: https://david-dm.org/plus1tv/redux-webmidi\n[david-img]: https://david-dm.org/plus1tv/redux-webmidi.svg?style=flat-square\n[david-dev-url]: https://david-dm.org/plus1tv/redux-webmidi#info=devDependencies\n[david-dev-img]: https://david-dm.org/plus1tv/redux-webmidi/dev-status.svg?style=flat-square\n[travis-img]: https://img.shields.io/travis/plus1tv/redux-webmidi.svg?style=flat-square\n[travis-url]:https://travis-ci.org/plus1tv/redux-webmidi\n[codecov-img]:https://img.shields.io/codecov/c/github/plus1tv/redux-webmidi.svg?style=flat-square\n[codecov-url]: https://codecov.io/gh/plus1tv/redux-webmidi\n[npm-img]: https://img.shields.io/npm/v/redux-webmidi.svg?style=flat-square\n[npm-url]: http://npm.im/redux-webmidi\n[npm-download-img]: https://img.shields.io/npm/dm/redux-webmidi.svg?style=flat-square\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplus1tv%2Fredux-webmidi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplus1tv%2Fredux-webmidi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplus1tv%2Fredux-webmidi/lists"}