{"id":50530291,"url":"https://ondras.github.io/rot.js/","last_synced_at":"2026-06-20T07:00:33.169Z","repository":{"id":3346427,"uuid":"4391145","full_name":"ondras/rot.js","owner":"ondras","description":"ROguelike Toolkit in JavaScript. Cool dungeon-related stuff, interactive manual, documentation, tests!","archived":false,"fork":false,"pushed_at":"2024-11-13T07:22:29.000Z","size":3780,"stargazers_count":2675,"open_issues_count":54,"forks_count":265,"subscribers_count":90,"default_branch":"master","last_synced_at":"2026-03-23T00:52:17.283Z","etag":null,"topics":["hacktoberfest","library","roguelike"],"latest_commit_sha":null,"homepage":"https://ondras.github.io/rot.js","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ondras.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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},"funding":{"github":"ondras","custom":["https://www.buymeacoffee.com/ondras","https://www.paypal.com/donate/?hosted_button_id=7WXVKF3ZJ9FZE"]}},"created_at":"2012-05-21T07:58:45.000Z","updated_at":"2026-03-21T08:00:36.000Z","dependencies_parsed_at":"2023-01-13T13:00:10.142Z","dependency_job_id":"f9b2633e-feb7-4239-8a81-c5da5d03b740","html_url":"https://github.com/ondras/rot.js","commit_stats":{"total_commits":450,"total_committers":46,"mean_commits":9.782608695652174,"dds":"0.40888888888888886","last_synced_commit":"fcb47ced331b0a05e56ad05556ffa05f61bafd99"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/ondras/rot.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondras%2Frot.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondras%2Frot.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondras%2Frot.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondras%2Frot.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ondras","download_url":"https://codeload.github.com/ondras/rot.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondras%2Frot.js/sbom","scorecard":{"id":706727,"data":{"date":"2025-08-11","repo":{"name":"github.com/ondras/rot.js","commit":"46782e248c2db9d379a5e4f13bb8323f18dff04b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 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":7,"reason":"Found 11/14 approved changesets -- score normalized to 7","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":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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yaml:1","Warn: no topLevel permission defined: .github/workflows/check-dev-dependencies.yaml:1","Warn: no topLevel permission defined: .github/workflows/typos-check.yaml: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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license.txt:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: 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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/ondras/rot.js/build.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/ondras/rot.js/build.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-dev-dependencies.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/ondras/rot.js/check-dev-dependencies.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-dev-dependencies.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/ondras/rot.js/check-dev-dependencies.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/typos-check.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/ondras/rot.js/typos-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/typos-check.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/ondras/rot.js/typos-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/typos-check.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/ondras/rot.js/typos-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/typos-check.yaml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/ondras/rot.js/typos-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/typos-check.yaml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/ondras/rot.js/typos-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/typos-check.yaml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/ondras/rot.js/typos-check.yaml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/build.yaml:21","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned","Info:   0 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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 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":"13 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-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-pq67-2wwv-3xjx","Warn: Project is vulnerable to: GHSA-8cj5-5rvv-wf4v","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"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-22T06:49:40.668Z","repository_id":3346427,"created_at":"2025-08-22T06:49:40.668Z","updated_at":"2025-08-22T06:49:40.668Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34560266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"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":["hacktoberfest","library","roguelike"],"created_at":"2026-06-03T13:00:24.601Z","updated_at":"2026-06-20T07:00:33.163Z","avatar_url":"https://github.com/ondras.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ondras","https://www.buymeacoffee.com/ondras","https://www.paypal.com/donate/?hosted_button_id=7WXVKF3ZJ9FZE"],"categories":["Libraries"],"sub_categories":[],"readme":"# rot.js\n\nROguelike Toolkit in JavaScript. For more info, see https://ondras.github.io/rot.js.\n\n## Library\n\nThere are multiple ways of including rot.js in your project.\n\n### Downloading\n\nYou can get rot.js using either of these methods:\n\n  - clone this repository to gain full source code access;\n  - `npm install rot-js`;\n  - download the [prebuilt rot.js file](dist/rot.js) (or the [minified rot.min.js file](dist/rot.min.js)) to include it in your project.\n\n### Usage\n\nRot.js is written in TypeScript, but its code is available in multiple formats. You can pick the one that best suits your development needs.\n\n  1. The `lib/` directory contains the code in [ES2015 modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import). These can be used in modern browsers directly, without any transpilation/bundling step. An [example](examples/native-modules/) shows how to do that.\n\n  1. For practical reasons, individual modules should be bundled to make your application more compact. You are free to use any bundler that understands ES2015 modules. If you want to support older browsers, you should also transpile your code -- there is [an example using babel and rollup](examples/bundled-modules/) that shows how to do that. This is the recommended way of using rot.js.\n\n  1. If you do not fancy modern modules and/or transpilation, you can grab a [pre-built bundle](dist/rot.js) and include it in your page using traditional `\u003cscript\u003e` tag. This bundle puts rot.js into a global `ROT` namespace and uses ES5 (supported even by older browsers). See an [example](examples/dist/) of this approach.\n\n  1. Finally, the pre-built budle also comes with [a minified version](dist/rot.min.js) that works the same, but its size has been reduced. The usage is the same as in the previous example.\n\n## Node.js\n\nMost parts of rot.js are usable from within node.js (server-side JavaScript). The `Display` class needs to use the `\"term\"` layout backend:\n\n```js\nlet display = new ROT.Display({width:40, height:9, layout:\"term\"});\ndisplay.draw(5,  4, \"@\");\ndisplay.draw(15, 4, \"%\", \"#0f0\");          // foreground color\ndisplay.draw(25, 4, \"#\", \"#f00\", \"#009\");  // and background color\n```\n\n### Usage\n\nThe pre-bundled rot.js package can be loaded as a CommonJS module. There is an [example](examples/node/) that shows basic usage.\n\n## Contributing\n\nROguelike Toolkit is largely considered \"feature-complete\", but bugfixes, documentation, and some new features are welcomed. Development should happen in the `/src` folder, and then the build process creates the `/lib`, `/dist`, and `/doc` folders before serving the project.\n\n![Visual layout of the build process](./build.png)\n\nThe command to rebuild everything:\n\n```sh\nnpm install\nmake all\n```\n\n## Misc\n\nRogueBasin page (with links to some rot.js-based games): http://roguebasin.com/index.php/Rot.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/ondras.github.io%2Frot.js%2F","html_url":"https://awesome.ecosyste.ms/projects/ondras.github.io%2Frot.js%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/ondras.github.io%2Frot.js%2F/lists"}