# vitejs/vite SLOC report

> vitejs/vite: 84,057 code lines at commit 9a8d1a98922c, counted with tokei-15.0.0 on 2026-11-16. Saved result 158cc44b4c419995e6dffef5ea973d5fdc61450ee6f5cdb0fa543963b3c69fa2.

vitejs/vite has 84,057 source lines of code out of 110,505 total lines across 2,133 files, counted with tokei from the main ref at commit 9a8d1a98922c on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving vitejs/vite to commit 9a8d1a98922c, 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

vitejs/vite: 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 medium-sized codebase by counted code lines. Code represents 76.1% of all lines, comments represent 12.4%, and the repository averages 39 code lines per file. TypeScript accounts for 59.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| TypeScript | 345 | 61,307 | 49,834 | 6,566 | 4,907 |
| YAML | 2 | 14,117 | 11,133 | 2 | 2,982 |
| JavaScript | 880 | 11,062 | 9,308 | 612 | 1,142 |
| CSS | 197 | 5,086 | 4,476 | 20 | 590 |
| JSON | 336 | 4,258 | 4,230 | 0 | 28 |
| HTML | 160 | 3,553 | 3,060 | 21 | 472 |
| SVG | 88 | 615 | 600 | 5 | 10 |
| TSX | 13 | 520 | 481 | 1 | 38 |
| JSX | 9 | 496 | 464 | 1 | 31 |
| Svelte | 6 | 184 | 174 | 0 | 10 |
| Sass | 34 | 160 | 143 | 2 | 15 |
| LESS | 13 | 81 | 63 | 7 | 11 |
| Stylus | 6 | 35 | 24 | 5 | 6 |
| Vue | 6 | 38 | 24 | 7 | 7 |
| PostCSS | 4 | 17 | 14 | 0 | 3 |
| Shell | 1 | 10 | 9 | 1 | 0 |
| Pug | 1 | 8 | 8 | 0 | 0 |
| TOML | 1 | 8 | 7 | 1 | 0 |
| Astro | 1 | 6 | 5 | 0 | 1 |
| Markdown | 23 | 8,937 | 0 | 6,390 | 2,547 |
| Plain Text | 7 | 7 | 0 | 7 | 0 |

Top language: TypeScript 59.3%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/vitejs/vite/commit/9a8d1a98922c5e445e8a618b8c27f84c63b9fbff?reportId=158cc44b4c419995e6dffef5ea973d5fdc61450ee6f5cdb0fa543963b3c69fa2&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/vitejs/vite/commit/9a8d1a98922c5e445e8a618b8c27f84c63b9fbff?reportId=158cc44b4c419995e6dffef5ea973d5fdc61450ee6f5cdb0fa543963b3c69fa2&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 vitejs/vite have?

vitejs/vite has 84,057 lines of code, plus 13,648 comment lines and 12,800 blank lines, for 110,505 total lines at commit 9a8d1a98922c on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the vitejs/vite line count measured?

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

### What commit was counted for vitejs/vite?

This OctoCounts report was generated from main at commit 9a8d1a98922c on November 16, 2026.

## Similar repository reports

- [bas3line/ascii](https://octocounts.com/github/bas3line/ascii) — TypeScript, 84,612 code lines
- [luobochuanqi/cyber-stray](https://octocounts.com/github/luobochuanqi/cyber-stray) — TypeScript, 83,492 code lines
- [linkwarden/linkwarden](https://octocounts.com/github/linkwarden/linkwarden) — TypeScript, 83,316 code lines
- [Crosstalk-Solutions/project-nomad](https://octocounts.com/github/Crosstalk-Solutions/project-nomad) — TypeScript, 83,260 code lines
- [langchain-ai/deepagentsjs](https://octocounts.com/github/langchain-ai/deepagentsjs) — TypeScript, 83,257 code lines
- [PC2005-cloud/dsh-pet](https://octocounts.com/github/PC2005-cloud/dsh-pet) — TypeScript, 85,066 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)
- [Vite vs webpack](https://octocounts.com/compare/vite-vs-webpack)
- [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)
