trending-repos-search▌
github.com/trending-repos-search-gbjpu7 · updated May 21, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
Return the current set of trending public repositories from github.com/trending — owner, repo, description, programming language, total stars, total forks, stars gained in the selected period, and top contributing developers — with optional filters for spoken language, programming language, and date range (daily/weekly/monthly).
| name | trending-repos-search |
| title | GitHub Trending Repositories Search |
| description | >- Return the current set of trending public repositories from github.com/trending — owner, repo, description, programming language, total stars, total forks, stars gained in the selected period, and top contributing developers — with optional filters for spoken language, programming language, and date range (daily/weekly/monthly). |
| website | github.com |
| category | developer-tools |
| tags | - github - trending - repos - discovery - open-source |
| source | 'browserbase: agent-runtime 2026-05-21' |
| updated | '2026-05-21' |
| recommended_method | fetch |
| alternative_methods | - method: browser rationale: >- Fallback when direct HTTP egress to github.com is blocked. The page snapshots cleanly (~558 a11y refs for a 16-repo page) and works on a bare Browserbase session — no --verified, no --proxies. Slower (~30× wall-clock) and burns inner-agent turns for zero additional information vs. parsing the same HTML the fetch path returns. - method: api rationale: >- Not viable. GitHub has no official REST or GraphQL endpoint for Trending. /search/repositories with a star-sort + date-range filter does NOT reproduce the editorial signal that powers /trending — the result sets diverge significantly. The HTML page is canonical. |
| verified | false |
| proxies | false |
GitHub Trending Repositories Search
Purpose
Return the current set of trending public repositories from github.com/trending, with optional filters for spoken language (e.g. Chinese), programming language (e.g. Python), and date range (daily / weekly / monthly). Each entry includes owner/repo name, description, programming language (+ language color), total stars, total forks, stars gained in the selected period, and the top contributing developers ("Built by"). Read-only — no auth, no cookies, no state mutation.
When to Use
- Daily / weekly / monthly monitoring of what is currently trending on GitHub.
- Tracking trending repos within a specific programming language (e.g. "trending Rust this week").
- Tracking trending repos by spoken language (e.g. trending repos whose README is in Chinese, Japanese, Spanish — GitHub detects this from the README's natural-language content, not from anything the maintainer declares).
- Anywhere you'd want a server-rendered, parseable list of "what's hot on GitHub right now" — there is no official GitHub REST/GraphQL endpoint for this; the
/trendingHTML page is the canonical surface.
Workflow
GitHub Trending is a plain server-rendered HTML page with no auth, no anti-bot, no JS rendering, and no XHR/GraphQL data layer behind it. The fastest, cheapest, most reliable path is to GET the URL with a vanilla User-Agent and parse the HTML — one HTTP request, ~1 second wall, no LLM cost. Always lead with the fetch path. A scripted browser session works as a fallback (the page snapshots cleanly via browse snapshot — verified at 558 a11y refs in a 16-repo run), but it pays a ~30× wall-clock penalty and burns inner-agent turns for zero additional information vs. the raw HTML.
1. Build the URL
The three filters compose like this:
| Filter | Where | Example |
|---|---|---|
| Programming language | URL path segment (lowercase, kebab-case) | /trending/python, /trending/rust, /trending/objective-c, /trending/c%2B%2B (c++) |
| Spoken language | Query param spoken_language_code (ISO 639-1 two-letter) | ?spoken_language_code=zh (Chinese), =ja, =es, =ko, =ru |
| Date range | Query param since (default: daily) | ?since=daily, ?since=weekly, ?since=monthly |
Full example (all three filters): https://github.com/trending/python?since=daily&spoken_language_code=zh
The unfiltered base URL https://github.com/trending works too — it defaults to since=daily and "all languages."
2. Fetch the HTML
# via the browse CLI (no proxies needed, no stealth needed)
browse cloud fetch "https://github.com/trending/python?since=daily&spoken_language_code=zh"
# or any HTTP client — a vanilla User-Agent + Accept: text/html is fine
curl -sS -H 'User-Agent: Mozilla/5.0' \
'https://github.com/trending/python?since=daily&spoken_language_code=zh'
Returns 200 OK with Content-Type: text/html; charset=utf-8 for anonymous unauthenticated requests. No residential proxy required, no --verified, no session, no cookies — verified 2026-05-21 from a Vercel Sandbox IP, 0 failed requests across 214 page requests in browser trace.
3. Parse the HTML
Each repo is wrapped in <article class="Box-row">. Iterate articles, then extract within each one:
| Field | Pattern |
|---|---|
owner / repo | The <h2 class="h3 lh-condensed"> block contains the heading anchor <a href="/{owner}/{repo}">. Scope your href-match to inside the h2 — the article also contains earlier <a href="/login?return_to=%2F{owner}%2F{repo}"> and <a href="/{owner}/{repo}/stargazers"> links that will match a naïve "first href" pattern and produce wrong owner/repo (or "repo/stargazers") values. |
description | <p class="col-9 color-fg-muted my-1 tmp-pr-4">…</p> — strip inner HTML, collapse whitespace. Optional. Some repos have no description. Class name has also been observed historically as pr-4 (without the tmp- prefix) — match (?:tmp-)?pr-4 for safety. |
language | <span itemprop="programmingLanguage">Python</span>. Optional — repos with no detected language omit this entirely. |
language_color | <span class="repo-language-color" style="background-color: #3572A5"> — sits next to the language name. |
stars_total | The text content of <a href="/{owner}/{repo}/stargazers" …> — formatted with commas (e.g. "44,362"). Strip tags, strip commas, parse as int. |
forks_total | The text content of <a href="/{owner}/{repo}/forks" …> — same parse as stars. |
stars_period + period_label | Free text inside <span class="d-inline-block float-sm-right">…N stars today</span> (or …this week / …this month). The regex /([\d,]+)\s*stars?\s*(today|this\s+week|this\s+month)/i works for all observed shapes. CRITICAL: use stars? (singular OR plural). Repos with exactly 1 star in the period render as "1 star today" (singular). Also CRITICAL: this field is OPTIONAL — repos with zero stars in the period sometimes omit the span entirely (observed in iter-1: 1 of 16 repos). Treat null as "no period-stars displayed" rather than zero. |
built_by | Inside the "Built by" span at the end of the article: list of <a href="/{username}"><img alt="@{username}"></a> avatar links. Top 5 contributors of the period. The @{username} from img.alt is the cleanest extraction. |
rank | 1-indexed position in the article list (top of page = rank 1). |
4. Validate filter application
GitHub renders filter chips in the toolbar that confirm which filters were applied. The most reliable verification is to inspect the page title in the response: <title>Trending {Lang} repositories on GitHub today · GitHub</title> (daily), … this week · GitHub (weekly), … this month · GitHub (monthly). The title omits "spoken language" but reflects programming language + period.
5. Browser fallback
When direct HTTP is blocked (network egress restrictions, captive portals, corporate proxies that MITM github.com), drive a Browserbase session:
SID=$(browse cloud sessions create --keep-alive | node -e "let s='';process.stdin.on('data',c=>s+=c).on('end',()=>process.stdout.write(JSON.parse(s).id))")
browse open "https://github.com/trending/python?since=daily&spoken_language_code=zh" --remote --session "$SID"
browse wait load --remote --session "$SID"
browse snapshot --remote --session "$SID" # ~558 a11y refs — every article exposed as headings + links
browse cloud sessions update "$SID" --status REQUEST_RELEASE
--verified and --proxies are not needed (verified 2026-05-21 with a bare session — 0 anti-bot blocks across full trace). Snapshot gives you all 16 article cards directly; alternatively browse get html body returns the same HTML the fetch path returns and you parse with the same selectors.
Site-Specific Gotchas
- No official API for Trending. GitHub's REST and GraphQL APIs both have
search/repositoriesendpoints that can sort by stars over a date range, but neither reproduces the editorial signal that powers/trending(which factors in star velocity, dedupes recently-popular repos, etc.). Don't waste time trying to back-derive/trendingfromGET /search/repositories— the result sets diverge significantly. The HTML page is canonical. Accept: application/jsonis ignored./trendingonly renders HTML. No JSON variant, no RSS feed, no Atom feed.- Programming language is a URL path segment, not a query param.
?language=pythonis silently ignored — the page renders the all-language list. Use/trending/pythoninstead. Slugs are lowercase; multi-word languages use the hyphenated form GitHub displays in the "Language" dropdown (e.g.objective-c,common-lisp,vim-script). ForC++usec%2B%2B(URL-encoded+is required;c++works in browsers because they percent-encode automatically but raw HTTP clients won't). - Spoken language code is ISO 639-1, two-letter.
zh(Chinese),ja(Japanese),es(Spanish),pt(Portuguese),ko(Korean),ru(Russian),de,fr, etc. The dropdown surfaces all valid codes in the page's<option value="spoken_language_code=XX">elements — there is no separate API enum. Invalid codes are silently dropped and the page renders the all-languages list. Combiningspoken_language_codewith a programming-language path segment is allowed and works as AND. stars_periodtext uses singular "star" when the count is 1./(\d+)\s*stars\s+today/will miss"1 star today"rows. Usestars?in your regex.stars_periodcan be missing entirely — not all rows have the<span class="d-inline-block float-sm-right">N star(s) period</span>. Observed 1 of 16 missing in a single fetch (~6%). Treat the field as nullable; do not default to0(the absence likely means the period delta is small/zero/not-yet-computed by GitHub, but the page is unambiguous about not displaying anything).- The "Built by" list is top-5 period contributors, not the repo's owners. Maintainers, dependabot, github-actions, claude, and similar bot accounts routinely show up here. Don't conflate
built_bywithowner. - Heading anchor extraction must be scoped to the
<h2>. A naïve<a href="/{owner}/{repo}">regex over the whole article will match the first href in the article — which is the "log in to star" affordance<a href="/login?return_to=%2F{owner}%2F{repo}">followed by<a href="/{owner}/{repo}/stargazers">. Both produce wrong values (the login href URL-encodes the slashes; the stargazers href producesrepo: "actualrepo/stargazers"). Match inside<h2 class="h3 lh-condensed"> … </h2>to get the canonical repo link. - Description class name has two observed variants. Currently
col-9 color-fg-muted my-1 tmp-pr-4(post-Primer-CSS migration); historically and still seen in cached responses ascol-9 color-fg-muted my-1 pr-4. Match(?:tmp-)?pr-4. - Max ~25 repos per page; no pagination. GitHub intentionally caps Trending to a single page (typical: 15–25 entries depending on filter density). There is no
?page=2. If you need more, change the date range toweeklyormonthly— those produce different (broader) result sets. - No rate-limit observed for anonymous fetches at ≤ 1 req/s. GitHub's standard anonymous rate limit (60 req/hr) applies to the API; HTML pages are throttled separately and
/trendingreturns 200 reliably at human-paced polling. Authenticated requests count against the 5000 req/hr API budget but Trending is fine unauthenticated. - Third-party "trending API" mirrors are unreliable.
ghapi.huchen.dev,trendings.herokuapp.com, and similar Heroku/Cloudflare-Workers mirrors of the page exist but go offline regularly (their HTML scrapers break when GitHub re-themes the page — and several of the well-known ones haven't been updated since the 2024 Primer-CSS migration). Always go to source.
Expected Output
{
"success": true,
"url": "https://github.com/trending/python?since=daily&spoken_language_code=zh",
"filters": {
"programming_language": "python",
"spoken_language_code": "zh",
"since": "daily"
},
"count": 16,
"repos": [
{
"rank": 1,
"owner": "hiroi-sora",
"repo": "Umi-OCR",
"url": "https://github.com/hiroi-sora/Umi-OCR",
"description": "OCR software, free and offline. 开源、免费的离线OCR软件。支持截屏/批量导入图片,PDF文档识别,排除水印/页眉页脚,扫描/生成二维码。内置多国语言库。",
"language": "Python",
"language_color": "#3572A5",
"stars_total": 44362,
"forks_total": 4379,
"stars_period": 38,
"period_label": "stars today",
"built_by": ["hiroi-sora", "weblate", "chunkiuu", "qwedc001", "plum7x"]
},
{
"rank": 12,
"owner": "xrayfree",
"repo": "free-ssr-ss-v2ray-vpn-clash",
"url": "https://github.com/xrayfree/free-ssr-ss-v2ray-vpn-clash",
"description": "长期免费维护 VLESS/ VMess / Trojan / SS / V2RAY / VPN / CLASH / 小火箭 免费节点订阅链接!电报群:https://t.me/xrayfree",
"language": "Python",
"language_color": "#3572A5",
"stars_total": 1594,
"forks_total": 75,
"stars_period": 1,
"period_label": "stars today",
"built_by": ["xrayfree", "github-actions"]
}
],
"error_reasoning": null
}
Failure shape (only realistic outcome — github.com/trending is operationally extremely reliable; the most likely failure is your egress being unable to reach github.com at all):
{
"success": false,
"url": "https://github.com/trending/python?since=daily&spoken_language_code=zh",
"filters": { "programming_language": "python", "spoken_language_code": "zh", "since": "daily" },
"count": 0,
"repos": [],
"error_reasoning": "fetch failed: ECONNREFUSED github.com:443"
}
Field types:
count— integer; equalsrepos.length. Typically 15–25.repos[].description/repos[].language/repos[].language_color/repos[].stars_period/repos[].period_label— all nullable. Treat missing-in-DOM asnull, not0/"".repos[].stars_total/repos[].forks_total— integers, parsed from comma-formatted display strings.repos[].built_by— array of GitHub usernames (strings), may be empty.period_label— one of"stars today","stars this week","stars this month", ornull. The label tracks thesincefilter; expect consistency within a single result page.
How to use trending-repos-search on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add trending-repos-search
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches trending-repos-search from GitHub repository github.com/trending-repos-search-gbjpu7 and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate trending-repos-search. Access the skill through slash commands (e.g., /trending-repos-search) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
Task Automation & Efficiency
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Knowledge Enhancement
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Quality Improvement
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Installation Steps
- 1.Install skill using provided installation command
- 2.Test with simple use case relevant to your work
- 3.Evaluate output quality and relevance
- 4.Iterate on prompts to improve results
- 5.Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices▌
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This▌
✓ Use When
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid When
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path▌
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.5★★★★★39 reviews- ★★★★★Neel Zhang· Dec 24, 2024
Registry listing for trending-repos-search matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Yash Thakker· Nov 23, 2024
trending-repos-search has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Neel Huang· Nov 15, 2024
trending-repos-search fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Dhruvi Jain· Oct 14, 2024
Solid pick for teams standardizing on skills: trending-repos-search is focused, and the summary matches what you get after install.
- ★★★★★Neel Singh· Oct 6, 2024
We added trending-repos-search from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Soo Martinez· Sep 25, 2024
Keeps context tight: trending-repos-search is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Diego Gupta· Sep 17, 2024
We added trending-repos-search from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Diego Li· Sep 13, 2024
Useful defaults in trending-repos-search — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Oshnikdeep· Sep 9, 2024
We added trending-repos-search from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Ganesh Mohane· Aug 28, 2024
trending-repos-search fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
showing 1-10 of 39