# withastro/astro SLOC report

> withastro/astro: 131,939 code lines at commit 28a925e016fa, counted with tokei-15.0.0 on 2026-11-23. Saved result cf303d0f57953cafb7b2605410e1abb27cba76caa5be9c2f854cfa3ec3a4db2c.

Source: [withastro/astro on GitHub](https://github.com/withastro/astro) · counted commit [28a925e016fa](https://github.com/withastro/astro/tree/28a925e016fa160a8cf60bbd9024af92b26dc25b)

withastro/astro has 131,939 source lines of code out of 224,631 total lines across 1,765 files, counted with tokei from the main ref at commit 28a925e016fa on November 23, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving withastro/astro to commit 28a925e016fa, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

withastro/astro: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a large codebase by counted code lines. Code represents 58.7% of all lines, comments represent 24.8%, and the repository averages 75 code lines per file. TypeScript accounts for 67.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| TypeScript | 1,109 | 121,598 | 89,182 | 20,944 | 11,472 |
| YAML | 3 | 28,598 | 26,212 | 125 | 2,261 |
| Astro | 124 | 7,049 | 6,155 | 194 | 700 |
| JSON | 221 | 5,626 | 5,626 | 0 | 0 |
| JavaScript | 86 | 4,413 | 3,426 | 527 | 460 |
| CSS | 12 | 556 | 491 | 17 | 48 |
| Sass | 4 | 431 | 385 | 1 | 45 |
| SVG | 26 | 204 | 204 | 0 | 0 |
| TSX | 11 | 209 | 178 | 6 | 25 |
| Svelte | 4 | 44 | 38 | 3 | 3 |
| JSX | 2 | 35 | 32 | 0 | 3 |
| Vue | 2 | 13 | 10 | 0 | 3 |
| MDX | 4 | 87 | 0 | 61 | 26 |
| Markdown | 157 | 55,768 | 0 | 33,933 | 21,835 |

Top language: TypeScript 67.6%. Generated on November 23, 2026. Canonical report: https://octocounts.com/github/withastro/astro/commit/28a925e016fa160a8cf60bbd9024af92b26dc25b?reportId=cf303d0f57953cafb7b2605410e1abb27cba76caa5be9c2f854cfa3ec3a4db2c&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/withastro/astro/commit/28a925e016fa160a8cf60bbd9024af92b26dc25b?reportId=cf303d0f57953cafb7b2605410e1abb27cba76caa5be9c2f854cfa3ec3a4db2c&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does withastro/astro have?

withastro/astro has 131,939 lines of code, plus 55,811 comment lines and 36,881 blank lines, for 224,631 total lines at commit 28a925e016fa on November 23, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the withastro/astro line count measured?

OctoCounts resolved the public GitHub repository to commit 28a925e016fa, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for withastro/astro?

This OctoCounts report was generated from main at commit 28a925e016fa on November 23, 2026.

## Similar repository reports

- [ueberdosis/tiptap](https://octocounts.com/github/ueberdosis/tiptap) — TypeScript, 131,538 code lines
- [nashsu/llm_wiki](https://octocounts.com/github/nashsu/llm_wiki) — TypeScript, 133,067 code lines
- [huangkaoya/ts-redalert2](https://octocounts.com/github/huangkaoya/ts-redalert2) — TypeScript, 133,454 code lines
- [iJetLi/dsh-providers-hub](https://octocounts.com/github/iJetLi/dsh-providers-hub) — TypeScript, 133,952 code lines
- [pmndre/pine](https://octocounts.com/github/pmndre/pine) — TypeScript, 129,938 code lines
- [ahmedkhaleel2004/gitdiagram](https://octocounts.com/github/ahmedkhaleel2004/gitdiagram) — TypeScript, 129,894 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [Astro vs Next.js](https://octocounts.com/compare/astro-vs-nextjs)
- [Next.js vs Vite](https://octocounts.com/compare/nextjs-vs-vite)
- [Angular vs Vue](https://octocounts.com/compare/angular-vs-vue)
- [Svelte vs Vue](https://octocounts.com/compare/svelte-vs-vue)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
