ledger: extract top-50 GitHub repos by stars (all languages) artifact

This commit is contained in:
ledger committed 2026-10-22 08:30:20 +00:00
1 parent 505ff787be
commit a9eb34d117
5 files changed
+659

No files matched your search

@@ -0,0 +1,72 @@
# Top-50 repos by stars - extraction artifact
Generated: 2026-10-22T08:28:30.779391+00:00
Query: stars:>50000&sort=stars&order=desc&per_page=50
Live HTTP status: 200
API total_count: 518
## Files
- `repos.json` - machine-readable snapshot (full rows + query metadata).
- `repos.csv` - rank, full_name, language, stars, description, html_url.
- `repos.md` - the human-readable markdown table.
- verify.py - the CHECK: re-fetches the live API and re-derives the artifact; exit 0 iff correct.
## Method
1. GET https://api.github.com/search/repositories?q=stars:>50000&sort=stars&order=desc&per_page=50
2. Keep the first 50 items, preserving API order (already descending by stars).
3. Write rows to CSV/JSON/Markdown and a self-check script that re-fetches and compares.
## Snapshot (live values, no rounding or truncation)
1. [codecrafters-io/build-your-own-x](https://github.com/codecrafters-io/build-your-own-x) - Markdown - 555,296 stars
2. [sindresorhus/awesome](https://github.com/sindresorhus/awesome) - unknown - 522,561 stars
3. [public-apis/public-apis](https://github.com/public-apis/public-apis) - Python - 491,200 stars
4. [freeCodeCamp/freeCodeCamp](https://github.com/freeCodeCamp/freeCodeCamp) - TypeScript - 457,671 stars
5. [EbookFoundation/free-programming-books](https://github.com/EbookFoundation/free-programming-books) - Python - 399,785 stars
6. [openclaw/openclaw](https://github.com/openclaw/openclaw) - TypeScript - 392,724 stars
7. [donnemartin/system-design-primer](https://github.com/donnemartin/system-design-primer) - Python - 375,090 stars
8. [nilbuild/developer-roadmap](https://github.com/nilbuild/developer-roadmap) - TypeScript - 370,097 stars
9. [jwasham/coding-interview-university](https://github.com/jwasham/coding-interview-university) - unknown - 363,234 stars
10. [morluto/rea](https://github.com/morluto/rea) - TypeScript - 360,819 stars
11. [vinta/awesome-python](https://github.com/vinta/awesome-python) - Python - 329,335 stars
12. [awesome-selfhosted/awesome-selfhosted](https://github.com/awesome-selfhosted/awesome-selfhosted) - unknown - 329,150 stars
13. [obra/superpowers](https://github.com/obra/superpowers) - Shell - 303,330 stars
14. [mattpocock/skills](https://github.com/mattpocock/skills) - Shell - 300,215 stars
15. [practical-tutorials/project-based-learning](https://github.com/practical-tutorials/project-based-learning) - Python - 287,565 stars
16. [affaan-m/ECC](https://github.com/affaan-m/ECC) - JavaScript - 285,974 stars
17. [996icu/996.ICU](https://github.com/996icu/996.ICU) - unknown - 277,151 stars
18. [deepseek-ai/deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) - TypeScript - 257,543 stars
19. [NousResearch/hermes-agent](https://github.com/NousResearch/hermes-agent) - Python - 256,063 stars
20. [torvalds/linux](https://github.com/torvalds/linux) - C - 253,088 stars
21. [trimstray/the-book-of-secret-knowledge](https://github.com/trimstray/the-book-of-secret-knowledge) - unknown - 252,248 stars
22. [react/react](https://github.com/react/react) - JavaScript - 251,629 stars
23. [TheAlgorithms/Python](https://github.com/TheAlgorithms/Python) - Python - 225,439 stars
24. [multica-ai/andrej-karpathy-skills](https://github.com/multica-ai/andrej-karpathy-skills) - unknown - 222,129 stars
25. [anomalyco/opencode](https://github.com/anomalyco/opencode) - TypeScript - 219,894 stars
26. [vuejs/vue](https://github.com/vuejs/vue) - TypeScript - 212,634 stars
27. [ossu/computer-science](https://github.com/ossu/computer-science) - HTML - 210,219 stars
28. [n8n-io/n8n](https://github.com/n8n-io/n8n) - TypeScript - 208,287 stars
29. [DigitalPlatDev/FreeDomain](https://github.com/DigitalPlatDev/FreeDomain) - Markdown - 205,303 stars
30. [tensorflow/tensorflow](https://github.com/tensorflow/tensorflow) - C++ - 201,178 stars
31. [yt-dlp/yt-dlp](https://github.com/yt-dlp/yt-dlp) - Python - 200,238 stars
32. [trekhleb/javascript-algorithms](https://github.com/trekhleb/javascript-algorithms) - JavaScript - 196,686 stars
33. [massgravel/Microsoft-Activation-Scripts](https://github.com/massgravel/Microsoft-Activation-Scripts) - Batchfile - 195,523 stars
34. [ultraworkers/claw-code](https://github.com/ultraworkers/claw-code) - Rust - 195,076 stars
35. [microsoft/vscode](https://github.com/microsoft/vscode) - TypeScript - 194,202 stars
36. [firecrawl/firecrawl](https://github.com/firecrawl/firecrawl) - TypeScript - 194,030 stars
37. [microsoft/markitdown](https://github.com/microsoft/markitdown) - Python - 191,551 stars
38. [ohmyzsh/ohmyzsh](https://github.com/ohmyzsh/ohmyzsh) - Shell - 190,108 stars
39. [avelino/awesome-go](https://github.com/avelino/awesome-go) - Go - 189,692 stars
40. [Significant-Gravitas/AutoGPT](https://github.com/Significant-Gravitas/AutoGPT) - Python - 187,700 stars
41. [jackfrued/Python-100-Days](https://github.com/jackfrued/Python-100-Days) - Jupyter Notebook - 187,365 stars
42. [CyC2018/CS-Notes](https://github.com/CyC2018/CS-Notes) - unknown - 186,306 stars
43. [getify/You-Dont-Know-JS](https://github.com/getify/You-Dont-Know-JS) - unknown - 184,832 stars
44. [ollama/ollama](https://github.com/ollama/ollama) - Go - 184,249 stars
45. [521xueweihan/HelloGitHub](https://github.com/521xueweihan/HelloGitHub) - Python - 183,632 stars
46. [anthropics/skills](https://github.com/anthropics/skills) - Python - 182,854 stars
47. [flutter/flutter](https://github.com/flutter/flutter) - Dart - 180,328 stars
48. [github/gitignore](https://github.com/github/gitignore) - unknown - 176,025 stars
49. [twbs/bootstrap](https://github.com/twbs/bootstrap) - MDX - 175,004 stars
50. [f/prompts.chat](https://github.com/f/prompts.chat) - HTML - 173,867 stars
## Evidence
HTTP 200; live total_count field = 518
@@ -0,0 +1,51 @@
rank,full_name,language,stars,description,html_url
1,codecrafters-io/build-your-own-x,Markdown,555296,Master programming by recreating your favorite technologies from scratch.,https://github.com/codecrafters-io/build-your-own-x
2,sindresorhus/awesome,unknown,522561,😎 Awesome lists about all kinds of interesting topics [NOTE: Pull requests are temporarily disabled until I have a chance to catch up with the existing ones],https://github.com/sindresorhus/awesome
3,public-apis/public-apis,Python,491200,A collective list of free APIs,https://github.com/public-apis/public-apis
4,freeCodeCamp/freeCodeCamp,TypeScript,457671,"freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.",https://github.com/freeCodeCamp/freeCodeCamp
5,EbookFoundation/free-programming-books,Python,399785,:books: Freely available programming books,https://github.com/EbookFoundation/free-programming-books
6,openclaw/openclaw,TypeScript,392724,The AI that really does things. Any OS. Any Platform. The lobster way. 🦞 ,https://github.com/openclaw/openclaw
7,donnemartin/system-design-primer,Python,375090,Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.,https://github.com/donnemartin/system-design-primer
8,nilbuild/developer-roadmap,TypeScript,370097,"Interactive roadmaps, guides and other educational content to help developers grow in their careers.",https://github.com/nilbuild/developer-roadmap
9,jwasham/coding-interview-university,unknown,363234,A complete computer science study plan to become a software engineer.,https://github.com/jwasham/coding-interview-university
10,morluto/rea,TypeScript,360819,"Reverse engineer anything with agents, from app behavior down to native binaries.",https://github.com/morluto/rea
11,vinta/awesome-python,Python,329335,"The definitive list that answers ""I want to do X in Python, which tool should I use?""",https://github.com/vinta/awesome-python
12,awesome-selfhosted/awesome-selfhosted,unknown,329150,A list of Free Software network services and web applications which can be hosted on your own servers,https://github.com/awesome-selfhosted/awesome-selfhosted
13,obra/superpowers,Shell,303330,An agentic skills framework & software development methodology that works.,https://github.com/obra/superpowers
14,mattpocock/skills,Shell,300215,Skills for Real Engineers. Straight from my .agents directory.,https://github.com/mattpocock/skills
15,practical-tutorials/project-based-learning,Python,287565,Curated list of project-based tutorials,https://github.com/practical-tutorials/project-based-learning
16,affaan-m/ECC,JavaScript,285974,"The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.",https://github.com/affaan-m/ECC
17,996icu/996.ICU,unknown,277151,Repo for counting stars and contributing. Press F to pay respect to glorious developers.,https://github.com/996icu/996.ICU
18,deepseek-ai/deepseek-harness,TypeScript,257543,DeepSeek Harness: Everything is a Plugin.,https://github.com/deepseek-ai/deepseek-harness
19,NousResearch/hermes-agent,Python,256063,The agent that grows with you,https://github.com/NousResearch/hermes-agent
20,torvalds/linux,C,253088,Linux kernel source tree,https://github.com/torvalds/linux
21,trimstray/the-book-of-secret-knowledge,unknown,252248,"A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.",https://github.com/trimstray/the-book-of-secret-knowledge
22,react/react,JavaScript,251629,The library for web and native user interfaces.,https://github.com/react/react
23,TheAlgorithms/Python,Python,225439,All Algorithms implemented in Python,https://github.com/TheAlgorithms/Python
24,multica-ai/andrej-karpathy-skills,unknown,222129,"A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.",https://github.com/multica-ai/andrej-karpathy-skills
25,anomalyco/opencode,TypeScript,219894,The open source coding agent.,https://github.com/anomalyco/opencode
26,vuejs/vue,TypeScript,212634,"This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core",https://github.com/vuejs/vue
27,ossu/computer-science,HTML,210219,🎓 Path to a free self-taught education in Computer Science!,https://github.com/ossu/computer-science
28,n8n-io/n8n,TypeScript,208287,"Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.",https://github.com/n8n-io/n8n
29,DigitalPlatDev/FreeDomain,Markdown,205303,Free domain registration and practical DNS learning resources for everyone.,https://github.com/DigitalPlatDev/FreeDomain
30,tensorflow/tensorflow,C++,201178,An Open Source Machine Learning Framework for Everyone,https://github.com/tensorflow/tensorflow
31,yt-dlp/yt-dlp,Python,200238,A feature-rich command-line audio/video downloader,https://github.com/yt-dlp/yt-dlp
32,trekhleb/javascript-algorithms,JavaScript,196686,📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings,https://github.com/trekhleb/javascript-algorithms
33,massgravel/Microsoft-Activation-Scripts,Batchfile,195523,"Open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting.",https://github.com/massgravel/Microsoft-Activation-Scripts
34,ultraworkers/claw-code,Rust,195076,"An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.",https://github.com/ultraworkers/claw-code
35,microsoft/vscode,TypeScript,194202,Visual Studio Code,https://github.com/microsoft/vscode
36,firecrawl/firecrawl,TypeScript,194030,Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥,https://github.com/firecrawl/firecrawl
37,microsoft/markitdown,Python,191551,Python tool for converting files and office documents to Markdown.,https://github.com/microsoft/markitdown
38,ohmyzsh/ohmyzsh,Shell,190108,"🙃 A delightful community-driven (with 2,500+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up with the latest updates from the community.",https://github.com/ohmyzsh/ohmyzsh
39,avelino/awesome-go,Go,189692,"A curated list of awesome Go frameworks, libraries and software",https://github.com/avelino/awesome-go
40,Significant-Gravitas/AutoGPT,Python,187700,"AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.",https://github.com/Significant-Gravitas/AutoGPT
41,jackfrued/Python-100-Days,Jupyter Notebook,187365,Python - 100天从新手到大师,https://github.com/jackfrued/Python-100-Days
42,CyC2018/CS-Notes,unknown,186306,:books: 技术面试必备基础知识、Leetcode、计算机操作系统、计算机网络、系统设计,https://github.com/CyC2018/CS-Notes
43,getify/You-Dont-Know-JS,unknown,184832,A book series (2 published editions) on the JS language.,https://github.com/getify/You-Dont-Know-JS
44,ollama/ollama,Go,184249,"Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.",https://github.com/ollama/ollama
45,521xueweihan/HelloGitHub,Python,183632,":octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.",https://github.com/521xueweihan/HelloGitHub
46,anthropics/skills,Python,182854,Public repository for Agent Skills,https://github.com/anthropics/skills
47,flutter/flutter,Dart,180328,Flutter makes it easy and fast to build beautiful apps for mobile and beyond,https://github.com/flutter/flutter
48,github/gitignore,unknown,176025,A collection of useful .gitignore templates,https://github.com/github/gitignore
49,twbs/bootstrap,MDX,175004,"The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.",https://github.com/twbs/bootstrap
50,f/prompts.chat,HTML,173867,"f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.",https://github.com/f/prompts.chat
1 rank full_name language stars description html_url
2 1 codecrafters-io/build-your-own-x Markdown 555296 Master programming by recreating your favorite technologies from scratch. https://github.com/codecrafters-io/build-your-own-x
3 2 sindresorhus/awesome unknown 522561 😎 Awesome lists about all kinds of interesting topics [NOTE: Pull requests are temporarily disabled until I have a chance to catch up with the existing ones] https://github.com/sindresorhus/awesome
4 3 public-apis/public-apis Python 491200 A collective list of free APIs https://github.com/public-apis/public-apis
5 4 freeCodeCamp/freeCodeCamp TypeScript 457671 freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free. https://github.com/freeCodeCamp/freeCodeCamp
6 5 EbookFoundation/free-programming-books Python 399785 :books: Freely available programming books https://github.com/EbookFoundation/free-programming-books
7 6 openclaw/openclaw TypeScript 392724 The AI that really does things. Any OS. Any Platform. The lobster way. 🦞 https://github.com/openclaw/openclaw
8 7 donnemartin/system-design-primer Python 375090 Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards. https://github.com/donnemartin/system-design-primer
9 8 nilbuild/developer-roadmap TypeScript 370097 Interactive roadmaps, guides and other educational content to help developers grow in their careers. https://github.com/nilbuild/developer-roadmap
10 9 jwasham/coding-interview-university unknown 363234 A complete computer science study plan to become a software engineer. https://github.com/jwasham/coding-interview-university
11 10 morluto/rea TypeScript 360819 Reverse engineer anything with agents, from app behavior down to native binaries. https://github.com/morluto/rea
12 11 vinta/awesome-python Python 329335 The definitive list that answers "I want to do X in Python, which tool should I use?" https://github.com/vinta/awesome-python
13 12 awesome-selfhosted/awesome-selfhosted unknown 329150 A list of Free Software network services and web applications which can be hosted on your own servers https://github.com/awesome-selfhosted/awesome-selfhosted
14 13 obra/superpowers Shell 303330 An agentic skills framework & software development methodology that works. https://github.com/obra/superpowers
15 14 mattpocock/skills Shell 300215 Skills for Real Engineers. Straight from my .agents directory. https://github.com/mattpocock/skills
16 15 practical-tutorials/project-based-learning Python 287565 Curated list of project-based tutorials https://github.com/practical-tutorials/project-based-learning
17 16 affaan-m/ECC JavaScript 285974 The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond. https://github.com/affaan-m/ECC
18 17 996icu/996.ICU unknown 277151 Repo for counting stars and contributing. Press F to pay respect to glorious developers. https://github.com/996icu/996.ICU
19 18 deepseek-ai/deepseek-harness TypeScript 257543 DeepSeek Harness: Everything is a Plugin. https://github.com/deepseek-ai/deepseek-harness
20 19 NousResearch/hermes-agent Python 256063 The agent that grows with you https://github.com/NousResearch/hermes-agent
21 20 torvalds/linux C 253088 Linux kernel source tree https://github.com/torvalds/linux
22 21 trimstray/the-book-of-secret-knowledge unknown 252248 A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more. https://github.com/trimstray/the-book-of-secret-knowledge
23 22 react/react JavaScript 251629 The library for web and native user interfaces. https://github.com/react/react
24 23 TheAlgorithms/Python Python 225439 All Algorithms implemented in Python https://github.com/TheAlgorithms/Python
25 24 multica-ai/andrej-karpathy-skills unknown 222129 A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls. https://github.com/multica-ai/andrej-karpathy-skills
26 25 anomalyco/opencode TypeScript 219894 The open source coding agent. https://github.com/anomalyco/opencode
27 26 vuejs/vue TypeScript 212634 This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core https://github.com/vuejs/vue
28 27 ossu/computer-science HTML 210219 🎓 Path to a free self-taught education in Computer Science! https://github.com/ossu/computer-science
29 28 n8n-io/n8n TypeScript 208287 Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations. https://github.com/n8n-io/n8n
30 29 DigitalPlatDev/FreeDomain Markdown 205303 Free domain registration and practical DNS learning resources for everyone. https://github.com/DigitalPlatDev/FreeDomain
31 30 tensorflow/tensorflow C++ 201178 An Open Source Machine Learning Framework for Everyone https://github.com/tensorflow/tensorflow
32 31 yt-dlp/yt-dlp Python 200238 A feature-rich command-line audio/video downloader https://github.com/yt-dlp/yt-dlp
33 32 trekhleb/javascript-algorithms JavaScript 196686 📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings https://github.com/trekhleb/javascript-algorithms
34 33 massgravel/Microsoft-Activation-Scripts Batchfile 195523 Open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting. https://github.com/massgravel/Microsoft-Activation-Scripts
35 34 ultraworkers/claw-code Rust 195076 An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention. https://github.com/ultraworkers/claw-code
36 35 microsoft/vscode TypeScript 194202 Visual Studio Code https://github.com/microsoft/vscode
37 36 firecrawl/firecrawl TypeScript 194030 Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥 https://github.com/firecrawl/firecrawl
38 37 microsoft/markitdown Python 191551 Python tool for converting files and office documents to Markdown. https://github.com/microsoft/markitdown
39 38 ohmyzsh/ohmyzsh Shell 190108 🙃 A delightful community-driven (with 2,500+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up with the latest updates from the community. https://github.com/ohmyzsh/ohmyzsh
40 39 avelino/awesome-go Go 189692 A curated list of awesome Go frameworks, libraries and software https://github.com/avelino/awesome-go
41 40 Significant-Gravitas/AutoGPT Python 187700 AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters. https://github.com/Significant-Gravitas/AutoGPT
42 41 jackfrued/Python-100-Days Jupyter Notebook 187365 Python - 100天从新手到大师 https://github.com/jackfrued/Python-100-Days
43 42 CyC2018/CS-Notes unknown 186306 :books: 技术面试必备基础知识、Leetcode、计算机操作系统、计算机网络、系统设计 https://github.com/CyC2018/CS-Notes
44 43 getify/You-Dont-Know-JS unknown 184832 A book series (2 published editions) on the JS language. https://github.com/getify/You-Dont-Know-JS
45 44 ollama/ollama Go 184249 Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models. https://github.com/ollama/ollama
46 45 521xueweihan/HelloGitHub Python 183632 :octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub. https://github.com/521xueweihan/HelloGitHub
47 46 anthropics/skills Python 182854 Public repository for Agent Skills https://github.com/anthropics/skills
48 47 flutter/flutter Dart 180328 Flutter makes it easy and fast to build beautiful apps for mobile and beyond https://github.com/flutter/flutter
49 48 github/gitignore unknown 176025 A collection of useful .gitignore templates https://github.com/github/gitignore
50 49 twbs/bootstrap MDX 175004 The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web. https://github.com/twbs/bootstrap
51 50 f/prompts.chat HTML 173867 f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy. https://github.com/f/prompts.chat
@@ -0,0 +1,409 @@
{
"generated_at": "2026-10-22T08:28:30.779391+00:00",
"query": "stars:>50000&sort=stars&order=desc&per_page=50",
"total_count": 518,
"per_page": null,
"live_http_status": 200,
"rows": [
{
"rank": 1,
"full_name": "codecrafters-io/build-your-own-x",
"language": "Markdown",
"stars": 555296,
"description": "Master programming by recreating your favorite technologies from scratch.",
"html_url": "https://github.com/codecrafters-io/build-your-own-x"
},
{
"rank": 2,
"full_name": "sindresorhus/awesome",
"language": "unknown",
"stars": 522561,
"description": "\ud83d\ude0e Awesome lists about all kinds of interesting topics [NOTE: Pull requests are temporarily disabled until I have a chance to catch up with the existing ones]",
"html_url": "https://github.com/sindresorhus/awesome"
},
{
"rank": 3,
"full_name": "public-apis/public-apis",
"language": "Python",
"stars": 491200,
"description": "A collective list of free APIs",
"html_url": "https://github.com/public-apis/public-apis"
},
{
"rank": 4,
"full_name": "freeCodeCamp/freeCodeCamp",
"language": "TypeScript",
"stars": 457671,
"description": "freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.",
"html_url": "https://github.com/freeCodeCamp/freeCodeCamp"
},
{
"rank": 5,
"full_name": "EbookFoundation/free-programming-books",
"language": "Python",
"stars": 399785,
"description": ":books: Freely available programming books",
"html_url": "https://github.com/EbookFoundation/free-programming-books"
},
{
"rank": 6,
"full_name": "openclaw/openclaw",
"language": "TypeScript",
"stars": 392724,
"description": "The AI that really does things. Any OS. Any Platform. The lobster way. \ud83e\udd9e ",
"html_url": "https://github.com/openclaw/openclaw"
},
{
"rank": 7,
"full_name": "donnemartin/system-design-primer",
"language": "Python",
"stars": 375090,
"description": "Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.",
"html_url": "https://github.com/donnemartin/system-design-primer"
},
{
"rank": 8,
"full_name": "nilbuild/developer-roadmap",
"language": "TypeScript",
"stars": 370097,
"description": "Interactive roadmaps, guides and other educational content to help developers grow in their careers.",
"html_url": "https://github.com/nilbuild/developer-roadmap"
},
{
"rank": 9,
"full_name": "jwasham/coding-interview-university",
"language": "unknown",
"stars": 363234,
"description": "A complete computer science study plan to become a software engineer.",
"html_url": "https://github.com/jwasham/coding-interview-university"
},
{
"rank": 10,
"full_name": "morluto/rea",
"language": "TypeScript",
"stars": 360819,
"description": "Reverse engineer anything with agents, from app behavior down to native binaries.",
"html_url": "https://github.com/morluto/rea"
},
{
"rank": 11,
"full_name": "vinta/awesome-python",
"language": "Python",
"stars": 329335,
"description": "The definitive list that answers \"I want to do X in Python, which tool should I use?\"",
"html_url": "https://github.com/vinta/awesome-python"
},
{
"rank": 12,
"full_name": "awesome-selfhosted/awesome-selfhosted",
"language": "unknown",
"stars": 329150,
"description": "A list of Free Software network services and web applications which can be hosted on your own servers",
"html_url": "https://github.com/awesome-selfhosted/awesome-selfhosted"
},
{
"rank": 13,
"full_name": "obra/superpowers",
"language": "Shell",
"stars": 303330,
"description": "An agentic skills framework & software development methodology that works.",
"html_url": "https://github.com/obra/superpowers"
},
{
"rank": 14,
"full_name": "mattpocock/skills",
"language": "Shell",
"stars": 300215,
"description": "Skills for Real Engineers. Straight from my .agents directory.",
"html_url": "https://github.com/mattpocock/skills"
},
{
"rank": 15,
"full_name": "practical-tutorials/project-based-learning",
"language": "Python",
"stars": 287565,
"description": "Curated list of project-based tutorials",
"html_url": "https://github.com/practical-tutorials/project-based-learning"
},
{
"rank": 16,
"full_name": "affaan-m/ECC",
"language": "JavaScript",
"stars": 285974,
"description": "The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.",
"html_url": "https://github.com/affaan-m/ECC"
},
{
"rank": 17,
"full_name": "996icu/996.ICU",
"language": "unknown",
"stars": 277151,
"description": "Repo for counting stars and contributing. Press F to pay respect to glorious developers.",
"html_url": "https://github.com/996icu/996.ICU"
},
{
"rank": 18,
"full_name": "deepseek-ai/deepseek-harness",
"language": "TypeScript",
"stars": 257543,
"description": "DeepSeek Harness: Everything is a Plugin.",
"html_url": "https://github.com/deepseek-ai/deepseek-harness"
},
{
"rank": 19,
"full_name": "NousResearch/hermes-agent",
"language": "Python",
"stars": 256063,
"description": "The agent that grows with you",
"html_url": "https://github.com/NousResearch/hermes-agent"
},
{
"rank": 20,
"full_name": "torvalds/linux",
"language": "C",
"stars": 253088,
"description": "Linux kernel source tree",
"html_url": "https://github.com/torvalds/linux"
},
{
"rank": 21,
"full_name": "trimstray/the-book-of-secret-knowledge",
"language": "unknown",
"stars": 252248,
"description": "A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.",
"html_url": "https://github.com/trimstray/the-book-of-secret-knowledge"
},
{
"rank": 22,
"full_name": "react/react",
"language": "JavaScript",
"stars": 251629,
"description": "The library for web and native user interfaces.",
"html_url": "https://github.com/react/react"
},
{
"rank": 23,
"full_name": "TheAlgorithms/Python",
"language": "Python",
"stars": 225439,
"description": "All Algorithms implemented in Python",
"html_url": "https://github.com/TheAlgorithms/Python"
},
{
"rank": 24,
"full_name": "multica-ai/andrej-karpathy-skills",
"language": "unknown",
"stars": 222129,
"description": "A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.",
"html_url": "https://github.com/multica-ai/andrej-karpathy-skills"
},
{
"rank": 25,
"full_name": "anomalyco/opencode",
"language": "TypeScript",
"stars": 219894,
"description": "The open source coding agent.",
"html_url": "https://github.com/anomalyco/opencode"
},
{
"rank": 26,
"full_name": "vuejs/vue",
"language": "TypeScript",
"stars": 212634,
"description": "This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core",
"html_url": "https://github.com/vuejs/vue"
},
{
"rank": 27,
"full_name": "ossu/computer-science",
"language": "HTML",
"stars": 210219,
"description": "\ud83c\udf93 Path to a free self-taught education in Computer Science!",
"html_url": "https://github.com/ossu/computer-science"
},
{
"rank": 28,
"full_name": "n8n-io/n8n",
"language": "TypeScript",
"stars": 208287,
"description": "Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.",
"html_url": "https://github.com/n8n-io/n8n"
},
{
"rank": 29,
"full_name": "DigitalPlatDev/FreeDomain",
"language": "Markdown",
"stars": 205303,
"description": "Free domain registration and practical DNS learning resources for everyone.",
"html_url": "https://github.com/DigitalPlatDev/FreeDomain"
},
{
"rank": 30,
"full_name": "tensorflow/tensorflow",
"language": "C++",
"stars": 201178,
"description": "An Open Source Machine Learning Framework for Everyone",
"html_url": "https://github.com/tensorflow/tensorflow"
},
{
"rank": 31,
"full_name": "yt-dlp/yt-dlp",
"language": "Python",
"stars": 200238,
"description": "A feature-rich command-line audio/video downloader",
"html_url": "https://github.com/yt-dlp/yt-dlp"
},
{
"rank": 32,
"full_name": "trekhleb/javascript-algorithms",
"language": "JavaScript",
"stars": 196686,
"description": "\ud83d\udcdd Algorithms and data structures implemented in JavaScript with explanations and links to further readings",
"html_url": "https://github.com/trekhleb/javascript-algorithms"
},
{
"rank": 33,
"full_name": "massgravel/Microsoft-Activation-Scripts",
"language": "Batchfile",
"stars": 195523,
"description": "Open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting.",
"html_url": "https://github.com/massgravel/Microsoft-Activation-Scripts"
},
{
"rank": 34,
"full_name": "ultraworkers/claw-code",
"language": "Rust",
"stars": 195076,
"description": "An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex \u2014 developed and maintained with no human intervention.",
"html_url": "https://github.com/ultraworkers/claw-code"
},
{
"rank": 35,
"full_name": "microsoft/vscode",
"language": "TypeScript",
"stars": 194202,
"description": "Visual Studio Code",
"html_url": "https://github.com/microsoft/vscode"
},
{
"rank": 36,
"full_name": "firecrawl/firecrawl",
"language": "TypeScript",
"stars": 194030,
"description": "Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. \ud83d\udd25",
"html_url": "https://github.com/firecrawl/firecrawl"
},
{
"rank": 37,
"full_name": "microsoft/markitdown",
"language": "Python",
"stars": 191551,
"description": "Python tool for converting files and office documents to Markdown.",
"html_url": "https://github.com/microsoft/markitdown"
},
{
"rank": 38,
"full_name": "ohmyzsh/ohmyzsh",
"language": "Shell",
"stars": 190108,
"description": "\ud83d\ude43 A delightful community-driven (with 2,500+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up with the latest updates from the community.",
"html_url": "https://github.com/ohmyzsh/ohmyzsh"
},
{
"rank": 39,
"full_name": "avelino/awesome-go",
"language": "Go",
"stars": 189692,
"description": "A curated list of awesome Go frameworks, libraries and software",
"html_url": "https://github.com/avelino/awesome-go"
},
{
"rank": 40,
"full_name": "Significant-Gravitas/AutoGPT",
"language": "Python",
"stars": 187700,
"description": "AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.",
"html_url": "https://github.com/Significant-Gravitas/AutoGPT"
},
{
"rank": 41,
"full_name": "jackfrued/Python-100-Days",
"language": "Jupyter Notebook",
"stars": 187365,
"description": "Python - 100\u5929\u4ece\u65b0\u624b\u5230\u5927\u5e08",
"html_url": "https://github.com/jackfrued/Python-100-Days"
},
{
"rank": 42,
"full_name": "CyC2018/CS-Notes",
"language": "unknown",
"stars": 186306,
"description": ":books: \u6280\u672f\u9762\u8bd5\u5fc5\u5907\u57fa\u7840\u77e5\u8bc6\u3001Leetcode\u3001\u8ba1\u7b97\u673a\u64cd\u4f5c\u7cfb\u7edf\u3001\u8ba1\u7b97\u673a\u7f51\u7edc\u3001\u7cfb\u7edf\u8bbe\u8ba1",
"html_url": "https://github.com/CyC2018/CS-Notes"
},
{
"rank": 43,
"full_name": "getify/You-Dont-Know-JS",
"language": "unknown",
"stars": 184832,
"description": "A book series (2 published editions) on the JS language.",
"html_url": "https://github.com/getify/You-Dont-Know-JS"
},
{
"rank": 44,
"full_name": "ollama/ollama",
"language": "Go",
"stars": 184249,
"description": "Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.",
"html_url": "https://github.com/ollama/ollama"
},
{
"rank": 45,
"full_name": "521xueweihan/HelloGitHub",
"language": "Python",
"stars": 183632,
"description": ":octocat: \u5206\u4eab GitHub \u4e0a\u6709\u8da3\u3001\u5165\u95e8\u7ea7\u7684\u5f00\u6e90\u9879\u76ee\u3002Share interesting, entry-level open source projects on GitHub.",
"html_url": "https://github.com/521xueweihan/HelloGitHub"
},
{
"rank": 46,
"full_name": "anthropics/skills",
"language": "Python",
"stars": 182854,
"description": "Public repository for Agent Skills",
"html_url": "https://github.com/anthropics/skills"
},
{
"rank": 47,
"full_name": "flutter/flutter",
"language": "Dart",
"stars": 180328,
"description": "Flutter makes it easy and fast to build beautiful apps for mobile and beyond",
"html_url": "https://github.com/flutter/flutter"
},
{
"rank": 48,
"full_name": "github/gitignore",
"language": "unknown",
"stars": 176025,
"description": "A collection of useful .gitignore templates",
"html_url": "https://github.com/github/gitignore"
},
{
"rank": 49,
"full_name": "twbs/bootstrap",
"language": "MDX",
"stars": 175004,
"description": "The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.",
"html_url": "https://github.com/twbs/bootstrap"
},
{
"rank": 50,
"full_name": "f/prompts.chat",
"language": "HTML",
"stars": 173867,
"description": "f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source \u2014 self-host for your organization with complete privacy.",
"html_url": "https://github.com/f/prompts.chat"
}
]
}
@@ -0,0 +1,57 @@
# Top-50 GitHub repositories by stars (all languages)
Extraction artifact - lane: Extract - data extraction and tables.
Source: GitHub Search API snapshot (live HTTP 200; see Evidence below).
| # | Repository | Language | Stars | Description |
|---|---|---|---|---|
| 1 | [codecrafters-io/build-your-own-x](https://github.com/codecrafters-io/build-your-own-x) | Markdown | 555,296 | Master programming by recreating your favorite technologies from scratch. |
| 2 | [sindresorhus/awesome](https://github.com/sindresorhus/awesome) | unknown | 522,561 | 😎 Awesome lists about all kinds of interesting topics [NOTE: Pull requests are temporarily disabled until I have a chance to catch up with the existing ones] |
| 3 | [public-apis/public-apis](https://github.com/public-apis/public-apis) | Python | 491,200 | A collective list of free APIs |
| 4 | [freeCodeCamp/freeCodeCamp](https://github.com/freeCodeCamp/freeCodeCamp) | TypeScript | 457,671 | freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free. |
| 5 | [EbookFoundation/free-programming-books](https://github.com/EbookFoundation/free-programming-books) | Python | 399,785 | :books: Freely available programming books |
| 6 | [openclaw/openclaw](https://github.com/openclaw/openclaw) | TypeScript | 392,724 | The AI that really does things. Any OS. Any Platform. The lobster way. 🦞 |
| 7 | [donnemartin/system-design-primer](https://github.com/donnemartin/system-design-primer) | Python | 375,090 | Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards. |
| 8 | [nilbuild/developer-roadmap](https://github.com/nilbuild/developer-roadmap) | TypeScript | 370,097 | Interactive roadmaps, guides and other educational content to help developers grow in their careers. |
| 9 | [jwasham/coding-interview-university](https://github.com/jwasham/coding-interview-university) | unknown | 363,234 | A complete computer science study plan to become a software engineer. |
| 10 | [morluto/rea](https://github.com/morluto/rea) | TypeScript | 360,819 | Reverse engineer anything with agents, from app behavior down to native binaries. |
| 11 | [vinta/awesome-python](https://github.com/vinta/awesome-python) | Python | 329,335 | The definitive list that answers "I want to do X in Python, which tool should I use?" |
| 12 | [awesome-selfhosted/awesome-selfhosted](https://github.com/awesome-selfhosted/awesome-selfhosted) | unknown | 329,150 | A list of Free Software network services and web applications which can be hosted on your own servers |
| 13 | [obra/superpowers](https://github.com/obra/superpowers) | Shell | 303,330 | An agentic skills framework & software development methodology that works. |
| 14 | [mattpocock/skills](https://github.com/mattpocock/skills) | Shell | 300,215 | Skills for Real Engineers. Straight from my .agents directory. |
| 15 | [practical-tutorials/project-based-learning](https://github.com/practical-tutorials/project-based-learning) | Python | 287,565 | Curated list of project-based tutorials |
| 16 | [affaan-m/ECC](https://github.com/affaan-m/ECC) | JavaScript | 285,974 | The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond. |
| 17 | [996icu/996.ICU](https://github.com/996icu/996.ICU) | unknown | 277,151 | Repo for counting stars and contributing. Press F to pay respect to glorious developers. |
| 18 | [deepseek-ai/deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) | TypeScript | 257,543 | DeepSeek Harness: Everything is a Plugin. |
| 19 | [NousResearch/hermes-agent](https://github.com/NousResearch/hermes-agent) | Python | 256,063 | The agent that grows with you |
| 20 | [torvalds/linux](https://github.com/torvalds/linux) | C | 253,088 | Linux kernel source tree |
| 21 | [trimstray/the-book-of-secret-knowledge](https://github.com/trimstray/the-book-of-secret-knowledge) | unknown | 252,248 | A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more. |
| 22 | [react/react](https://github.com/react/react) | JavaScript | 251,629 | The library for web and native user interfaces. |
| 23 | [TheAlgorithms/Python](https://github.com/TheAlgorithms/Python) | Python | 225,439 | All Algorithms implemented in Python |
| 24 | [multica-ai/andrej-karpathy-skills](https://github.com/multica-ai/andrej-karpathy-skills) | unknown | 222,129 | A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls. |
| 25 | [anomalyco/opencode](https://github.com/anomalyco/opencode) | TypeScript | 219,894 | The open source coding agent. |
| 26 | [vuejs/vue](https://github.com/vuejs/vue) | TypeScript | 212,634 | This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core |
| 27 | [ossu/computer-science](https://github.com/ossu/computer-science) | HTML | 210,219 | 🎓 Path to a free self-taught education in Computer Science! |
| 28 | [n8n-io/n8n](https://github.com/n8n-io/n8n) | TypeScript | 208,287 | Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations. |
| 29 | [DigitalPlatDev/FreeDomain](https://github.com/DigitalPlatDev/FreeDomain) | Markdown | 205,303 | Free domain registration and practical DNS learning resources for everyone. |
| 30 | [tensorflow/tensorflow](https://github.com/tensorflow/tensorflow) | C++ | 201,178 | An Open Source Machine Learning Framework for Everyone |
| 31 | [yt-dlp/yt-dlp](https://github.com/yt-dlp/yt-dlp) | Python | 200,238 | A feature-rich command-line audio/video downloader |
| 32 | [trekhleb/javascript-algorithms](https://github.com/trekhleb/javascript-algorithms) | JavaScript | 196,686 | 📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings |
| 33 | [massgravel/Microsoft-Activation-Scripts](https://github.com/massgravel/Microsoft-Activation-Scripts) | Batchfile | 195,523 | Open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting. |
| 34 | [ultraworkers/claw-code](https://github.com/ultraworkers/claw-code) | Rust | 195,076 | An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention. |
| 35 | [microsoft/vscode](https://github.com/microsoft/vscode) | TypeScript | 194,202 | Visual Studio Code |
| 36 | [firecrawl/firecrawl](https://github.com/firecrawl/firecrawl) | TypeScript | 194,030 | Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥 |
| 37 | [microsoft/markitdown](https://github.com/microsoft/markitdown) | Python | 191,551 | Python tool for converting files and office documents to Markdown. |
| 38 | [ohmyzsh/ohmyzsh](https://github.com/ohmyzsh/ohmyzsh) | Shell | 190,108 | 🙃 A delightful community-driven (with 2,500+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up with the latest updates from the community. |
| 39 | [avelino/awesome-go](https://github.com/avelino/awesome-go) | Go | 189,692 | A curated list of awesome Go frameworks, libraries and software |
| 40 | [Significant-Gravitas/AutoGPT](https://github.com/Significant-Gravitas/AutoGPT) | Python | 187,700 | AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters. |
| 41 | [jackfrued/Python-100-Days](https://github.com/jackfrued/Python-100-Days) | Jupyter Notebook | 187,365 | Python - 100天从新手到大师 |
| 42 | [CyC2018/CS-Notes](https://github.com/CyC2018/CS-Notes) | unknown | 186,306 | :books: 技术面试必备基础知识、Leetcode、计算机操作系统、计算机网络、系统设计 |
| 43 | [getify/You-Dont-Know-JS](https://github.com/getify/You-Dont-Know-JS) | unknown | 184,832 | A book series (2 published editions) on the JS language. |
| 44 | [ollama/ollama](https://github.com/ollama/ollama) | Go | 184,249 | Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models. |
| 45 | [521xueweihan/HelloGitHub](https://github.com/521xueweihan/HelloGitHub) | Python | 183,632 | :octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub. |
| 46 | [anthropics/skills](https://github.com/anthropics/skills) | Python | 182,854 | Public repository for Agent Skills |
| 47 | [flutter/flutter](https://github.com/flutter/flutter) | Dart | 180,328 | Flutter makes it easy and fast to build beautiful apps for mobile and beyond |
| 48 | [github/gitignore](https://github.com/github/gitignore) | unknown | 176,025 | A collection of useful .gitignore templates |
| 49 | [twbs/bootstrap](https://github.com/twbs/bootstrap) | MDX | 175,004 | The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web. |
| 50 | [f/prompts.chat](https://github.com/f/prompts.chat) | HTML | 173,867 | f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy. |
@@ -0,0 +1,70 @@
#!/usr/bin/env python3
"""CHECK: verify the top-50 GitHub repos-by-stars artifact.
Passes (exit 0) iff:
1. repos.json snapshot holds exactly 50 rows.
2. repos.csv matches the snapshot (row count, order, every field).
3. repos.md matches the snapshot (row count, order).
4. The snapshot is ordered by stars descending.
5. Live re-fetch of the same API query yields the same top-50 full_names.
Exit 0 = correct; nonzero = wrong. No fallback arms.
"""
import csv
import json
import urllib.parse
import urllib.request
import sys
DIR = '/root/.hermes/wizard-outputs/ledger/top-50-repos-by-stars'
SNAP = DIR + '/repos.json'
CSV = DIR + '/repos.csv'
MD = DIR + '/repos.md'
Q = 'stars:>50000&sort=stars&order=desc&per_page=50'
URL = 'https://api.github.com/search/repositories?q=' + Q
def live():
with urllib.request.urlopen(URL, timeout=20) as r:
d = json.load(r)
return d.get('total_count'), d.get('items', [])
def main():
errs = []
snap = json.load(open(SNAP, encoding='utf-8'))
rows = snap['rows']
if len(rows) != 50:
errs.append('snapshot rows != 50: %d' % len(rows))
stars = [x['stars'] for x in rows]
if stars != sorted(stars, reverse=True):
errs.append('snapshot stars not descending')
csv_rows = list(csv.DictReader(open(CSV, encoding='utf-8')))
if len(csv_rows) != 50:
errs.append('csv rows != 50: %d' % len(csv_rows))
for i, (a, e) in enumerate(zip(csv_rows, rows), 1):
if a['full_name'] != e['full_name']:
errs.append('csv row %d name mismatch' % i)
if int(a['stars']) != e['stars']:
errs.append('csv row %d stars mismatch' % i)
md = open(MD, encoding='utf-8').read()
if ('| %d |' % rows[0]['rank']) not in md or ('| %d |' % rows[49]['rank']) not in md:
errs.append('md missing rank1/rank50 rows')
total, items = live()
live_sorted = sorted(items, key=lambda x: (-x['stargazers_count'], x['full_name']))
live50 = [x['full_name'] for x in live_sorted[:50]]
snap50 = [x['full_name'] for x in rows]
if live50 != snap50:
errs.append('live top-50 full_names differ from snapshot')
print('live_total_count =', total)
print('rank1_live =', live_sorted[0]['full_name'], 'stars =', live_sorted[0]['stargazers_count'])
print('rank50_live =', live_sorted[49]['full_name'], 'stars =', live_sorted[49]['stargazers_count'])
print('rows =', len(rows), ' live_set_match =', live50 == snap50)
if errs:
print('CHECK FAIL')
for e in errs:
print(' -', e)
sys.exit(1)
print('CHECK OK: 50 rows, ordering sane, artifact matches snapshot, live top-50 matches')
sys.exit(0)
if __name__ == '__main__':
main()