microsoft/TypeScript has 1,353,159 source lines of code out of 2,184,539 total lines across 22,685 files, counted with tokei from the main ref at commit 5e32f3249529 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-16 (commit 5e32f3249529), microsoft/TypeScript contains 2,184,539 total lines: 1,353,159 code, 620,807 comments, 210,573 blank, across 22,685 files in 11 languages (top language: JavaScript 59.5%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving microsoft/TypeScript to commit 5e32f3249529, 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.
This is a very large codebase by counted code lines. Code represents 61.9% of all lines, comments represent 28.4%, and the repository averages 60 code lines per file. JavaScript accounts for 59.5% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| JavaScript | 13575 | 1016015 | 805123 | 100778 | 110114 |
| Go | 848 | 428708 | 356304 | 32452 | 39952 |
| JSON | 202 | 102485 | 102462 | 0 | 23 |
| TypeScript | 285 | 147549 | 86957 | 49896 | 10696 |
| YAML | 10 | 2203 | 2005 | 18 | 180 |
| GNU Style Assembly | 3 | 518 | 277 | 146 | 95 |
| MSBuild | 1 | 24 | 20 | 0 | 4 |
| NuGet Config | 1 | 7 | 7 | 0 | 0 |
| Shell | 2 | 6 | 4 | 2 | 0 |
| Markdown | 57 | 2224 | 0 | 1684 | 540 |
| Plain Text | 7701 | 484800 | 0 | 435831 | 48969 |
Top language: JavaScript 59.5%. Generated on .
microsoft/TypeScript: 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.
microsoft/TypeScript has 1,353,159 lines of code, plus 620,807 comment lines and 210,573 blank lines, for 2,184,539 total lines at commit 5e32f3249529 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 5e32f3249529, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit 5e32f3249529 on November 16, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for microsoft/TypeScript on this page — 1,353,159 code lines across 11 languages, counted by tokei.