{"id":23388322,"url":"https://github.com/brunohpaiva/osu-parser","last_synced_at":"2026-02-03T14:32:48.121Z","repository":{"id":118303357,"uuid":"294404429","full_name":"brunohpaiva/osu-parser","owner":"brunohpaiva","description":"A library to read and write osu files for Node.js","archived":false,"fork":false,"pushed_at":"2020-09-17T20:17:48.000Z","size":379,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-20T04:38:24.599Z","etag":null,"topics":["npm-package","osu","osu-libraries","parser-library"],"latest_commit_sha":null,"homepage":"https://brunohpaiva.github.io/osu-parser","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/brunohpaiva.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"publiccode":null,"codemeta":null}},"created_at":"2020-09-10T12:34:11.000Z","updated_at":"2023-03-11T07:15:20.000Z","dependencies_parsed_at":"2023-07-14T23:15:21.772Z","dependency_job_id":null,"html_url":"https://github.com/brunohpaiva/osu-parser","commit_stats":{"total_commits":28,"total_committers":1,"mean_commits":28.0,"dds":0.0,"last_synced_commit":"c046565c62ad1aecf580f453cfacef59e1ce5a1d"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/brunohpaiva/osu-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunohpaiva%2Fosu-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunohpaiva%2Fosu-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunohpaiva%2Fosu-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunohpaiva%2Fosu-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brunohpaiva","download_url":"https://codeload.github.com/brunohpaiva/osu-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunohpaiva%2Fosu-parser/sbom","scorecard":{"id":255349,"data":{"date":"2025-08-11","repo":{"name":"github.com/brunohpaiva/osu-parser","commit":"c046565c62ad1aecf580f453cfacef59e1ce5a1d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/28 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":"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":"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":"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":"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"}},{"name":"Vulnerabilities","score":0,"reason":"41 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-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-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-mhxj-85r3-2x55","Warn: Project is vulnerable to: GHSA-8mmm-9v2q-x3f9","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-7wwv-vh3v-89cq","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-4r62-v4vq-hr96","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-px4h-xg32-q955","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"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-17T09:34:38.728Z","repository_id":118303357,"created_at":"2025-08-17T09:34:38.728Z","updated_at":"2025-08-17T09:34:38.728Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29047565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["npm-package","osu","osu-libraries","parser-library"],"created_at":"2024-12-22T02:18:49.245Z","updated_at":"2026-02-03T14:32:48.103Z","avatar_url":"https://github.com/brunohpaiva.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# osu-parser\n\n[![npm version](https://img.shields.io/npm/v/@brunohpaiva/osu-parser.svg?style=flat)](https://www.npmjs.org/package/@brunohpaiva/osu-parser)\n[![npm downloads](https://img.shields.io/npm/dm/@brunohpaiva/osu-parser.svg?style=flat)](http://npm-stat.com/charts.html?package=@brunohpaiva/osu-parser)\n[![npm bundle size](https://img.shields.io/bundlephobia/min/@brunohpaiva/osu-parser?style=flat)](https://www.npmjs.org/package/@brunohpaiva/osu-parser)\n\nA library to read and write osu files for Node.js\n\n## Installing\n\nUsing npm:\n\n```bash\n$ npm install @brunohpaiva/osu-parser\n```\n\nUsing yarn:\n\n```bash\n$ yarn add @brunohpaiva/osu-parser\n```\n\n## Examples\n\n#### Replay file (.osr)\n\nReading from a file\n```ts\nimport { OsuReplay } from '@brunohpaiva/osu-parser';\nimport fs from 'fs';\n\n// Path of local .osr file\nconst filePath = './osu-replay-input.osr';\n// Read file contents synchronously and stores it in a buffer\nconst buffer = fs.readFileSync(filePath);\n// Parses the buffer to a OsuReplay\nconst replay = OsuReplay.parse(buffer);\n\nconsole.log(replay);\n```\n\nWriting to a file\n```ts\nimport { OsuReplay } from '@brunohpaiva/osu-parser';\nimport fs from 'fs';\n\n// Creates a new replay\nconst replay = new OsuReplay();\n\n// Set some data to it\nreplay.type = 0; // osu! standard\nreplay.gameVersion = 20200724;\nreplay.beatmapHash = 'hash';\nreplay.playerName = 'player';\nreplay.replayHash = 'hash';\nreplay.count300s = 100;\nreplay.count100s = 50;\nreplay.count50s = 25;\nreplay.countGekis = 0;\nreplay.countKatus = 5;\nreplay.countMisses = 1;\nreplay.totalScore = 1953902;\nreplay.greatestCombo = 328;\nreplay.perfectCombo = false;\nreplay.modsUsed = ['DoubleTime'];\nreplay.lifeBarGraph = 'lifeBar';\nreplay.windowsTicks = 637321042198407465n;\nreplay.actions = [\n  {\n    timestamp: 10, // Time in milliseconds since previous action\n    x: 10, // x coordinate from 0 to 512\n    y: 23, // y coordinate from 0 to 384\n    buttons: ['KeyboardOne'],\n  },\n  // More actions\n];\nreplay.onlineScoreId = 98247527n;\n\nconst osuBuffer = replay.writeToOsuBuffer();\nconst buffer = osuBuffer.buffer;\n\n// Path to store the generated .osr file\nconst filePath = './osu-replay-output.osr';\n// Writes the buffer to a file synchronously\nfs.writeFileSync(filePath, buffer);\n```\n\n#### OsuBuffer\n\nReading and writing with a `OsuBuffer`\n```ts\nimport { OsuBuffer } from '@brunohpaiva/osu-parser';\n\n// Initialize a empty buffer.\nconst osuBuffer = new OsuBuffer();\nosuBuffer.writeInt(10);\nosuBuffer.writeVarChar('A text');\nosuBuffer.writeByte(5);\n\nconsole.log(osuBuffer.buffer);\n// Output: \u003cBuffer 0a 00 00 00 0b 06 41 20 74 65 78 74 05\u003e\n\nconsole.log(osuBuffer.readInt());\n// Output: 10\n\nconsole.log(osuBuffer.readVarChar());\n// Output: A text\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunohpaiva%2Fosu-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrunohpaiva%2Fosu-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunohpaiva%2Fosu-parser/lists"}