{"id":27287736,"url":"https://github.com/bbougon/git-stats","last_synced_at":"2026-05-07T17:35:00.783Z","repository":{"id":150371594,"uuid":"617951686","full_name":"bbougon/git-stats","owner":"bbougon","description":"Retrieve Gitlab/GitHub statistics usage","archived":false,"fork":false,"pushed_at":"2023-07-23T22:47:56.000Z","size":5740,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-29T05:20:32.386Z","etag":null,"topics":["github","gitlab","merge-request","pull-request"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/bbougon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2023-03-23T13:03:06.000Z","updated_at":"2025-01-30T13:27:20.000Z","dependencies_parsed_at":"2025-04-11T20:34:01.823Z","dependency_job_id":"eeee861a-8d3b-4558-a874-581cfc031a1c","html_url":"https://github.com/bbougon/git-stats","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/bbougon/git-stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbougon%2Fgit-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbougon%2Fgit-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbougon%2Fgit-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbougon%2Fgit-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbougon","download_url":"https://codeload.github.com/bbougon/git-stats/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbougon%2Fgit-stats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32748805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["github","gitlab","merge-request","pull-request"],"created_at":"2025-04-11T20:27:18.450Z","updated_at":"2026-05-07T17:35:00.767Z","avatar_url":"https://github.com/bbougon.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git stats\n\nProvide MR/PR statistics for your Gitlab/GitHub projects\n\n## Install\n\nRun `npm install -g gitflows-stats`\n\n### Prerequisite\n\n**Generate a token to use the API:**\n\n- [Gitlab](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html)\n  - Have a token with enough privilege (`read_api`)\n- [GitHub](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-personal-access-token-classic)\n  - Generate a personal access token\n\n## Usage\n\n- `gitflows-stats --help` will print:\n\n  ```shell\n  Usage: index [options] [command]\n\n  Options:\n  -h, --help                                        display help for command\n\n  Commands:\n  gitlab [options] \u003ctoken\u003e \u003cprojectId\u003e \u003cperiod\u003e     Provide merge requests statistics on a Gitlab project for a given period\n  github [options] \u003ctoken\u003e \u003cowner\u003e \u003crepo\u003e \u003cperiod\u003e  Provide pull requests statistics on a GitHub project for a given period\n  help [command]                                    display help for command\n  ```\n\n- the `\u003cperiod\u003e` parameter has an optional end and may be in the following format:\n\n  - `2023-01-01,2023-01-31` will retrieve all the merged events between these 2 dates\n  - `2023-01-01` will retrieve all the merged events between the given date and now\n\n- `gitflows-stats gitlab \u003cTOKEN\u003e \u003cPROJECT_ID\u003e \u003cPERIOD\u003e` (\u003cPERIOD\u003e in the following format `2023-01-01,2023-01-31`) will print:\n  ```json\n  {\n    \"average\": {\n      \"months\": 0,\n      \"days\": 4,\n      \"hours\": 22,\n      \"minutes\": 48,\n      \"seconds\": 0\n    },\n    \"total\": {\n      \"merged\": 15,\n      \"closed\": 2,\n      \"opened\": 3,\n      \"all\": 20\n    },\n    \"data\": [\n      [\n        2023,\n        [\n          {\n            \"Week 9\": 1\n          },\n          {\n            \"Week 10\": 5\n          },\n          {\n            \"Week 11\": 3\n          },\n          {\n            \"Week 12\": 2\n          },\n          {\n            \"Week 13\": 2\n          },\n          {\n            \"Week 14\": 2\n          }\n        ]\n      ]\n    ]\n  }\n  ```\n- `gitflows-stats gitlab \u003cTOKEN\u003e \u003cPROJECT_ID\u003e \u003cPERIOD\u003e --format html` (\u003cPERIOD\u003e in the following format `2023-01-01,2023-01-31`) will generate a `report` folder with an `index.html` where the command has been executed.\n\n  **The report will automatically open after generation.**\n\n  **example:**\n  ![](documentation/chart_screenshot.png)\n\n### Available output format\n\n- **Console (Default):** print a lightweight statistics in JSON into the console\n- **HTML:** generates a `HTML` file, opening automatically in your browser\n- **CSV:** generates a `CSV` file with all raws data\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbougon%2Fgit-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbougon%2Fgit-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbougon%2Fgit-stats/lists"}