{"id":13895227,"url":"https://github.com/takahirox/nes-js","last_synced_at":"2025-11-13T23:02:08.948Z","repository":{"id":18447863,"uuid":"21640156","full_name":"takahirox/nes-js","owner":"takahirox","description":"JavaScript NES(Famicom) emulator","archived":false,"fork":false,"pushed_at":"2017-10-04T09:13:57.000Z","size":328,"stargazers_count":217,"open_issues_count":5,"forks_count":47,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-10-04T19:35:03.638Z","etag":null,"topics":["emu","emulator","famicom","javascript","nes","nes-js","webaudio"],"latest_commit_sha":null,"homepage":"http://takahirox.github.io/nes-js/index.html","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/takahirox.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}},"created_at":"2014-07-09T05:08:39.000Z","updated_at":"2025-09-12T20:01:24.000Z","dependencies_parsed_at":"2022-07-26T22:32:03.529Z","dependency_job_id":null,"html_url":"https://github.com/takahirox/nes-js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/takahirox/nes-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takahirox%2Fnes-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takahirox%2Fnes-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takahirox%2Fnes-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takahirox%2Fnes-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takahirox","download_url":"https://codeload.github.com/takahirox/nes-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takahirox%2Fnes-js/sbom","scorecard":{"id":866166,"data":{"date":"2025-08-11","repo":{"name":"github.com/takahirox/nes-js","commit":"4b94d927f30a965dca55e60db5dd823a95b13700"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"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":"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":"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":"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":"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":-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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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"}}]},"last_synced_at":"2025-08-24T02:44:13.539Z","repository_id":18447863,"created_at":"2025-08-24T02:44:13.539Z","updated_at":"2025-08-24T02:44:13.539Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284304460,"owners_count":26982162,"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-11-13T02:00:06.582Z","response_time":61,"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":["emu","emulator","famicom","javascript","nes","nes-js","webaudio"],"created_at":"2024-08-06T18:02:04.971Z","updated_at":"2025-11-13T23:02:08.917Z","avatar_url":"https://github.com/takahirox.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# nes-js\n\nThis is JavaScript NES(Famicom) emulator which runs on browser.\n\n## Demo\n\n[Demo](http://takahirox.github.io/nes-js/index.html)\n\n[Demo with Three.js](http://takahirox.github.io/nes-js/index2.html) (It has a performance issue!)\n\n[WebVR Demo with Three.js](http://takahirox.github.io/nes-js/index3.html) (It has a serious performance issue!)\n\n[AR Demo with Three.js and jsartoolkit5](https://takahirox.github.io/nes-js/index4.html) (It has a performance issue!)\n\n## Screenshot\n\n![Screen shot](https://github.com/takahirox/assets/blob/master/nes-js/screenshot.png)\n\n![Screen shot with Three.js](https://github.com/takahirox/takahirox.github.io/blob/master/images/nesemu.png)\n\n## Features\n\n- iNES format rom image support\n- Renders with Canvas\n- Audio support with WebAudio\n- Runs on browser\n\n## Browser\n\n### How to use\n\n```html\n\u003chead\u003e\n  \u003cscript type=\"text/javascript\" src=\"https://cdn.rawgit.com/takahirox/nes-js/v0.0.1/build/nes.min.js\"\u003e\u003c/script\u003e\n  \u003cscript type=\"text/javascript\" \u003e\n    function init() {\n      var url = 'url to rom image';\n      var request = new XMLHttpRequest();\n      request.responseType = 'arraybuffer';\n\n      request.onload = function() {\n        var buffer = request.response;\n        var nes = new NesJs.Nes();\n\n        nes.setRom(new NesJs.Rom(buffer));\n        nes.setDisplay(new NesJs.Display(document.getElementById('gameCanvas')));\n        nes.setAudio(new NesJs.Audio());\n\n        window.onkeydown = function(e) { nes.handleKeyDown(e); };\n        window.onkeyup = function(e) { nes.handleKeyUp(e); };\n\n        nes.bootup();\n        nes.run();\n      };\n\n      request.open('GET', url, true);\n      request.send(null);\n    }\n  \u003c/script\u003e\n\u003c/head\u003e\n\n\u003cbody onload=\"init()\"\u003e\n  \u003cp\u003e\n    \u003ccanvas id=\"gameCanvas\" width=\"256\" height=\"240\"\u003e\u003c/canvas\u003e\n  \u003c/p\u003e\n\u003c/body\u003e\n```\n\n## NPM\n\n### How to install\n\n```\n$ npm install nes-js\n```\n\n### How to build\n\n```\n$ npm install\n$ npm run all\n```\n\n## Default key configuration\n\nThis table shows the key - joypad configuration set by\n\n```html\n  window.onkeydown = function(e) { nes.handleKeyDown(e); };\n  window.onkeyup = function(e) { nes.handleKeyUp(e); };\n```\n\n| key          | joypad |\n|--------------|--------|\n| enter        | start  |\n| space        | select |\n| cursor-left  | left   |\n| cursor-up    | up     |\n| cursor-right | right  |\n| cursor-down  | down   |\n| x            | A      |\n| z            | B      |\n\n## APIs\n\nT.B.D.\n\n- NesJs\n  - Nes\n    - setRom()\n    - setDisplay()\n    - setAudio()\n    - bootup()\n    - run()\n    - handleKeyDown()\n    - handleKeyUp()\n  - Rom\n  - Display\n  - Audio\n\n## TODO\n\n- Performance optimization\n- Support more many mappers\n- Support unofficial CPU instructions\n- Gamepad API support\n\n\n## Links\n- Nes Dev\n  - [Nes Dev Wiki](http://wiki.nesdev.com/w/index.php/Nesdev_Wiki)\n- VR/AR\n  - [Three.js](https://github.com/mrdoob/three.js)\n  - [jsartoolkit5](https://github.com/artoolkit/jsartoolkit5)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakahirox%2Fnes-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakahirox%2Fnes-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakahirox%2Fnes-js/lists"}