# vitejs/vite SLOC report

> vitejs/vite: 82,161 code lines at commit 1f60d62b83e2, counted with tokei-15.0.0 on 2026-11-04. Saved result b21dc5fa12c4498cd5aa88d1d39beb9f2be26ae6dd0a3d8613f8d74ac7d330a8.

vitejs/vite has 82,161 source lines of code out of 108,142 total lines across 2,076 files, counted with tokei from the main ref at commit 1f60d62b83e2 on November 4, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving vitejs/vite to commit 1f60d62b83e2, 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.0% of all lines, comments represent 12.3%, and the repository averages 40 code lines per file. TypeScript accounts for 58.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| TypeScript | 339 | 59,539 | 48,244 | 6,462 | 4,833 |
| YAML | 2 | 14,377 | 11,339 | 1 | 3,037 |
| JavaScript | 846 | 10,593 | 8,940 | 568 | 1,085 |
| CSS | 195 | 5,070 | 4,463 | 20 | 587 |
| JSON | 332 | 4,200 | 4,172 | 0 | 28 |
| HTML | 156 | 3,484 | 2,997 | 20 | 467 |
| 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 | 32 | 154 | 138 | 2 | 14 |
| LESS | 11 | 75 | 58 | 7 | 10 |
| 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 | 21 | 8,707 | 0 | 6,219 | 2,488 |
| Plain Text | 6 | 6 | 0 | 6 | 0 |

Top language: TypeScript 58.7%. Generated on November 4, 2026. Canonical report: https://octocounts.com/github/vitejs/vite/commit/1f60d62b83e2ba3d2ca600eac5cf790e84080843?reportId=b21dc5fa12c4498cd5aa88d1d39beb9f2be26ae6dd0a3d8613f8d74ac7d330a8&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/1f60d62b83e2ba3d2ca600eac5cf790e84080843?reportId=b21dc5fa12c4498cd5aa88d1d39beb9f2be26ae6dd0a3d8613f8d74ac7d330a8&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 82,161 lines of code, plus 13,326 comment lines and 12,655 blank lines, for 108,142 total lines at commit 1f60d62b83e2 on November 4, 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 1f60d62b83e2, 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 1f60d62b83e2 on November 4, 2026.

## Similar repository reports

- [shader-effects-inc/shaders](https://octocounts.com/github/shader-effects-inc/shaders) — TypeScript, 82,399 code lines
- [Zewang0217/cyber-stray](https://octocounts.com/github/Zewang0217/cyber-stray) — TypeScript, 82,641 code lines
- [No-Instructions/Relay](https://octocounts.com/github/No-Instructions/Relay) — TypeScript, 81,675 code lines
- [nuxt/nuxt](https://octocounts.com/github/nuxt/nuxt) — TypeScript, 81,350 code lines
- [Crosstalk-Solutions/project-nomad](https://octocounts.com/github/Crosstalk-Solutions/project-nomad) — TypeScript, 83,260 code lines
- [luobochuanqi/cyber-stray](https://octocounts.com/github/luobochuanqi/cyber-stray) — TypeScript, 83,492 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)
