🐚 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