• Stars
    star
    4
  • Rank 3,256,273 (Top 66 %)
  • Language
    Go
  • License
    MIT License
  • Created over 1 year ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Show GitHub stars count for user!

Version Go Documentation Go Report Card Go Build Status GolangCI-Lint Status codecov Docker Lint Status Docker Pulls Docker Size Docker Build Status

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@latest

or, you can install from brew:

brew install vigo/ghstars/ghstars

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.

Example output:

ghstars fatih # public accessible repos included...

+-------+-----------------------------+-------+
|       | Name of Repository          | Star  |
+-------+-----------------------------+-------+
| 00001 | fatih/vim-go                | 15009 |
| 00002 | fatih/color                 | 05778 |
| 00003 | fatih/structs               | 03625 |
| 00004 | fatih/vim-go-tutorial       | 02122 |
| 00005 | fatih/gomodifytags          | 01845 |
| 00006 | fatih/pool                  | 01295 |
| 00007 | fatih/subvim                | 01128 |
| 00008 | fatih/dotfiles              | 00695 |
| 00009 | fatih/set                   | 00652 |
| 00010 | fatih/structtag             | 00533 |
| 00011 | fatih/errwrap               | 00355 |
| 00012 | fatih/semgroup              | 00262 |
| 00013 | fatih/faillint              | 00226 |
| 00014 | fatih/hclfmt                | 00224 |
| 00015 | fatih/motion                | 00168 |
| 00016 | fatih/astrewrite            | 00167 |
| 00017 | fatih/camelcase             | 00153 |
| 00018 | fatih/vim-hclfmt            | 00071 |
| 00019 | fatih/stopwatch             | 00068 |
| 00020 | fatih/images                | 00068 |
| 00021 | fatih/addlint               | 00052 |
| 00022 | fatih/gb-example            | 00047 |
| 00023 | fatih/hcl                   | 00043 |
| 00024 | fatih/templatectl           | 00042 |
| 00025 | fatih/twirpdemo             | 00032 |
| 00026 | fatih/talks                 | 00023 |
| 00027 | fatih/unexport              | 00022 |
| 00028 | fatih/kodla-talk-2022       | 00020 |
| 00029 | fatih/flags                 | 00017 |
| 00030 | fatih/vim-nginx             | 00017 |
| 00031 | fatih/sicp                  | 00016 |
| 00032 | fatih/dvb-t2                | 00015 |
| 00033 | fatih/amqp-examples         | 00015 |
| 00034 | fatih/testmod               | 00011 |
| 00035 | fatih/RailsDashboard.kdapp  | 00007 |
| 00036 | fatih/cafetiere             | 00006 |
| 00037 | fatih/koding-wiki           | 00006 |
| 00038 | fatih/docker-ubuntu-go      | 00004 |
| 00039 | fatih/blog.arsln.org-backup | 00004 |
| 00040 | fatih/sinerji               | 00002 |
| 00041 | fatih/snippets              | 00001 |
| 00042 | fatih/pisi-vim              | 00001 |
+-------+-----------------------------+-------+
|       | Number of total star count  | 34847 |
+-------+-----------------------------+-------+

ghstars -s fatih   # just report the total count
34847

Docker

https://hub.docker.com/r/vigo/ghstars/

# latest
docker run vigo/ghstars -h
docker run vigo/ghstars fatih

Contributor(s)


Contribute

All PR’s are welcome!

  1. fork (https://github.com/vigo/ghstars/fork)
  2. Create your branch (git checkout -b my-feature)
  3. commit yours (git commit -am 'add some functionality')
  4. push your branch (git push origin my-feature)
  5. Than create a new Pull Request!

This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.


License

This project is licensed under MIT

More Repositories

1

git-puf-noktalari

Günlük hayatta kullandığımız revizyon kontrol sistemi GIT ile ilgili küçük ipuçlarını anlatan yeni mini kitabım.
Ruby
425
star
2

kommit

Build your commit message without touching or editing your code!
Shell
204
star
3

ruby101-kitap

Türkçe Ruby kitabı
Ruby
197
star
4

dinozorus

1990'lı yıllara damgasını vuran efsane televizyon oyunu Dinozorus. Amiga 1200 - AGA
Assembly
134
star
5

turk-scene-tarihi

80'lerin ortasında başlayan, günümüz bilgisayar kültürünün neredeyse başlangıç noktası olan Türk SCENE/DEMOSCENE tarihçesi
85
star
6

lyk-2017

Linux Yaz Kampı 2017'de anlattığım konular.
41
star
7

django2-project-template

Django project/application starter for lazybones :)
Python
40
star
8

textmate-twitterbootstrap.tmbundle

TextMate bundle for Twitter's Bootstrap
HTML
33
star
9

statoo

`statoo` is a super simple http GET tool for checking site health
Go
32
star
10

awesome-c64

Commodore 64 related links such as C64 tools for Mac/Linux/PC, demoscene related stuff, coding tools, C64 utilities etc...
31
star
11

textmate-octopress.tmbundle

