https://github.com/kiprasmel/github-star-count
efficiently fetch (using graphql) how many stars have all repos of a user received.
https://github.com/kiprasmel/github-star-count
git github graphql stargazers stargazers-count stars
Last synced: about 1 month ago
JSON representation
efficiently fetch (using graphql) how many stars have all repos of a user received.
- Host: GitHub
- URL: https://github.com/kiprasmel/github-star-count
- Owner: kiprasmel
- Created: 2023-01-04T01:47:49.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-23T16:08:26.000Z (almost 2 years ago)
- Last Synced: 2025-01-15T19:54:25.800Z (about 1 year ago)
- Topics: git, github, graphql, stargazers, stargazers-count, stars
- Language: JavaScript
- Homepage:
- Size: 148 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# github-star-count
efficiently fetch (using graphql) how many stars have all repos of a user received.
## Usage
```sh
echo "username" > USERNAME
echo "gh_api_token" > TOKEN
node ./github-star-count.js
```
notes:
- github's api token is sufficient w/o any extra permissions
- we use node's `fetch`, thus `node` version >=18 is needed
- or you could install [node-fetch](https://www.npmjs.com/package/node-fetch) (`npm i node-fetch@2`)