
Github Trending
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.
- skills.sh installs
- 3.2K
- GitHub stars
- 296
- last updated
- Aug 21, 2026
Install
$ npx -y skills add hoodini/ai-agents-skills --skill github-trending --agent claude-codeInstalls into .claude/skills of the current project.
Files
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:
import * as cheerio from 'cheerio';
interface TrendingRepo {
owner: string;
name: string;
fullName: string;
url: string;
description: string;
language: string;
languageColor: string;
stars: number;
forks: number;
starsToday: number;
}
async function scrapeTrending(options: {
language?: string;
since?: 'daily' | 'weekly' | 'monthly';
} = {}): Promise<TrendingRepo[]> {
// Build URL: github.com/trending or github.com/trending/typescript?since=weekly
let url = 'https://github.com/trending';
if (options.language) {
url += `/${encodeURIComponent(options.language)}`;
}
if (options.since) {
url += `?since=${options.since}`;
}
Sponsors
Details
- Repository
- github.com/hoodini/ai-agents-skills
- Categories
- Git & Pull Requests, AI & Agent Building
More from hoodini/ai-agents-skills
All 37- Owasp Security3.1K
- Mongodb1.7K
- Mobile Responsiveness1.4K
- Web Accessibility459
- Google Workspace Cli455
- Figma450
- Mermaid Diagrams408
- Analytics Metrics381
- Ux Design Systems270
- Aws Strands249
- Bun191
- Honest Agent190
- Nano Banana Pro189
- Fal Ai175
- Vercel173
- Langchain169
- Local Llm Router160
- Aws Account Management148
- Aws Agentcore148
- Copilot Docs147
- Cloudflare144
- Copilot Sdk139
- Railway135
- Shabbat Times134