Most-starred repos in any language
GitHub's search API ranks by stars natively. One query, one jq, and you have the canonical starter pack for any language.
The one-liner
$ curl -s "https://api.github.com/search/repositories?q=language:rust&sort=stars&order=desc&per_page=10" \
| jq -r '.items[] | "\(.stargazers_count) ⭐ \(.full_name) — \(.description // "no description")"'What each stage does
- [01] curl
curl -s "https://api.github.com/search/repositories?q=language:rust&..."Search qualifier `language:` filters to Rust. Sort by stars descending. 10 results per page. Anonymous limit: 10 search req/min. - [02] jq
jq -r '.items[] | "\(.stargazers_count) ⭐ \(.full_name) — \(.description // "no …Walk `.items`. Use `// "fallback"` for missing descriptions. -r emits raw text for terminal-friendly output.
Expected output (sample)
94521 ⭐ rust-lang/rust — Empowering everyone to build reliable and efficient software. 63870 ⭐ tauri-apps/tauri — Build smaller, faster, and more secure desktop apps... ...
Caveats & tips
- Add `created:>2025-01-01` to the q= to find recent risers, not just all-time giants.
- 5000 req/hour with `-H "Authorization: Bearer $GH_TOKEN"`; 60 anonymous.