{"id":26315708,"url":"https://github.com/grimmdude/midiplayerjs","last_synced_at":"2026-03-01T22:04:57.620Z","repository":{"id":11615328,"uuid":"68489554","full_name":"grimmdude/MidiPlayerJS","owner":"grimmdude","description":"♬ MIDI parser \u0026 player engine for browser or Node.  As a parser converts MIDI events into JSON.  Works well with single or multitrack MIDI files.","archived":false,"fork":false,"pushed_at":"2026-03-01T19:36:50.000Z","size":4326,"stargazers_count":378,"open_issues_count":13,"forks_count":55,"subscribers_count":14,"default_branch":"master","last_synced_at":"2026-03-01T19:42:08.016Z","etag":null,"topics":["audio","es6","javascript-library","midi","midi-player"],"latest_commit_sha":null,"homepage":"https://grimmdude.com/MidiPlayerJS/","language":"JavaScript","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/grimmdude.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}},"created_at":"2016-09-18T02:10:18.000Z","updated_at":"2026-03-01T19:36:54.000Z","dependencies_parsed_at":"2023-01-13T21:00:48.443Z","dependency_job_id":"275cbfdd-d200-43f6-bfe5-bca144241091","html_url":"https://github.com/grimmdude/MidiPlayerJS","commit_stats":{"total_commits":193,"total_committers":9,"mean_commits":"21.444444444444443","dds":0.5854922279792747,"last_synced_commit":"b15c24d3af1052f67644f341c72fe78534d9bd50"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/grimmdude/MidiPlayerJS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimmdude%2FMidiPlayerJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimmdude%2FMidiPlayerJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimmdude%2FMidiPlayerJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimmdude%2FMidiPlayerJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grimmdude","download_url":"https://codeload.github.com/grimmdude/MidiPlayerJS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimmdude%2FMidiPlayerJS/sbom","scorecard":{"id":445784,"data":{"date":"2025-08-11","repo":{"name":"github.com/grimmdude/MidiPlayerJS","commit":"b15c24d3af1052f67644f341c72fe78534d9bd50"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node.js.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":"Code-Review","score":0,"reason":"Found 2/22 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":"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":"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":"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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/grimmdude/MidiPlayerJS/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/grimmdude/MidiPlayerJS/node.js.yml/master?enable=pin","Info:   0 out of   2 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":"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":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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 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":"12 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-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp","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-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-mxhp-79qh-mcx6"],"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-19T06:41:26.781Z","repository_id":11615328,"created_at":"2025-08-19T06:41:26.781Z","updated_at":"2025-08-19T06:41:26.781Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29986242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T21:06:37.093Z","status":"ssl_error","status_checked_at":"2026-03-01T21:05:45.052Z","response_time":124,"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","es6","javascript-library","midi","midi-player"],"created_at":"2025-03-15T12:19:51.798Z","updated_at":"2026-03-01T22:04:57.612Z","avatar_url":"https://github.com/grimmdude.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u0026#9836; MidiPlayerJS\n[![npm version](https://badge.fury.io/js/midi-player-js.svg)](https://badge.fury.io/js/midi-player-js)\n[![CI](https://github.com/grimmdude/MidiPlayerJS/actions/workflows/node.js.yml/badge.svg)](https://github.com/grimmdude/MidiPlayerJS/actions/workflows/node.js.yml)\n\nMidiPlayerJS is a JavaScript library which reads standard MIDI files and emits JSON events in real time.  This player does not generate any audio, but by attaching a handler to the event emitter you can trigger any code you like which could play audio, control visualizations, feed into a MIDI interface, etc.\n\n## Demos\n* [Neopixel Music](https://github.com/robertvorthman/neopixel-music) by robertvorthman @robertvorthman\n* [Autocomposer](https://github.com/rjsalvadorr/autocomposer-js) by RJ Salvador @rjsalvadorr\n* [Simple Browser Player](http://grimmdude.com/MidiPlayerJS/) by Garrett Grimm @grimmdude\n* [Orchestra](https://lexcast.github.io/orchestra/) by Daniel Alejandro Cast @lexcast\n\n## Getting Started\nUsing MidiPlayerJS is pretty simple.  Create a new player by instantiating `MidiPlayer.Player` with an event handler to be called for every MIDI event.  Then you can load and play a MIDI file.\n\n```js\nimport MidiPlayer from 'midi-player-js';\n\n// Initialize player and register event handler\nconst Player = new MidiPlayer.Player(function(event) {\n\tconsole.log(event);\n});\n\n// Load a MIDI file\nPlayer.loadFile('./test.mid');\nPlayer.play();\n```\n## Player Events\nThere are a handful of events on the `Player` object which you can subscribe to using the `Player.on()` method.  Some events pass data as the first argument of the callback as described below:\n\n```js\nPlayer.on('fileLoaded', function() {\n    // Do something when file is loaded\n});\n\nPlayer.on('playing', function(currentTick) {\n    // Do something while player is playing\n    // (this is repeatedly triggered within the play loop)\n});\n\nPlayer.on('midiEvent', function(event) {\n    // Do something when a MIDI event is fired.\n    // (this is the same as passing a function to MidiPlayer.Player() when instantiating.\n});\n\nPlayer.on('endOfFile', function() {\n    // Do something when end of the file has been reached.\n});\n```\n\nNote that because of a common practice called \"running status\" many MIDI files may use `Note on` events with `0` velocity in place of `Note off` events.\n\n## See Also\n\nNeed to generate MIDI files programmatically? Check out [MidiWriterJS](https://github.com/grimmdude/MidiWriterJS) — a JavaScript library for creating expressive multi-track MIDI files. Together they form a complete MIDI toolkit:\n\n- **MidiPlayerJS** — parse and play MIDI files with real-time event callbacks\n- **MidiWriterJS** — generate MIDI files programmatically\n\n## Full API Documentation\n[http://grimmdude.com/MidiPlayerJS/docs/](http://grimmdude.com/MidiPlayerJS/docs/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrimmdude%2Fmidiplayerjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrimmdude%2Fmidiplayerjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrimmdude%2Fmidiplayerjs/lists"}