# withastro/astro SLOC report

> withastro/astro: 131,423 code lines at commit 9d475f633be1, counted with tokei-15.0.0 on 2026-11-16. Saved result 5e07538ecaf8d65ff815ccb47eb79eb880e239290503d9acb8a57b80f12befc6.

withastro/astro has 131,423 source lines of code out of 223,804 total lines across 1,761 files, counted with tokei from the main ref at commit 9d475f633be1 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving withastro/astro to commit 9d475f633be1, 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,105 | 120,975 | 88,799 | 20,755 | 11,421 |
| YAML | 3 | 28,448 | 26,072 | 124 | 2,252 |
| Astro | 124 | 7,049 | 6,155 | 194 | 700 |
| JSON | 221 | 5,634 | 5,634 | 0 | 0 |
| JavaScript | 86 | 4,415 | 3,427 | 528 | 460 |
| CSS | 12 | 556 | 491 | 17 | 48 |
| Sass | 4 | 431 | 385 | 1 | 45 |
| SVG | 26 | 204 | 204 | 0 | 0 |
| TSX | 11 | 207 | 176 | 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,706 | 0 | 33,901 | 21,805 |

Top language: TypeScript 67.6%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/withastro/astro/commit/9d475f633be13000ac8bef08ee5a9b7a36a8cec8?reportId=5e07538ecaf8d65ff815ccb47eb79eb880e239290503d9acb8a57b80f12befc6&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/9d475f633be13000ac8bef08ee5a9b7a36a8cec8?reportId=5e07538ecaf8d65ff815ccb47eb79eb880e239290503d9acb8a57b80f12befc6&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,423 lines of code, plus 55,590 comment lines and 36,791 blank lines, for 223,804 total lines at commit 9d475f633be1 on November 16, 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 9d475f633be1, 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 9d475f633be1 on November 16, 2026.

## Similar repository reports

- [ueberdosis/tiptap](https://octocounts.com/github/ueberdosis/tiptap) — TypeScript, 131,130 code lines
- [Yoan98/Ncurator](https://octocounts.com/github/Yoan98/Ncurator) — TypeScript, 132,615 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
- [TecnicalBot/mobile-agent](https://octocounts.com/github/TecnicalBot/mobile-agent) — TypeScript, 129,326 code lines
- [apache/echarts](https://octocounts.com/github/apache/echarts) — TypeScript, 129,239 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)
- [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)
