๐ A lightweight shell script to analyze and visualize the daily star statistics of GitHub repositories.
github-star-demo.mp4
- ๐ Track daily star counts for any GitHub repository
- ๐ Generate statistics and trends
- ๐ป Easy-to-use command line interface
- ๐จ Colorful output for better visualization
โ ๏ธ Important Notes:
- Currently only supports macOS
- Requires GitHub CLI authentication
- Internet connection required for API access
Required tools:
- ๐ง macOS operating system
- ๐ GitHub CLI (
gh
) - ๐
jq
command line tool - ๐ Bash shell environment
- Install GitHub CLI:
brew install gh
- Install jq:
brew install jq
- Login to GitHub:
gh auth login
There are several ways to use this tool:
# Using curl
curl -s https://raw.githubusercontent.com/elliotxx/github-star/main/github-star.sh | bash -s -- KusionStack/karpor
# Using wget
wget -qO- https://raw.githubusercontent.com/elliotxx/github-star/main/github-star.sh | bash -s -- KusionStack/karpor
# Pipe directly to bash
bash <(curl -s https://raw.githubusercontent.com/elliotxx/github-star/main/github-star.sh) KusionStack/karpor
# Download the script
curl -O https://raw.githubusercontent.com/elliotxx/github-star/main/github-star.sh
# Make the script executable
chmod +x github-star.sh
# Run the script
./github-star.sh owner/repo
# Example usage
./github-star.sh KusionStack/karpor
Add one of these aliases to your shell configuration file (~/.bashrc
, ~/.zshrc
, etc.):
# Basic alias
alias ghstar='/path/to/github-star.sh'
# Direct from GitHub (no local file needed)
alias ghstar='curl -s https://raw.githubusercontent.com/elliotxx/github-star/main/github-star.sh | bash -s --'
# Example usage with alias
ghstar KusionStack/karpor
The script outputs data in the following format:
- ๐ Date: The date when stars were received
- โญ๏ธ Stars: Number of stars received on that date
- ๐ Total: Cumulative total of stars
- ๐ Trend: Visual indicator of star growth
MIT License