# vitejs/vite SLOC report

> As of 2026-09-21 (commit 9abd99bfdd31), vitejs/vite contains 106,858 total lines: 81,024 code, 13,244 comments, 12,590 blank, across 2,013 files in 21 languages (top: TypeScript 57.8%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

vitejs/vite has 81,024 source lines of code out of 106,858 total lines across 2,013 files, counted from the main ref at commit 9abd99bfdd31 by the OctoCounts tokei engine on 2026-09-21. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving vitejs/vite to commit 9abd99bfdd31, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a medium-sized codebase by counted code lines. Code represents 75.8% of all lines, comments represent 12.4%, and the repository averages 40 code lines per file. TypeScript accounts for 57.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| TypeScript | 332 | 57,847 | 46,798 | 6,303 | 4,746 |
| YAML | 2 | 14,913 | 11,783 | 0 | 3,130 |
| JavaScript | 812 | 10,659 | 9,027 | 565 | 1,067 |
| CSS | 193 | 5,066 | 4,459 | 20 | 587 |
| JSON | 321 | 4,092 | 4,064 | 0 | 28 |
| HTML | 151 | 3,372 | 2,898 | 16 | 458 |
| SVG | 88 | 615 | 600 | 5 | 10 |
| TSX | 13 | 520 | 481 | 1 | 38 |
| JSX | 9 | 494 | 462 | 1 | 31 |
| Svelte | 4 | 180 | 170 | 0 | 10 |
| Sass | 30 | 148 | 133 | 2 | 13 |
| LESS | 11 | 75 | 58 | 7 | 10 |

Top language (TypeScript 57.8%). Generated at 2026-09-21T12:28:44.531203543+00:00. Canonical report: https://octocounts.com/github/vitejs/vite

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/vitejs/vite/commit/9abd99bfdd3117149d6faf87fc37bc9899b1c998?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does vitejs/vite have?

vitejs/vite has 106,858 total lines, including 81,024 code lines, 13,244 comment lines, and 12,590 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 9abd99bfdd31, 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 9abd99bfdd31 on 2026-09-21T12:28:44.531203543+00:00.

## Similar repository reports

- [maricastroc/lucid](https://octocounts.com/github/maricastroc/lucid) — TypeScript, 80,311 code lines
- [chaitanyagiri/munder-difflin](https://octocounts.com/github/chaitanyagiri/munder-difflin) — TypeScript, 78,713 code lines
- [obra/lace](https://octocounts.com/github/obra/lace) — TypeScript, 84,321 code lines
- [rohitg00/agentmemory](https://octocounts.com/github/rohitg00/agentmemory) — TypeScript, 77,052 code lines
- [tradingview/lightweight-charts](https://octocounts.com/github/tradingview/lightweight-charts) — TypeScript, 76,353 code lines
- [vikiboss/60s](https://octocounts.com/github/vikiboss/60s) — TypeScript, 74,923 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)
- [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)
- [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)
