github-trending

Fetch and display GitHub trending repositories and developers. Use when building dashboards showing trending repos, discovering popular projects, or tracking GitHub trends. Triggers on GitHub trending, trending repos, popular repositories, GitHub discover.

By hoodini · 3,213 installs

npx skills add hoodini/ai-agents-skills --skill github-trending

Source repository · Upstream listing

GitHub Trending Data Access GitHub trending repositories and developers data. Important Note GitHub does NOT provide an official trending API. The trending page at github.com/trending must be scraped directly or use the GitHub Search API as an alternative. Approach 1: Direct Web Scraping (Recommended) Scrape github.com/trending directly using Cheerio: Approach 2: GitHub Search API (Official Alternative) Use GitHub's Search API to find recently created repos with high stars: Note: The Search API has rate limits (10 requests/minute unauthenticated, 30/minute with token). Next.js API Route (Server Side Scraping) React Hook Important Considerations 1. No Official API : GitHub's trending page has no official API scraping is the only option 2. Rate Limiting : Respect GitHub's servers cache aggressively 3. HTML Structure Changes : GitHub may change their HTML monitor for breakages 4. User Agent : Always include a User Agent header 5. Server Side Only : Do scraping server side to avoid CORS issues Resources GitHub Trending Page : https://github.com/trending GitHub Search API : https://docs.github.com/en/rest/search