{"id":24204576,"url":"https://github.com/9elt/reko","last_synced_at":"2025-10-23T19:10:24.369Z","repository":{"id":63407426,"uuid":"564953036","full_name":"9elt/Reko","owner":"9elt","description":"Web API to match similar MyAnimeList users and get anime recommendations","archived":false,"fork":false,"pushed_at":"2024-08-09T08:33:58.000Z","size":352,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T00:38:14.181Z","etag":null,"topics":["anime","myanimelist"],"latest_commit_sha":null,"homepage":"https://reko.moe","language":"Rust","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/9elt.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-11-11T22:41:27.000Z","updated_at":"2025-04-28T14:31:57.000Z","dependencies_parsed_at":"2023-09-26T21:33:32.141Z","dependency_job_id":"3ddddf34-44b8-45cd-97b2-52daced31f94","html_url":"https://github.com/9elt/Reko","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/9elt/Reko","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9elt%2FReko","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9elt%2FReko/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9elt%2FReko/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9elt%2FReko/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/9elt","download_url":"https://codeload.github.com/9elt/Reko/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9elt%2FReko/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265888943,"owners_count":23844533,"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":["anime","myanimelist"],"created_at":"2025-01-13T23:17:26.725Z","updated_at":"2025-10-23T19:10:24.293Z","avatar_url":"https://github.com/9elt.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Reko API](https://reko.moe/)\n\nReko is a Web API to match similar [***MyAnimeList***](https://myanimelist.net) users and get anime recommendations. Works thanks to [*MyAnimeList API *beta v2**](https://myanimelist.net/apiconfig/references/api/v2).\n\n## Algorithm\n\nReko matching algorithm is **hash based**, it uses a 64-bit hash with each position representing an anime statistic. The latter are ordered by mal popularity weighted for mean score.\n\n\u003cblockquote\u003e\u003csmall\u003e\u003csup\u003ecomplete \u003ca href=\"statistics.md\"\u003ereference\u003c/a\u003e, example:\u003c/sup\u003e\u003c/small\u003e\n\n***`0`** PG-13 rating, **`1`** 12 Episodes series, **`2`** Aired in the 10s,  **`3`** Action genre, **. . .** **`63`** RX rating*\n\u003c/blockquote\u003e\n\nThe hash is generated from a user list, using the statistics of the last 256 anime he's watched. Each bit is assigned `1` when the corresponding stat has `times watched * scores` greater than the next one.\n\nIn few words, the hash roughly stores information on what the user **watches and scores** more than average. Similar users generate similar hashes and vice versa.\n\n### user comparison\n\nUsers are compared by computing the [***hamming distance***](https://en.wikipedia.org/wiki/Hamming_distance) on their hashes.\n\nSince genres and themes use most of the hash space (45 bits) the *hamming distance* is computed twice, first on the entire hash, then, with a mask that removes genres and themes bits.\n\nThe result is a number between 0 and 83, where 0 is 100% similarity and 83 is 0%.\n\n### anime recommendations\n\nAnime recommendations are taken from other users lists.\n\nRecommendations from the most similar users lists are ordered by the following function:\n\n```\nentry scores / (entry count + 1) - floor(avg. years from entry update / 2)\n```\n\nRecommendations from specific users are ordered by:\n\n```\nentry score - floor(years from entry update / 2)\n```\n\n## Documentation\n\nThe Reko API docs are available [**here**](https://reko.moe/docs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9elt%2Freko","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F9elt%2Freko","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9elt%2Freko/lists"}