{"id":16135099,"url":"https://github.com/adngdb/entity-system-js","last_synced_at":"2026-03-09T06:32:41.495Z","repository":{"id":1791144,"uuid":"2715062","full_name":"adngdb/entity-system-js","owner":"adngdb","description":"ensy - A very simple Entity System for JavaScript","archived":false,"fork":false,"pushed_at":"2023-03-04T03:58:32.000Z","size":597,"stargazers_count":88,"open_issues_count":10,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-01-30T22:51:08.971Z","etag":null,"topics":["ecs","entity","entity-component","entity-system","entity-systems","game-development","gamedev","gamedev-library","javascript"],"latest_commit_sha":null,"homepage":"https://entity-system-js.readthedocs.io/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Addepar/ember-charts","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adngdb.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2011-11-05T12:23:00.000Z","updated_at":"2025-12-09T13:10:38.000Z","dependencies_parsed_at":"2023-07-05T19:16:07.023Z","dependency_job_id":null,"html_url":"https://github.com/adngdb/entity-system-js","commit_stats":{"total_commits":113,"total_committers":7,"mean_commits":"16.142857142857142","dds":"0.16814159292035402","last_synced_commit":"4e4c38a9ba0f38960a505527c44014dec7e68c12"},"previous_names":["adriangaudebert/entity-system-js"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/adngdb/entity-system-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adngdb%2Fentity-system-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adngdb%2Fentity-system-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adngdb%2Fentity-system-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adngdb%2Fentity-system-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adngdb","download_url":"https://codeload.github.com/adngdb/entity-system-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adngdb%2Fentity-system-js/sbom","scorecard":{"id":8906,"data":{"date":"2025-08-11","repo":{"name":"github.com/adngdb/entity-system-js","commit":"4e4c38a9ba0f38960a505527c44014dec7e68c12"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"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":-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":"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":"Code-Review","score":1,"reason":"Found 4/22 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":"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":"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: MIT-LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: MIT-LICENSE.txt: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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 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":"40 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h","Warn: Project is vulnerable to: GHSA-753j-mpmx-qq6g","Warn: Project is vulnerable to: GHSA-7cx3-6m66-7c5m","Warn: Project is vulnerable to: GHSA-8w49-h785-mj3c","Warn: Project is vulnerable to: PYSEC-2023-75 / GHSA-hj3f-6gcp-jg8j","Warn: Project is vulnerable to: GHSA-qppv-j76h-2rpx","Warn: Project is vulnerable to: GHSA-w235-7p84-xx57","Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-3w5v-p54c-f74x","Warn: Project is vulnerable to: GHSA-6x77-rpqf-j6mw","Warn: Project is vulnerable to: GHSA-hwcf-pp87-7x6p","Warn: Project is vulnerable to: GHSA-phwq-j96m-2c2q","Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-6vfc-qv3f-vr6c","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc"],"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-14T14:08:44.522Z","repository_id":1791144,"created_at":"2025-08-14T14:08:44.523Z","updated_at":"2025-08-14T14:08:44.523Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30284776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","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":["ecs","entity","entity-component","entity-system","entity-systems","game-development","gamedev","gamedev-library","javascript"],"created_at":"2024-10-09T23:05:17.519Z","updated_at":"2026-03-09T06:32:41.463Z","avatar_url":"https://github.com/adngdb.png","language":"JavaScript","readme":"# ensy: Entity System for JavaScript\n\n``ensy`` is a JavaScript implementation of the Entity System model as described by Adam Martin\nin his blog post series [Entity Systems are the future of MMOs](http://t-machine.org/index.php/2009/10/26/entity-systems-are-the-future-of-mmos-part-5/).\n\n\u003e Component/Entity Systems are an architectural pattern used mostly in game development. A CES follows the Composition over Inheritance principle to allow for greater flexibility when defining entities (anything that's part of a game's scene: enemies, doors, bullets) by building out of individual parts that can be mixed-and-matched. This eliminates the ambiguity problems of long inheritance chains and promotes clean design. However, CES systems do incur a small cost to performance.\n\n— From the [Entity Systems Wiki](http://entity-systems.wikidot.com/)\n\n## Installation\n\nThis module is available on [``npm``](http://npmjs.com/package/ensy) as ``ensy``. It has no dependencies.\n\n``npm install --save ensy``\n\n## Usage\n\n```javascript\nimport EntityManager from 'ensy';\n\nlet manager = new EntityManager();\n\n// Create a component and add it to the manager.\nconst PlayerComponent = {\n    name: 'Player',\n    description: \"The player's state\",\n    state: {\n        life: 100,\n        strength: 18,\n        charisma: 3,\n    }\n};\nmanager.addComponent(PlayerComponent.name, PlayerComponent);\n\n// Create a new entity.\nconst playerId = manager.createEntity(['Player']);\n\n// Update the player's state:\nlet playerData = manager.getComponentDataForEntity('Player', playerId);\nplayerData.life = 80;\n\n// Which is equivalent to:\nmanager.updateComponentDataForEntity('Player', playerId, {\n    life: 80,\n});\n\n// Which can also be done when creating the entity:\nconst playerId = manager.createEntity(['Player'], null, {\n    Player: {\n        life: 80,\n    },\n});\n\nconsole.log(playerData);\n// { life: 80, strength: 18, charisma: 3 }\n}\n```\n\n## Documentation\n\nThe documentation is available on [Read the docs](https://entity-system-js.readthedocs.io/). All methods are well documented and parameters are described.\n\nFor an overall explanation of ``ensy``, you can read my blog post [ensy - Entity System Reloaded](http://adrian.gaudebert.fr/blog/post/2015/07/04/ensy-mdash-entity-system-reloaded).\n\n## Examples\n\nThere are examples in the [examples](https://github.com/adngdb/entity-system-js/tree/master/examples) directory:\n\n* [Concentration](https://github.com/adngdb/entity-system-js/tree/master/examples/concentration)\n* [Total Madness Arena](https://github.com/adngdb/nth) (Jam game, made in 3 days)\n* Made something with ``ensy``? Add it here!\n\n## For developers\n\nInstall the dependencies with ``npm install``. The source files are in ``src/``.\nThe code uses es6 features, and is compiled to es5 using ``babel`` and ``rollup``.\n\n### Building the code\n\n```bash\n$ npm run build\n```\n\nWe use [rollup](http://rollupjs.org/) and [babel](http://babeljs.io/) to\ncompile the code from es6 to es5, and [uglify](http://lisperator.net/uglifyjs/)\nto minify the source code.\n\n### Running tests\n\n```bash\n$ npm test\n```\n\nTo have tests watch your files and re-run when they change:\n\n```bash\n$ npm run test-w\n```\n\nTo run the tests in your browser:\n\n```bash\n$ npm run test-browser\n```\n\n### Building the API documentation\n\n```bash\n$ npm run build_doc\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadngdb%2Fentity-system-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadngdb%2Fentity-system-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadngdb%2Fentity-system-js/lists"}