Skip to content

Scrape GitHub's trending page or fall back to the Search API for trending-style repository discovery.

CCM score
60 of 100
skills.sh installs
3.3K
GitHub stars
303
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers scraping github.com/trending with Cheerio, filterable by language and by daily, weekly, or monthly windows
  • Includes a Search API alternative that finds recently created repos above a star threshold, plus a Next.js route and a React hook
  • Notes that GitHub has no official trending API and that Search API rate limits apply (10 per minute unauthenticated, 30 with a token)
  • Designed for dashboards and developers building trending-repo views or tracking popular projects on GitHub

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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}`;
  }

Details

Repository
github.com/hoodini/ai-agents-skills
Categories
Frontend & UI Code, Browser Automation & Scraping

More from hoodini/ai-agents-skills

All 35

Similar to Github Trending

More Frontend & UI Code