https://github.com/fedir/ghstat
Statistical multi-criteria decision-making comparator of open source projects
https://github.com/fedir/ghstat
github-api golang statistics
Last synced: 7 days ago
JSON representation
Statistical multi-criteria decision-making comparator of open source projects
- Host: GitHub
- URL: https://github.com/fedir/ghstat
- Owner: fedir
- License: gpl-3.0
- Created: 2018-03-10T13:36:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-06T16:15:53.000Z (over 2 years ago)
- Last Synced: 2024-06-20T04:46:28.981Z (over 1 year ago)
- Topics: github-api, golang, statistics
- Language: Go
- Homepage: http://fedir.github.io/development/2018/04/02/using-ghstat-open-source-projects-statistics-and-ratings
- Size: 58.5 MB
- Stars: 14
- Watchers: 4
- Forks: 2
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ghstat
[](https://travis-ci.org/fedir/ghstat)
[](https://scrutinizer-ci.com/g/fedir/ghstat/?branch=master)
[](https://goreportcard.com/report/github.com/fedir/ghstat)
[](https://codeclimate.com/github/fedir/go-github-statistics/maintainability)
[](https://codecov.io/gh/fedir/ghstat)
[](https://godoc.org/github.com/fedir/ghstat)
[](https://www.gnu.org/licenses/gpl-3.0)
Statistical multi-criteria decision-making comparator for selected Github's projects.
Project's overview was given on Open Source Summit Europe 2018 "Methodology of Multi-Criteria Comparison and Typology of Open Source Projects" - https://events.linuxfoundation.org/wp-content/uploads/2017/12/Methodology-of-Multi-Criteria-Comparison-and-Typology-of-Open-Source-Project-Fedir-Rykhtik-Stratis-1.pdf
## Getting started
Installation instruction:
* Generate a token for Your GitHub account: https://github.com/settings/tokens
* Select following scope: `repo` and all it's sub-scopes
* Build the app
* Configure the project with environment variables
* Launch
go get -u -v github.com/fedir/ghstat
cd [package location]
go build
mkdir tmp
export GH_USR="your_gh_username" && export GH_PASS="your_gh_api_token"
./ghstat
The project contains already some data received from Github API for local testing and debugging, but You could update it in the following way:
./ghstat --cc
bash bin/build_all.sh
If You have timeouts, You could check the rate limit with :
./ghstat -l
Usage example to compare most famous JS frameworks
./ghstat -r angular/angular,facebook/react,vuejs/vue
Usage example to compare most famous PHP frameworks
./ghstat -r laravel/framework,symfony/symfony,yiisoft/yii2,bcit-ci/CodeIgniter
After that, `result.csv` file will be created (or updated, if it's already exists) with the statistics of selected repositories.
## Comparaison methodology
At the moment We choosed following metrics, here they are, in alphabetical order :
* Active forkers percentage - more is better
* Age in days - newest is better :)
* Closed issues, % - more is better
* Watchers - more is better
* Total commits - more is better
* More precisely, it's total commits by existing contributors, commits of deleted accounts, will not be taken in account
## Ratings
[Detailed statistics with ratings made with ghstat](https://github.com/fedir/ghstat/blob/master/ratings.md)