This handles scraping GitHub's trending page since there's no official API for it. You get two approaches: direct scraping with Cheerio that pulls repo names, descriptions, language colors, and daily star counts, or using GitHub's Search API as a fallback (though it's not quite the same). Includes a Next.js API route with caching and a React hook ready to drop in. The scraping selectors target the current DOM structure, which means you'll need to watch for breakage when GitHub updates their HTML. Useful for dashboards or discovery tools where you want to surface what's hot right now, filtered by language or time period.
npx skills add https://github.com/hoodini/ai-agents-skills --skill github-trending