# vitejs/vite SLOC report

> As of 2026-10-10 (commit 3b72997d42e7), vitejs/vite contains 107,470 total lines: 81,496 code, 13,338 comments, 12,636 blank, across 2,035 files in 21 languages (top: TypeScript 58.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

vitejs/vite has 81,496 source lines of code out of 107,470 total lines across 2,035 files, counted from the main ref at commit 3b72997d42e7 by the OctoCounts tokei engine on 2026-10-10. 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 3b72997d42e7, 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 58.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| TypeScript | 336 | 58,590 | 47,427 | 6,359 | 4,804 |
| YAML | 2 | 14,543 | 11,455 | 0 | 3,088 |
| JavaScript | 818 | 10,756 | 9,109 | 573 | 1,074 |
| CSS | 195 | 5,070 | 4,463 | 20 | 587 |
| JSON | 324 | 4,131 | 4,103 | 0 | 28 |
| HTML | 154 | 3,412 | 2,935 | 16 | 461 |
| SVG | 88 | 615 | 600 | 5 | 10 |
| TSX | 13 | 520 | 481 | 1 | 38 |
| JSX | 9 | 494 | 462 | 1 | 31 |
| Svelte | 6 | 184 | 174 | 0 | 10 |
| Sass | 32 | 154 | 138 | 2 | 14 |
| LESS | 11 | 75 | 58 | 7 | 10 |

Top language (TypeScript 58.2%). Generated at 2026-10-10T00:21:53.810906944+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/3b72997d42e7dd2b31898d0e68461e3025e836b6?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&reportId=7105c88fab89c89ebae839d314fe9988aa553f224b5a1757b2c1d6085fa93a12).

## Report FAQ

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

vitejs/vite has 107,470 total lines, including 81,496 code lines, 13,338 comment lines, and 12,636 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 3b72997d42e7, 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 3b72997d42e7 on 2026-10-10T00:21:53.810906944+00:00.

## Similar repository reports

- [Zewang0217/cyber-stray](https://octocounts.com/github/Zewang0217/cyber-stray) — TypeScript, 81,367 code lines
- [shader-effects-inc/shaders](https://octocounts.com/github/shader-effects-inc/shaders) — TypeScript, 81,840 code lines
- [Crosstalk-Solutions/project-nomad](https://octocounts.com/github/Crosstalk-Solutions/project-nomad) — TypeScript, 83,260 code lines
- [BetterWright/betterwright](https://octocounts.com/github/BetterWright/betterwright) — TypeScript, 79,131 code lines
- [mihomo-party-org/clash-party](https://octocounts.com/github/mihomo-party-org/clash-party) — TypeScript, 78,611 code lines
- [capricorn86/happy-dom](https://octocounts.com/github/capricorn86/happy-dom) — TypeScript, 86,552 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)
