{"id":17454816,"url":"https://github.com/ionicabizau/github-stats","last_synced_at":"2025-04-06T04:09:56.625Z","repository":{"id":41063247,"uuid":"42532574","full_name":"IonicaBizau/github-stats","owner":"IonicaBizau","description":":chart_with_upwards_trend: Visualize stats about GitHub users and projects in your terminal.","archived":false,"fork":false,"pushed_at":"2024-01-02T09:03:50.000Z","size":205,"stargazers_count":278,"open_issues_count":2,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-29T21:08:02.837Z","etag":null,"topics":["hacktoberfest"],"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/IonicaBizau.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2015-09-15T16:42:01.000Z","updated_at":"2025-01-13T12:47:41.000Z","dependencies_parsed_at":"2024-06-21T19:07:10.732Z","dependency_job_id":"611b0a58-144f-42da-834c-0daaeaab5e64","html_url":"https://github.com/IonicaBizau/github-stats","commit_stats":{"total_commits":69,"total_committers":4,"mean_commits":17.25,"dds":0.2753623188405797,"last_synced_commit":"a2ee2a99d5e55f078ec9e72da838df2504ecc18d"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fgithub-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fgithub-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fgithub-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fgithub-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IonicaBizau","download_url":"https://codeload.github.com/IonicaBizau/github-stats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430868,"owners_count":20937874,"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":["hacktoberfest"],"created_at":"2024-10-18T01:42:38.123Z","updated_at":"2025-04-06T04:09:56.568Z","avatar_url":"https://github.com/IonicaBizau.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/H96WwChMy","https://www.patreon.com/ionicabizau","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=RVXDDLKKLQRJW"],"categories":[],"sub_categories":[],"readme":"\u003c!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --\u003e\n\n\n\n\n\n\n\n\n[![github-stats](http://i.imgur.com/1cEkaOy.png)](#)\n\n\n\n\n\n\n\n\n\n\n\n# `$ github-stats`\n\n [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/github-stats.svg)](https://www.npmjs.com/package/github-stats) [![Downloads](https://img.shields.io/npm/dt/github-stats.svg)](https://www.npmjs.com/package/github-stats) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/johnnyb?utm_source=github\u0026utm_medium=button\u0026utm_term=johnnyb\u0026utm_campaign=github)\n\n\u003ca href=\"https://www.buymeacoffee.com/H96WwChMy\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png\" alt=\"Buy Me A Coffee\"\u003e\u003c/a\u003e\n\n\n\n\n\n\n\n\u003e Visualize stats about GitHub users and projects in your terminal.\n\n\n\n\n\n\n\nThis project is under the [`git-stats`](https://github.com/IonicaBizau/git-stats) umbrella. `git-stats` tracks your local commits and the visualization is similar. :sparkle:\n\n[`github-profile-languages`](https://github.com/IonicaBizau/github-profile-languages) provides the same pie chart visualization, but in browser (for users and repositories).\n\n\n\n\n\n\n\n[![github-stats](http://i.imgur.com/JFNQxbv.png)](#)\n\n\n\n\n\n\n\n## :cloud: Installation\n\nYou can install the package globally and use it as command line tool:\n\n\n```sh\n# Using npm\nnpm install --global github-stats\n\n# Using yarn\nyarn global add github-stats\n```\n\n\nThen, run `github-stats --help` and see what the CLI tool can do.\n\n\n```\n$ github-stats --help\nUsage: github-stats [options]\n\nOptions:\n  -u, --user \u003cuser\u003e        The GitHub user to get stats about.\n  -r, --repo \u003crepository\u003e  The full repository name.\n  -n, --no-ansi            Disable ansi styles.\n  -l, --light              Use the light theme.\n  -c, --calendar           Show the calendar.\n  --us, --user-stats       Display user stats.\n  --rs, --repo-stats       Display repository stats.\n  --ah, --alt-host \u003chost\u003e  Alternate Github host.\n  -t, --token \u003ctoken\u003e      GitHub access token to access private resources or\n                           to increase the rate limit.\n  -h, --help               Displays this help.\n  -v, --version            Displays version information.\n\nExamples:\n  gh-stats -u IonicaBizau -r gh-stats --us --rs -c # Show everything\n  gh-stats -u IonicaBizau # Show the calendar\n  gh-stats -r IonicaBizau/git-stats --alt-host https://github.myhost.com/api/v3/ # Repository stats from hosted Github\n\nDocumentation can be found at https://github.com/IonicaBizau/gh-stats\n```\n\n\n\n\n\n\n\n\n\n\n\n\n\n## :clipboard: Example\n\n\n\nHere is an example how to use this package as library. To install it locally, as library, you can use `npm install github-stats` (or `yarn add github-stats`):\n\n\n\n```js\n// Dependencies\nvar GitHubStats = require(\"github-stats\");\n\n// Create the GitHubStats instance\nvar stats = new GitHubStats({\n\n    // Enable light theme for calendar\n    theme: \"LIGHT\"\n\n    // Provide the repository and the username\n  , repo: \"hubber-memory-game\"\n  , user: \"alysonla\"\n\n    // Visualize repository, user and calendar stats\n  , s_repo: true\n  , s_user: true\n  , cal: true\n\n    // A token could help to visualize private stats\n  , token: \"an optional token\"\n});\n\n// Stringify everything\nstats.toString(function (err, output, warns) {\n    console.log(err || output);\n});\n```\n\n\n\n\n\n\n\n\n\n\n\n## :question: Get Help\n\nThere are few ways to get help:\n\n\n\n 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.\n 2. For bug reports and feature requests, open issues. :bug:\n 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:\n\n\n\n\n\n## :memo: Documentation\n\nFor full API reference, see the [DOCUMENTATION.md][docs] file.\n\n\n\n\n\n\n\n\n\n\n\n\n## :yum: How to contribute\nHave an idea? Found a bug? See [how to contribute][contributing].\n\n\n## :sparkling_heart: Support my projects\nI open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously,\nthis takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it).\n\nHowever, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:\n\n\n - Starring and sharing the projects you like :rocket:\n - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:\n - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:\n - [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).\n - **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`\n\n    ![](https://i.imgur.com/z6OQI95.png)\n\n\nThanks! :heart:\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## :scroll: License\n\n[MIT][license] © [Ionică Bizău][website]\n\n\n\n\n\n\n[license]: /LICENSE\n[website]: https://ionicabizau.net\n[contributing]: /CONTRIBUTING.md\n[docs]: /DOCUMENTATION.md\n[badge_patreon]: https://ionicabizau.github.io/badges/patreon.svg\n[badge_amazon]: https://ionicabizau.github.io/badges/amazon.svg\n[badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg\n[badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg\n[patreon]: https://www.patreon.com/ionicabizau\n[amazon]: http://amzn.eu/hRo9sIZ\n[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=RVXDDLKKLQRJW\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionicabizau%2Fgithub-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fionicabizau%2Fgithub-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionicabizau%2Fgithub-stats/lists"}