get a fair rate from a repository based on 20 statistics
MIT License
A simple web extension that rate from you a github repository based on some elements and a small formula !
The rating for a GitHub repository is calculated using a weighted average of several factors. These factors are:
stars
: the number of stars the repository has receivedcommits
: the number of commits in the repositorycommitFrequency
: the frequency of commits in the repositorycontributors
: the number of contributors to the repositoryforks
: the number of forks of the repositoryreleases
: the number of releases of the repositoryissueFrequency
: the frequency of issues being opened and closed in the repositorywatchers
: the number of users watching the repositoryisArchived
: a binary value indicating whether the repository is archived (1) or not (0)branches
: the number of branches in the repositoryEach of these factors is given a weight in the formula, and the resulting value is divided by the sum of all the weights to get the final rating. The weights are:
So the formula for the rating is:
const rating = (
(stars / 5) + (commits / 7) + (commitFrequency / 5) +
(contributors / 4) + (forks / 5) + (releases / 3) +
(issueFrequency / 7) + (watchers / 10) + isArchived + (branches / 3)
) / (stars + commits + commitFrequency + contributors + forks + releases +
issueFrequency + watchers + isArchived + branches)