{"id":16712950,"url":"https://github.com/gabrielcsapo/gh-metrics","last_synced_at":"2025-09-16T14:31:10.257Z","repository":{"id":57250848,"uuid":"61764534","full_name":"gabrielcsapo/gh-metrics","owner":"gabrielcsapo","description":"🚫 a cli to track github stats across different users github repos","archived":false,"fork":false,"pushed_at":"2017-12-16T08:54:55.000Z","size":597,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-12T03:00:37.942Z","etag":null,"topics":["cli","deprecated","github","metrics","node"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gabrielcsapo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-23T01:51:27.000Z","updated_at":"2024-03-22T21:00:26.000Z","dependencies_parsed_at":"2022-08-24T17:01:23.036Z","dependency_job_id":null,"html_url":"https://github.com/gabrielcsapo/gh-metrics","commit_stats":null,"previous_names":["gabrielcsapo/github-metrics"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gabrielcsapo/gh-metrics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielcsapo%2Fgh-metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielcsapo%2Fgh-metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielcsapo%2Fgh-metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielcsapo%2Fgh-metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabrielcsapo","download_url":"https://codeload.github.com/gabrielcsapo/gh-metrics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielcsapo%2Fgh-metrics/sbom","scorecard":{"id":416513,"data":{"date":"2025-08-11","repo":{"name":"github.com/gabrielcsapo/gh-metrics","commit":"b8120eff4eba74788e2a2743947e313f056f86ff"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/25 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T00:00:43.999Z","repository_id":57250848,"created_at":"2025-08-19T00:00:43.999Z","updated_at":"2025-08-19T00:00:43.999Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275432873,"owners_count":25463822,"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","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cli","deprecated","github","metrics","node"],"created_at":"2024-10-12T20:44:49.234Z","updated_at":"2025-09-16T14:31:09.737Z","avatar_url":"https://github.com/gabrielcsapo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e DEPRECATED: THIS WILL NO LONGER BE UNDER DEVELOPMENT\n\n# gh-metrics\n\n\u003e 📈 a cli to track github stats across different users github repos\n\n[![Npm Version](https://img.shields.io/npm/v/gh-metrics.svg)](https://www.npmjs.com/package/gh-metrics)\n[![Build Status](https://travis-ci.org/gabrielcsapo/gh-metrics.svg?branch=master)](https://travis-ci.org/gabrielcsapo/gh-metrics)\n[![Coverage Status](https://lcov-server.gabrielcsapo.com/badge/github%2Ecom/gabrielcsapo/gh-metrics.svg)](https://lcov-server.gabrielcsapo.com/coverage/github%2Ecom/gabrielcsapo/gh-metrics)\n[![Dependency Status](https://starbuck.gabrielcsapo.com/badge/github/gabrielcsapo/gh-metrics/status.svg)](https://starbuck.gabrielcsapo.com/github/gabrielcsapo/gh-metrics)\n[![devDependency Status](https://starbuck.gabrielcsapo.com/badge/github/gabrielcsapo/gh-metrics/dev-status.svg)](https://starbuck.gabrielcsapo.com/github/gabrielcsapo/gh-metrics#info=devDependencies)\n[![npm](https://img.shields.io/npm/dt/gh-metrics.svg)]()\n[![npm](https://img.shields.io/npm/dm/gh-metrics.svg)]()\n\n## Installation\n\n`npm install gh-metrics -g`\n\n## Usage\n\n\u003e command-line\n\n```\nUsage: gh-metrics [options]\n\n\nOptions:\n\n  -V, --version                 output the version number\n  -u, --user [user]             the name of the user that you want to get metrics for.\n  -t, --token [token]           github access token to make requests.\n  -k, --keys [keys]             keys to be passed to make the table based on the comma seperated keys you provide.\n  -s, --sort [sort]             key to be used to sort against the returned value\n  -a, --asc                     by default the sorting is descending if this is selected it will be ascending\n  -p, --page [page]             the page to start the search at, by default the limit is only 100, so pagination is necessary\n  -l, --limit [limit]           limit the number of repos that are being returned\n  --table                       output a table of the data\n  --github-protocol [protocol]  the protocol to query github\n  --github-host [url]           the url of the github instance to query\n  --github-debug                a flag that allows debug logs from the github client\n  --github-pathPrefix [prefix]  a prefix for the path for github\n  -h, --help                    output usage information\n```\n\n\u003e examples\n\n`gh-metrics --user gabrielcsapo` // this will call github using the public api\n\n`gh-metrics --user gabrielcsapo --token {token}` // this will make the call with an authenticated token\n\nDebugging any errors that occur during your call please preface with `DEBUG=gh-metrics` and example would look like\n\n```\nDEBUG=gh-metrics gh-metrics --user gabrielcsapo\n```\n\n\u003e programatic\n\n```javascript\nconst Metrics = require('gh-metrics');\nMetrics({\n    user: '',\n    token: '',\n    keys: [],\n    sort: '',\n    sortAsc: false,\n    limit: 10\n}, function(err, metrics) { });\n```\n\n### Keys Available\n\n```javascript\n[\n  'archive_url',\n  'assignees_url',\n  'blobs_url',\n  'branches_url',\n  'clone_url',\n  'collaborators_url',\n  'comments_url',\n  'commits',\n  'commits_url',\n  'compare_url',\n  'contents_url',\n  'contributors_url',\n  'created_at',\n  'days_stagnant',\n  'default_branch',\n  'deployments_url',\n  'description',\n  'deprecated',\n  'downloads_url',\n  'events_url',\n  'fork',\n  'forks',\n  'forks_count',\n  'forks_url',\n  'full_name',\n  'git_commits_url',\n  'git_refs_url',\n  'git_tags_url',\n  'git_url',\n  'has_downloads',\n  'has_issues',\n  'has_pages',\n  'has_wiki',\n  'health',\n  'homepage',\n  'hooks_url',\n  'html_url',\n  'id',\n  'issue_comment_url',\n  'issue_events_url',\n  'issues_url',\n  'keys_url',\n  'labels_url',\n  'language',\n  'languages',\n  'languages_url',\n  'last_contribution',\n  'merges_url',\n  'milestones_url',\n  'mirror_url',\n  'name',\n  'notifications_url',\n  'open_issues',\n  'open_issues_count',\n  'owner',\n  'permissions',\n  'private',\n  'pulls_url',\n  'pushed_at',\n  'releases_url',\n  'size',\n  'ssh_url',\n  'stargazers_count',\n  'stargazers_url',\n  'statuses_url',\n  'subscribers_url',\n  'subscription_url',\n  'svn_url',\n  'tags_url',\n  'teams_url',\n  'trees_url',\n  'topics',\n  'updated_at',\n  'url',\n  'watchers',\n  'watchers_count'\n ]\n ```\n\n## Example\n\n`gh-metrics --user gabrielcsapo --keys 'full_name, homepage, commits, open_issues_count, days_stagnant, health' --sort 'days_stagnant' --asc --table`\n\n| full_name                                       | homepage                                       | commits | open_issues_count | days_stagnant | health |\n| ----------------------------------------------- | ---------------------------------------------- | ------- | ----------------- | ------------- | ------ |\n| \"gabrielcsapo/json-ex\"                          | \"http://www.gabrielcsapo.com/json-ex/\"         | 6       | 0                 | 1             | \"🌞\"   |\n| \"gabrielcsapo/node-git-server\"                  | \"http://www.gabrielcsapo.com/node-git-server/\" | 27      | 2                 | 6             | \"🌞\"   |\n| \"gabrielcsapo/node-notebook\"                    | \"http://www.gabrielcsapo.com/node-notebook/\"   | 144     | 2                 | 7             | \"🌞\"   |\n| \"gabrielcsapo/gabrielcsapo.github.io\"           | \"http://www.gabrielcsapo.com\"                  | 77      | 2                 | 7             | \"🌞\"   |\n| \"gabrielcsapo/psychic-ui\"                       | \"http://www.gabrielcsapo.com/psychic-ui/\"      | 130     | 1                 | 10            | \"🌞\"   |\n| \"gabrielcsapo/lcov-server\"             | \"https://lcov-server.gabrielcsapo.com/\"  | 80      | 7                 | 21            | \"🌞\"   |\n| \"gabrielcsapo/espyjs\"                           |                                                | 6       | 0                 | 27            | \"🌞\"   |\n| \"gabrielcsapo/psychic\"                          | \"http://www.gabrielcsapo.com/psychic/\"         | 8       | 2                 | 45            | \"⛅️\"   |\n| \"gabrielcsapo/monotime\"                         | \"http://www.gabrielcsapo.com/monotime/\"        | 5       | 0                 | 51            | \"⛅️\"   |\n| \"gabrielcsapo/node-tester\"                      |                                                | 4       | 0                 | 95            | \"🌩\"   |\n| \"gabrielcsapo/prompt\"                           |                                                | 17      | 0                 | 99            | \"🌩\"   |\n| \"gabrielcsapo/node-distribute\"                  | \"http://www.gabrielcsapo.com/node-distribute/\" | 124     | 7                 | 101           | \"🌩\"   |\n| \"gabrielcsapo/gh-metrics\"                   |                                                | 40      | 2                 | 131           | \"🌩\"   |\n| \"gabrielcsapo/granary-server\"                   | \"http://granaryjs.com\"                         | 168     | 1                 | 135           | \"🌩\"   |\n| \"gabrielcsapo/compress-object\"                  | \"http://www.gabrielcsapo.com/compress-object/\" | 22      | 1                 | 141           | \"🌩\"   |\n| \"gabrielcsapo/node-chat-rooms\"                  | \"http://www.gabrielcsapo.com/node-chat-rooms/\" | 71      | 1                 | 148           | \"🌩\"   |\n| \"gabrielcsapo/npm-what\"                         |                                                | 33      | 3                 | 149           | \"🌩\"   |\n| \"gabrielcsapo/grunt-screenshot\"                 |                                                | 53      | 1                 | 170           | \"🌩\"   |\n| \"gabrielcsapo/node-dashboard\"                   |                                                | 79      | 2                 | 259           | \"🌩\"   |\n| \"gabrielcsapo/node-flat-db\"                     |                                                | 226     | 0                 | 264           | \"🌩\"   |\n| \"gabrielcsapo/node-timecapsule\"                 |                                                | 7       | 0                 | 271           | \"🌩\"   |\n| \"gabrielcsapo/granary\"                          | \"http://granaryjs.com\"                         | 65      | 0                 | 291           | \"🌩\"   |\n| \"gabrielcsapo/node-document-parser\"             |                                                | 10      | 0                 | 301           | \"🌩\"   |\n| \"gabrielcsapo/mocha-markdown-extended-reporter\" |                                                | 2       | 0                 | 317           | \"🌩\"   |\n| \"gabrielcsapo/granary-sample\"                   |                                                | 5       | 0                 | 376           | \"🌩\"   |\n| \"gabrielcsapo/dobby\"                            |                                                | 11      | 0                 | 645           | \"🌩\"   |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielcsapo%2Fgh-metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrielcsapo%2Fgh-metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielcsapo%2Fgh-metrics/lists"}