{"id":25732435,"url":"https://github.com/vigo/ghstars","last_synced_at":"2025-08-22T00:20:33.531Z","repository":{"id":62866237,"uuid":"559488956","full_name":"vigo/ghstars","owner":"vigo","description":"Show GitHub stars count for user!","archived":false,"fork":false,"pushed_at":"2024-03-13T09:37:04.000Z","size":36,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T13:05:08.800Z","etag":null,"topics":["github","github-repository","github-stars","golang","golang-cli"],"latest_commit_sha":null,"homepage":"","language":"Go","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/vigo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"vigo","patreon":"vigoo"}},"created_at":"2022-10-30T09:22:03.000Z","updated_at":"2023-05-31T20:57:22.000Z","dependencies_parsed_at":"2024-03-13T10:49:56.104Z","dependency_job_id":null,"html_url":"https://github.com/vigo/ghstars","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vigo%2Fghstars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vigo%2Fghstars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vigo%2Fghstars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vigo%2Fghstars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vigo","download_url":"https://codeload.github.com/vigo/ghstars/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252940883,"owners_count":21828766,"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":["github","github-repository","github-stars","golang","golang-cli"],"created_at":"2025-02-26T03:41:02.487Z","updated_at":"2025-05-07T19:03:49.852Z","avatar_url":"https://github.com/vigo.png","language":"Go","readme":"![Version](https://img.shields.io/badge/version-0.1.2-orange.svg)\n![Go](https://img.shields.io/github/go-mod/go-version/vigo/ghstars)\n[![Documentation](https://godoc.org/github.com/vigo/ghstars?status.svg)](https://pkg.go.dev/github.com/vigo/ghstars)\n[![Go Report Card](https://goreportcard.com/badge/github.com/vigo/ghstars)](https://goreportcard.com/report/github.com/vigo/ghstars)\n![Go Build Status](https://github.com/vigo/ghstars/actions/workflows/go.yml/badge.svg)\n![GolangCI-Lint Status](https://github.com/vigo/ghstars/actions/workflows/golang-lint.yml/badge.svg)\n[![codecov](https://codecov.io/gh/vigo/ghstars/branch/main/graph/badge.svg?token=BTVK8VKVZM)](https://codecov.io/gh/vigo/ghstars)\n![Docker Lint Status](https://github.com/vigo/ghstars/actions/workflows/docker-lint.yml/badge.svg)\n![Docker Pulls](https://img.shields.io/docker/pulls/vigo/ghstars)\n![Docker Size](https://img.shields.io/docker/image-size/vigo/ghstars)\n![Docker Build Status](https://github.com/vigo/ghstars/actions/workflows/dockerhub.yml/badge.svg)\n![Powered by Rake](https://img.shields.io/badge/powered_by-rake-blue?logo=ruby)\n\n\n# ghstars\n\nDo you want to know how many stars you have? or want to know how many stars\nanother user has? `ghstars` provides that little functionality for ya!\n\nIf you create your own [GitHub Access Token][1]\nyou can calculate all of your repo stargazers count too!\n\nAll you need is to set `GITHUB_ACCESS_TOKEN` environment variable if you want to\nfetch all of your repo’s star count!\n\n## Installation\n\n```bash\ngo install github.com/vigo/ghstars@latest\n```\n\nor, you can install from `brew`:\n\n```bash\nbrew install vigo/ghstars/ghstars\n```\n\n## Usage\n\nYou can check command help:\n\n```bash\nghstars -h\n\nghstars fatih                # public stars count of fatih user\nghstars tj                   # public stars count of fatih tj\nghstars -s vigo              # just how public stars amount of vigo\nghstars -verbose vigo        # public stars count of vigo in debug mode\n\nGITHUB_ACCESS_TOKEN=\"\u003cyour-token\u003e\" ghstars  # your repos count\n```\n\nHow count is done ?\n\n- Public access; star count should be greater than zero and repo fork must be\n  false\n- Token access; you must be admin in that repo, star count should be greater\n  than zero and repo fork must be false\n\nLong story short, **forks are not** counted!\n\nAccording to [GitHub][2];\n\n- For unauthenticated requests, the rate limit allows for up to **60\n  requests** per hour.\n- **5000 requests** per hour and per authenticated user.\n\nExample output:\n\n```bash\nghstars fatih # public accessible repos included...\n\n+-------+-----------------------------+-------+\n|       | Name of Repository          | Star  |\n+-------+-----------------------------+-------+\n| 00001 | fatih/vim-go                | 15009 |\n| 00002 | fatih/color                 | 05778 |\n| 00003 | fatih/structs               | 03625 |\n| 00004 | fatih/vim-go-tutorial       | 02122 |\n| 00005 | fatih/gomodifytags          | 01845 |\n| 00006 | fatih/pool                  | 01295 |\n| 00007 | fatih/subvim                | 01128 |\n| 00008 | fatih/dotfiles              | 00695 |\n| 00009 | fatih/set                   | 00652 |\n| 00010 | fatih/structtag             | 00533 |\n| 00011 | fatih/errwrap               | 00355 |\n| 00012 | fatih/semgroup              | 00262 |\n| 00013 | fatih/faillint              | 00226 |\n| 00014 | fatih/hclfmt                | 00224 |\n| 00015 | fatih/motion                | 00168 |\n| 00016 | fatih/astrewrite            | 00167 |\n| 00017 | fatih/camelcase             | 00153 |\n| 00018 | fatih/vim-hclfmt            | 00071 |\n| 00019 | fatih/stopwatch             | 00068 |\n| 00020 | fatih/images                | 00068 |\n| 00021 | fatih/addlint               | 00052 |\n| 00022 | fatih/gb-example            | 00047 |\n| 00023 | fatih/hcl                   | 00043 |\n| 00024 | fatih/templatectl           | 00042 |\n| 00025 | fatih/twirpdemo             | 00032 |\n| 00026 | fatih/talks                 | 00023 |\n| 00027 | fatih/unexport              | 00022 |\n| 00028 | fatih/kodla-talk-2022       | 00020 |\n| 00029 | fatih/flags                 | 00017 |\n| 00030 | fatih/vim-nginx             | 00017 |\n| 00031 | fatih/sicp                  | 00016 |\n| 00032 | fatih/dvb-t2                | 00015 |\n| 00033 | fatih/amqp-examples         | 00015 |\n| 00034 | fatih/testmod               | 00011 |\n| 00035 | fatih/RailsDashboard.kdapp  | 00007 |\n| 00036 | fatih/cafetiere             | 00006 |\n| 00037 | fatih/koding-wiki           | 00006 |\n| 00038 | fatih/docker-ubuntu-go      | 00004 |\n| 00039 | fatih/blog.arsln.org-backup | 00004 |\n| 00040 | fatih/sinerji               | 00002 |\n| 00041 | fatih/snippets              | 00001 |\n| 00042 | fatih/pisi-vim              | 00001 |\n+-------+-----------------------------+-------+\n|       | Number of total star count  | 34847 |\n+-------+-----------------------------+-------+\n\nghstars -s fatih   # just report the total count\n34847\n```\n\n---\n\n## Docker\n\nhttps://hub.docker.com/r/vigo/ghstars/\n\n```bash\n# latest\ndocker run vigo/ghstars -h\ndocker run vigo/ghstars fatih\n```\n\n---\n\n## Contributor(s)\n\n* [Uğur \"vigo\" Özyılmazel](https://github.com/vigo) - Creator, maintainer\n\n---\n\n## Contribute\n\nAll PR’s are welcome!\n\n1. `fork` (https://github.com/vigo/ghstars/fork)\n1. Create your `branch` (`git checkout -b my-feature`)\n1. `commit` yours (`git commit -am 'add some functionality'`)\n1. `push` your `branch` (`git push origin my-feature`)\n1. Than create a new **Pull Request**!\n\nThis project is intended to be a safe, welcoming space for collaboration, and\ncontributors are expected to adhere to the [code of conduct][coc].\n\n---\n\n## License\n\nThis project is licensed under MIT\n\n\n[1]: https://github.com/settings/tokens/new\n[2]: https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting\n[coc]: https://github.com/vigo/ghstars/blob/main/CODE_OF_CONDUCT.md\n","funding_links":["https://github.com/sponsors/vigo","https://patreon.com/vigoo"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvigo%2Fghstars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvigo%2Fghstars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvigo%2Fghstars/lists"}