https://github.com/rustunit/orgstars
CLI tool to count all stars under a GitHub Org
https://github.com/rustunit/orgstars
Last synced: 28 days ago
JSON representation
CLI tool to count all stars under a GitHub Org
- Host: GitHub
- URL: https://github.com/rustunit/orgstars
- Owner: rustunit
- License: apache-2.0
- Created: 2025-11-29T15:30:51.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-11-29T15:46:59.000Z (4 months ago)
- Last Synced: 2026-03-09T11:59:11.695Z (about 1 month ago)
- Language: Rust
- Homepage: https://crates.io/crates/orgstars
- Size: 20.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# orgstars
[](https://crates.io/crates/orgstars)
[](https://discord.gg/MHzmYHnnsE)
A simple command-line tool to query GitHub's API and sum up all the stars across all repositories in an organization.
## Installation
```bash
cargo install orgstars
```
## Usage
Query stars for any GitHub organization:
```bash
orgstars --org rust-lang
```
### With Authentication
To avoid GitHub API rate limits, you can provide a personal access token:
```bash
orgstars --org rust-lang --token YOUR_GITHUB_TOKEN
```
### Example Output
```
Fetching 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
...
```
## Features
- 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
```
Options:
-o, --org GitHub organization name
-t, --token GitHub personal access token (optional)
-h, --help Print help
```
## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.