{"id":15047138,"url":"https://github.com/forthright48/codeforces-rating-system","last_synced_at":"2026-01-01T22:31:24.961Z","repository":{"id":57202301,"uuid":"118354491","full_name":"forthright48/codeforces-rating-system","owner":"forthright48","description":"An implementation of Codeforces rating system as described on http://codeforces.com/contest/1/submission/13861109","archived":false,"fork":false,"pushed_at":"2019-03-30T00:22:18.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T05:16:13.089Z","etag":null,"topics":["codeforces","competitive-programming","cpps","elo-rating","rating-system"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/forthright48.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}},"created_at":"2018-01-21T16:56:08.000Z","updated_at":"2022-01-24T15:35:16.000Z","dependencies_parsed_at":"2022-09-17T04:10:25.061Z","dependency_job_id":null,"html_url":"https://github.com/forthright48/codeforces-rating-system","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forthright48%2Fcodeforces-rating-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forthright48%2Fcodeforces-rating-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forthright48%2Fcodeforces-rating-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forthright48%2Fcodeforces-rating-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forthright48","download_url":"https://codeload.github.com/forthright48/codeforces-rating-system/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243473502,"owners_count":20296563,"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":["codeforces","competitive-programming","cpps","elo-rating","rating-system"],"created_at":"2024-09-24T20:54:45.592Z","updated_at":"2026-01-01T22:31:24.892Z","avatar_url":"https://github.com/forthright48.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codeforces Rating System\n\nA javascript implementation of CodeForces Rating system. Translated from [MikeMirzayanov's Code](http://codeforces.com/contest/1/submission/13861109)\n\n# How to install it\n\n```\nyarn install codeforces-rating-system\n```\n\n# How to use it\n\n```\nconst {getNewRatings} = require('codeforces-rating-system');\n\nconst contestants = [{\n  position: 1,\n  username: 'forthright48',\n  previousRating: 1500,\n}, {\n  position: 2,\n  username: 'flash_7',\n  previousRating: 1500,\n}, {\n  position: 2,\n  username: 'labib666',\n  previousRating: 1500,\n}];\n\nconsole.log(getNewRatings(contestants));\n\n// Output\n// [ { position: 1,\n//     username: 'forthright48',\n//     previousRating: 1500,\n//     delta: 100.87528483072916,\n//     newRating: 1600.8752848307292 },\n//   { position: 2,\n//     username: 'flash_7',\n//     previousRating: 1500,\n//     delta: -51.937642415364586,\n//     newRating: 1448.0623575846355 },\n//   { position: 2,\n//     username: 'labib',\n//     previousRating: 1500,\n//     delta: -51.937642415364586,\n//     newRating: 1448.0623575846355 } ]\n\n```\n\n# index.js vs dist.js\n\n`dist.js` file is ES5 version of `index.js`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforthright48%2Fcodeforces-rating-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforthright48%2Fcodeforces-rating-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforthright48%2Fcodeforces-rating-system/lists"}