# The largest Astro repositories by lines of code

OctoCounts has measured 13 public GitHub repositories whose primary programming language is Astro. cloudflare/cloudflare-docs is the largest, with 572,932 code lines across 5,247 files, counted with tokei on November 24, 2026. The table ranks the 13 largest by code lines; each row links to a report pinned to the commit it counted.

| Rank | Repository | Code lines | Total lines | Files | Astro share |
| --- | --- | --- | --- | --- | --- |
| 1 | [cloudflare/cloudflare-docs](https://octocounts.com/github/cloudflare/cloudflare-docs) | 572,932 | 721,800 | 5,247 | 6.1% |
| 2 | [DG-InClass/DG-InClass.github.io](https://octocounts.com/github/DG-InClass/DG-InClass.github.io) | 27,656 | 29,338 | 676 | 1.9% |
| 3 | [babysteps0524/CozyMoneyCalculator](https://octocounts.com/github/babysteps0524/CozyMoneyCalculator) | 19,326 | 22,246 | 231 | 69.1% |
| 4 | [shorebirdtech/docs](https://octocounts.com/github/shorebirdtech/docs) | 18,002 | 20,907 | 149 | 11.5% |
| 5 | [dodolalorc/astro-navfolio](https://octocounts.com/github/dodolalorc/astro-navfolio) | 14,492 | 16,899 | 117 | 43.6% |
| 6 | [huanglizhuo/huanglizhuo](https://octocounts.com/github/huanglizhuo/huanglizhuo) | 13,808 | 15,533 | 110 | 19.4% |
| 7 | [google/elephant-goldfish-model](https://octocounts.com/github/google/elephant-goldfish-model) | 11,703 | 16,175 | 123 | 6.8% |
| 8 | [caomaolufei/AIInfraGuide](https://octocounts.com/github/caomaolufei/AIInfraGuide) | 11,207 | 12,178 | 103 | 22.9% |
| 9 | [sandboxnu/sandboxnu.com](https://octocounts.com/github/sandboxnu/sandboxnu.com) | 9,746 | 9,812 | 15 | 1.0% |
| 10 | [satnaing/astro-paper](https://octocounts.com/github/satnaing/astro-paper) | 8,924 | 14,398 | 121 | 27.3% |
| 11 | [vaproh/awesome-coding-plans](https://octocounts.com/github/vaproh/awesome-coding-plans) | 7,397 | 11,468 | 102 | 14.2% |
| 12 | [chrismwilliams/astro-theme-cactus](https://octocounts.com/github/chrismwilliams/astro-theme-cactus) | 7,070 | 9,343 | 69 | 18.6% |
| 13 | [data-privacy-stack/website](https://octocounts.com/github/data-privacy-stack/website) | 6,296 | 7,515 | 18 | 15.1% |

Ranking rule: a repository belongs to Astro when Astro is its largest programming language by code lines; data and prose formats such as JSON, YAML, TOML and Markdown do not count as a language for this rule. "Astro share" is the share of the repository's code lines written in Astro. Code lines exclude comments and blank lines. Every report uses OctoCounts' canonical public options, with tests, docs and generated directories excluded, and reports were generated on different dates.

## FAQ

### Which Astro repository has the most lines of code?

cloudflare/cloudflare-docs is the largest Astro repository in OctoCounts' index, with 572,932 code lines out of 721,800 total lines across 5,247 files, counted on November 24, 2026. DG-InClass/DG-InClass.github.io follows with 27,656 code lines. Code size is not code quality: a larger count only means more source material.

### How does a repository join the Astro leaderboard?

Astro must be its primary programming language: the language with the most code lines in the repository's OctoCounts report, ignoring data and prose formats such as JSON, YAML, TOML and Markdown. The repository then needs a public report with at least 5 files, and it is listed when it is among the 50 largest by code lines.

### How many Astro repositories has OctoCounts measured?

13 public GitHub repositories have Astro as their primary programming language in OctoCounts' index. This page lists the 13 largest by code lines; a repository analyzed with custom counting options keeps those counts as a separate saved result.

### Does more source lines of code mean more complexity?

Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use line counts to gauge the scale of what you would be reading or maintaining, not as a quality signal.

## Related OctoCounts pages

- [The largest codebases by programming language](https://octocounts.com/languages)
- [How OctoCounts counts lines of code](https://octocounts.com/docs/methodology)
- [Hall of Monoliths: largest repositories by lines of code](https://octocounts.com/hall-of-monoliths)
- [How many lines of code? The largest codebases, counted](https://octocounts.com/docs/largest-codebases)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [OctoCounts: count lines of code in any public GitHub repository](https://octocounts.com/)
