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-code

Installs 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
1getsentry avatardjango-perf-reviewgetsentry/skillsDjango performance code review. Use when asked to "review Django performance", "find N+1 queries", "optimize Django", "check queryset performance", "database pe3.1Kskills.sh installs
2phuryn avatarreview-resumephuryn/pm-skillsComprehensive PM resume review and tailoring against 10 best practices including XYZ+S formula, keyword optimization, job-specific tailoring, and structure. Use3.1Kskills.sh installs
3anthropics avatarmetrics-reviewanthropics/knowledge-work-pluginsReview and analyze product metrics with trend analysis and actionable insights. Use when running a weekly, monthly, or quarterly metrics review, investigating a3Kskills.sh installs
4anthropics avatarvendor-reviewanthropics/knowledge-work-pluginsEvaluate a vendor — cost analysis, risk assessment, and recommendation. Use when reviewing a new vendor proposal, deciding whether to renew or replace a contrac2.9Kskills.sh installs
5nexu-io avatarhtml-ppt-retro-quarterly-reviewnexu-io/open-designRetro Quarterly Review presentation template in a bold blue + orange editorial language. Use when users ask for a high-impact quarterly review / roadmap deck wi2.9Kskills.sh installs
6anthropics avatarpipeline-reviewanthropics/knowledge-work-pluginsAnalyze pipeline health — prioritize deals, flag risks, get a weekly action plan. Use when running a weekly pipeline review, deciding which deals to focus on th2.9Kskills.sh installs