GitHub AI Trends
Generate formatted leaderboard of trending AI projects on GitHub, output directly to chat.
Usage
Run the script and paste its stdout as the reply:
python3 scripts/fetch_trends.py --period weekly --limit 20
Parameters
--period:daily|weekly|monthly(default: weekly)--limit: Number of repos (default: 20)--token: GitHub token for higher rate limits (or setGITHUB_TOKENenv)--json: Output raw JSON instead of formatted text
How It Works
- Searches GitHub API for AI-related repos (by keywords + topics) pushed within the period
- Deduplicates and sorts by star count
- Outputs a formatted markdown leaderboard ready for chat display
Notes
- Without a GitHub token, API rate limit is 10 requests/minute. With token: 30/minute.
- No pip dependencies, uses only stdlib.
- Output is markdown formatted for direct chat display.