# microsoft/TypeScript SLOC report

> As of 2026-09-04 (commit e73c923cb58e), microsoft/TypeScript contains 3,377,358 total lines: 1,794,163 code, 718,967 comments, 864,228 blank, across 39,075 files in 10 languages (top: JavaScript 39.9%). Default configuration. Counted with tokei via OctoCounts.

microsoft/TypeScript has 1,794,163 source lines of code out of 3,377,358 total lines across 39,075 files, counted from the main ref at commit e73c923cb58e by the OctoCounts tokei engine on 2026-09-04. 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 microsoft/TypeScript to commit e73c923cb58e, 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 very large codebase by counted code lines. Code represents 53.1% of all lines, comments represent 21.3%, and the repository averages 46 code lines per file. JavaScript accounts for 39.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| JavaScript | 13,106 | 908,961 | 715,771 | 95,026 | 98,164 |
| TypeScript | 12,770 | 754,015 | 523,917 | 152,090 | 78,008 |
| Go | 5,095 | 1,142,894 | 463,647 | 41,171 | 638,076 |
| JSON | 178 | 83,433 | 83,381 | 0 | 52 |
| TSX | 350 | 10,594 | 6,155 | 2,827 | 1,612 |
| YAML | 6 | 1,109 | 1,015 | 24 | 70 |
| GNU Style Assembly | 3 | 512 | 273 | 146 | 93 |
| Shell | 2 | 6 | 4 | 2 | 0 |
| Markdown | 57 | 2,219 | 0 | 1,666 | 553 |
| Plain Text | 7,508 | 473,615 | 0 | 426,015 | 47,600 |

Top language (JavaScript 39.9%). Generated at 2026-09-04T08:34:07.760732428+00:00. Canonical report: https://octocounts.com/github/microsoft/TypeScript

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/microsoft/TypeScript/commit/e73c923cb58e9ea8cd75ba41c51b8d8886af3076?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 microsoft/TypeScript have?

microsoft/TypeScript has 3,377,358 total lines, including 1,794,163 code lines, 718,967 comment lines, and 864,228 blank lines.

### How was the microsoft/TypeScript line count measured?

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

### What commit was counted for microsoft/TypeScript?

This OctoCounts report was generated from main at commit e73c923cb58e on 2026-09-04T08:34:07.760732428+00:00.

## Similar repository reports

- [highcharts/highcharts](https://octocounts.com/github/highcharts/highcharts) — JavaScript, 1,788,814 code lines
- [hospital-management-system-emr/hospital-management-system-emr-opensource](https://octocounts.com/github/hospital-management-system-emr/hospital-management-system-emr-opensource) — JavaScript, 1,921,657 code lines
- [swc-project/swc](https://octocounts.com/github/swc-project/swc) — JavaScript, 1,615,015 code lines
- [usmannasir/cyberpanel](https://octocounts.com/github/usmannasir/cyberpanel) — JavaScript, 1,350,897 code lines
- [Gracker/SmartPerfetto](https://octocounts.com/github/Gracker/SmartPerfetto) — JavaScript, 869,717 code lines
- [facebook/react-native](https://octocounts.com/github/facebook/react-native) — JavaScript, 588,720 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)
- [React vs Vue](https://octocounts.com/compare/react-vs-vue)
- [Next.js vs Vite](https://octocounts.com/compare/nextjs-vs-vite)
- [Vite vs webpack](https://octocounts.com/compare/vite-vs-webpack)
- [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)
