{"id":19777168,"url":"https://github.com/ppy/osu-beatmap-difficulty-lookup-cache","last_synced_at":"2025-04-30T19:31:33.972Z","repository":{"id":40409806,"uuid":"408028912","full_name":"ppy/osu-beatmap-difficulty-lookup-cache","owner":"ppy","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-11T10:06:30.000Z","size":66,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-11T10:30:23.887Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ppy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-09-19T04:14:56.000Z","updated_at":"2024-11-11T10:06:23.000Z","dependencies_parsed_at":"2024-11-11T10:36:00.135Z","dependency_job_id":null,"html_url":"https://github.com/ppy/osu-beatmap-difficulty-lookup-cache","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppy%2Fosu-beatmap-difficulty-lookup-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppy%2Fosu-beatmap-difficulty-lookup-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppy%2Fosu-beatmap-difficulty-lookup-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppy%2Fosu-beatmap-difficulty-lookup-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppy","download_url":"https://codeload.github.com/ppy/osu-beatmap-difficulty-lookup-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224221688,"owners_count":17275896,"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","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":[],"created_at":"2024-11-12T05:23:28.143Z","updated_at":"2024-11-12T05:23:28.689Z","avatar_url":"https://github.com/ppy.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# osu-beatmap-difficulty-lookup-cache\n\nA memory-based caching layer for beatmap difficulty (star rating and attribute) lookups which cannot be easily stored to a database.\n\n# Current Versions\n\nThis is part of a group of projects which are used in live deployments where the deployed version is critical to producing correct results. The `master` branch tracks ongoing developments. If looking to use the correct version for matching live values, please [consult this wiki page](https://github.com/ppy/osu-infrastructure/wiki/Star-Rating-and-Performance-Points) for the latest information.\n\n# Query API\n\n## Attributes\n\n```\ncurl -X POST -H \"Content-Type: application/json\" \\\n    -d '{ \"beatmap_id\": 129891, \"ruleset_id\": 0, \"mods\": [ { \"acronym\": \"DT\" } ] }' \\\n    http://localhost:80/attributes\n    \n{\"aimStrain\":4.578457906273151,\"speedStrain\":6.196480875019435,\"approachRate\":10.333333333333332,\"overallDifficulty\":9.777777777777779,\"hitCircleCount\":1646,\"spinnerCount\":2,\"mods\":[{\"acronym\":\"DT\",\"speedChange\":1.5,\"settingDescription\":\"\",\"ranked\":false}],\"skills\":[{},{}],\"starRating\":11.474577136820706,\"maxCombo\":2385}\n```\n\n`ruleset_id` and `mods` are optional.\n\n## Star rating\n\n```\ncurl -X POST -H \"Content-Type: application/json\" \\\n    -d '{ \"beatmap_id\": 129891, \"ruleset_id\": 0, \"mods\": [ { \"acronym\": \"DT\" } ] }' \\\n    http://localhost:80/rating\n    \n11.474577136820706\n```\n\n`ruleset_id` and `mods` are optional.\n\n## Purge\n\n```\ncurl -X DELETE \\\n    http://localhost:80/cache?beatmap_id=129891\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppy%2Fosu-beatmap-difficulty-lookup-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppy%2Fosu-beatmap-difficulty-lookup-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppy%2Fosu-beatmap-difficulty-lookup-cache/lists"}