A simple command-line tool to query GitHub's API and sum up all the stars across all repositories in an organization.
cargo install orgstarsQuery stars for any GitHub organization:
orgstars --org rust-langTo avoid GitHub API rate limits, you can provide a personal access token:
orgstars --org rust-lang --token YOUR_GITHUB_TOKENFetching repositories for organization: rust-lang
Results for organization: rust-lang
Total repositories: 232
Total stars: 372526
Repository breakdown:
rust - 108154 stars
rustlings - 60798 stars
mdBook - 20700 stars
book - 16968 stars
...
- Fetches all repositories from a GitHub organization using pagination
- Displays total star count across all repositories
- Shows a sorted breakdown of stars per repository
- Supports authentication via GitHub personal access tokens
- Handles rate limiting gracefully
Options:
-o, --org <ORG> GitHub organization name
-t, --token <TOKEN> GitHub personal access token (optional)
-h, --help Print help
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.