vigo/ghstars

By vigo

Updated about 2 years ago

how GitHub stars count for user!

Image
Developer tools
0

152

vigo/ghstars repository overview

https://github.com/vigo/ghstars

ghstars

Do you want to know how many stars you have? or want to know how many stars another user has? ghstars provides that little functionality for ya!

If you create your own GitHub Access Token you can calculate all of your repo stargazers count too!

All you need is to set GITHUB_ACCESS_TOKEN environment variable if you want to fetch all of your repo’s star count!

Installation

go install github.com/vigo/ghstars/cmd/ghstars@latest

Usage

You can check command help:

ghstars -h

ghstars fatih                # public stars count of fatih user
ghstars tj                   # public stars count of fatih tj
ghstars -s vigo              # just how public stars amount of vigo
ghstars -verbose vigo        # public stars count of vigo in debug mode

GITHUB_ACCESS_TOKEN="<your-token>" ghstars  # your repos count

How count is done ?

  • Public access; star count should be greater than zero and repo fork must be false
  • Token access; you must be admin in that repo, star count should be greater than zero and repo fork must be false

Long story short, forks are not counted!

According to GitHub;

  • For unauthenticated requests, the rate limit allows for up to 60 requests per hour.
  • 5000 requests per hour and per authenticated user.

Tag summary

Content type

Image

Digest

sha256:b7266dc9a

Size

6.8 MB

Last updated

about 2 years ago

docker pull vigo/ghstars