TextMate bundle for Octopress blog engine. http://octopress.org/
29
star
12

gh_issues

Manage GitHub issues from command-line (read only!)
Ruby
22
star
13

dotfiles-light

Just another but `lighter` version of BASH environment
Shell
18
star
14

django-admin-list-filter

Dead simple autocompletion for Django admin `list_filter`.
Python
18
star
15

dotfiles-universal

My old BASH dot-files... Try new one!
Shell
13
star
16

textmate2-python-fmt

Python FMT is a python linter/formatter/checker for TextMate.
Ruby
13
star
17

textmate2-gfm-preview

GitHub Flavored Markdown Preview for TextMate 2
CSS
13
star
18

django-project-template

Project starter for Django 1.11.4 ... Batteries included :)
Python
10
star
19

textmate-hosts.tmbundle

TextMate bundle for /etc/hosts file
9
star
20

dotfiles-fever

Elegant BASH environment for macOS, Ubuntu and Gentoo
Shell
8
star
21

textmate-window-manager

Window manager/arranger for oldskool TextMate (1.5)
Shell
7
star
22

apm-bash-completion

Bash completion for Atom Package Manager (apm)
Shell
6
star
23

stormssh-completion

Bash competion for `sshstorm` (https://github.com/emre/storm)
Shell
6
star
24

devpod

Official website of devPod
HTML
6
star
25

textmate2-ruff-linter

Ruff linter for TextMate2. Linter and auto fixer for python!
Perl
5
star
26

ugur.ozyilmazel.com-v5

Kişisel websitem V4.0
HTML
5
star
27

lsvirtualenvs

Small commandline tool for `virtualenvwrapper`
Go
4
star
28

git-init-githubrepo

Create git repository for GitHub style
Go
4
star
29

git-tips

Git versiyon kontrol sistemi ile ilgili Türkçe dökümantasyon ve ipuçları
JavaScript
4
star
30

golang-notlarim

Golang geliştirme ile ilgili aldığım notlar
Ruby
4
star
31

dox2008

2007-2008 yıllarında İstanbul Bilgi Üniversitesi, web departmanı için hazırladığım javascript ve html/css eğitimleri
JavaScript
4
star
32

textmate2-power-tools

Some useful TextMate2 snippets, commands etc...
Ruby
3
star
33

inspect-go

Ruby-ish Object#inspect tryouts for Golang!
Go
3
star
34

putio

Command-Line client for put.io platform (unofficial)
Go
3
star
35

textmate2-tailwind-css

Tailwind CSS support for TextMate 2
Ruby
3
star
36

textmate2-64tass-bundle

64tass Bundle for TextMate 2
2
star
37

sayisal_captcha

Çok basit şekilde iki basamaklı sayılardan random toplama ya da çarpma üreten bir sistem
Ruby
2
star
38

learning-stimulus-02

I'm learning stimulus, this is example 02
JavaScript
2
star
39

vigo

I'm a hustler baby!
2
star
40

textmate2-gomodifytags

TextMate2 implementation of Fatih’s gomodifytags
Shell
2
star
41

vigo.io

Personal website
HTML
2
star
42

els

Unix `ls` command alternative via Ruby :)
Ruby
2
star
43

pg16_django

3. Programlama Günleri / Karabük - Django ile tanışma
Python
2
star
44

ruby101-kitap-kod

Ruby101 kitabında geçen kod örnekleri
2
star
45

learning-stimulus-01

I'm learning stimulus, this is example 01
JavaScript
1
star
46

textmate2-bootstrap3

Bootstrap 3's helpers for TextMate2
1
star
47

uptimerobot_cmd

Command-line client for Uptimerobot service
Ruby
1
star
48

stringutils-demo

A basic golang package for demo purpose only...
Go
1
star
49

textmate1-twitter-bs3.tmbundle

Twitter Bootstrap 3 bundle for TextMate1 (yes the oldest TextMate)
1
star
50

try_git

1
star
51

homebrew-ghstars

Brew tap for ghstars cli
Ruby
1
star
52

homebrew-git-init-githubrepo

brew tap for `git-init-githubrepo`
Ruby
1
star
53

dji18njs

Modified and hardcore changed version of Django's i18n-javascript function. Can be usable as JavasScript Template engine. If you familiar with python's "format text" you will love this!
JavaScript
1
star
54

homebrew-lsvirtualenvs

brew tap for lsvirtualenvs
Ruby
1
star
55

amiga-ascii.tmbundle

Oldskool Amiga ascii/azki/nfo/diz support for TextMate with real Amiga fonts
1
star
56

vigo.github.com

My developer home page...
HTML
1
star
57

my-custom-textmate1-bundle

Many snippets and my custom scratch-pad for TextMate1.
CSS
1
star
58

ugur.ozyilmazel.com

Kişisel web sitem
HTML
1
star
59

textmate-nanorc.tmbundle

.nanorc bundle for TextMate
Ruby
1
star
60

homebrew-statoo

brew tap repo for `statoo`
Ruby
1
star