# vitejs/vite SLOC report

> As of 2026-09-19 (commit e9078f865cdf), vitejs/vite contains 154,569 total lines: 112,415 code, 22,989 comments, 19,165 blank, across 2,583 files in 21 languages (top: TypeScript 67.7%). Default configuration. Counted with tokei via OctoCounts.

vitejs/vite has 112,415 source lines of code out of 154,569 total lines across 2,583 files, counted from the main ref at commit e9078f865cdf by the OctoCounts tokei engine on 2026-09-19. 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 e9078f865cdf, 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 large codebase by counted code lines. Code represents 72.7% of all lines, comments represent 14.9%, and the repository averages 44 code lines per file. TypeScript accounts for 67.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| TypeScript | 573 | 91,977 | 76,095 | 7,967 | 7,915 |
| YAML | 4 | 14,969 | 11,822 | 12 | 3,135 |
| JavaScript | 968 | 11,555 | 9,809 | 588 | 1,158 |
| CSS | 204 | 5,104 | 4,497 | 20 | 587 |
| JSON | 385 | 4,462 | 4,432 | 0 | 30 |
| HTML | 156 | 3,396 | 2,921 | 16 | 459 |
| SVG | 113 | 1,457 | 1,436 | 10 | 11 |
| TSX | 17 | 531 | 489 | 1 | 41 |
| 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 67.7%). Generated at 2026-09-19T21:59:32.321440235+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/e9078f865cdff6bed77cd729214a7e2868f126b5?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Atrue%2C%22includeTests%22%3Atrue%2C%22includeGenerated%22%3Atrue%7D).

## Report FAQ

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

vitejs/vite has 154,569 total lines, including 112,415 code lines, 22,989 comment lines, and 19,165 blank lines.

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

OctoCounts resolved the public GitHub repository to commit e9078f865cdf, 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 e9078f865cdf on 2026-09-19T21:59:32.321440235+00:00.

## Similar repository reports

- [stefanhoelzl/codehydra](https://octocounts.com/github/stefanhoelzl/codehydra) — TypeScript, 113,270 code lines
- [babel/babel](https://octocounts.com/github/babel/babel) — TypeScript, 110,864 code lines
- [md-abu-kayser/advanced-js-problem-solver](https://octocounts.com/github/md-abu-kayser/advanced-js-problem-solver) — TypeScript, 109,317 code lines
- [nexmoe/VidBee](https://octocounts.com/github/nexmoe/VidBee) — TypeScript, 115,810 code lines
- [garrytan/gstack](https://octocounts.com/github/garrytan/gstack) — TypeScript, 108,692 code lines
- [Qihoo360/wayne](https://octocounts.com/github/Qihoo360/wayne) — TypeScript, 116,800 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)
