# tdlib/td SLOC report

> tdlib/td: 578,070 code lines at commit ba976cb4aba5, counted with tokei-15.0.0 on 2026-11-16. Saved result dc4167f5a7423c51568d48c7e5928d114e99b01b01333c4972d38fbef849f82c.

tdlib/td has 578,070 source lines of code out of 739,418 total lines across 1,607 files, counted with tokei from the master ref at commit ba976cb4aba5 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving tdlib/td to commit ba976cb4aba5, 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.

## Counting rules and retention

tdlib/td: 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.

## Repository size insights

This is a large codebase by counted code lines. Code represents 78.2% of all lines, comments represent 11.7%, and the repository averages 360 code lines per file. C++ accounts for 53.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 581 | 350,749 | 306,848 | 7,307 | 36,594 |
| C | 5 | 236,950 | 168,586 | 56,485 | 11,879 |
| C Header | 788 | 115,185 | 73,603 | 18,074 | 23,508 |
| JSON | 3 | 9,520 | 9,520 | 0 | 0 |
| C++ Header | 132 | 11,222 | 9,438 | 797 | 987 |
| CMake | 25 | 4,134 | 3,504 | 205 | 425 |
| JavaScript | 6 | 1,944 | 1,671 | 136 | 137 |
| PHP | 6 | 2,092 | 1,658 | 218 | 216 |
| Java | 4 | 1,176 | 901 | 174 | 101 |
| C# | 4 | 615 | 486 | 76 | 53 |
| Python | 2 | 619 | 461 | 62 | 96 |
| Shell | 13 | 564 | 449 | 22 | 93 |
| MSBuild | 3 | 268 | 257 | 8 | 3 |
| Swift | 1 | 192 | 154 | 8 | 30 |
| PowerShell | 3 | 177 | 152 | 0 | 25 |
| HTML | 1 | 162 | 140 | 0 | 22 |
| Objective-C++ | 1 | 85 | 66 | 6 | 13 |
| Visual Studio Solution | 2 | 63 | 61 | 0 | 2 |
| XAML | 2 | 36 | 33 | 1 | 2 |
| Autoconf | 3 | 66 | 32 | 26 | 8 |
| XML | 3 | 57 | 31 | 21 | 5 |
| Dockerfile | 1 | 28 | 19 | 0 | 9 |
| Markdown | 15 | 2,682 | 0 | 2,321 | 361 |
| Plain Text | 3 | 832 | 0 | 826 | 6 |

Top language: C++ 53.1%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/tdlib/td/commit/ba976cb4aba53a82eff425db2f85e2741774c944?reportId=dc4167f5a7423c51568d48c7e5928d114e99b01b01333c4972d38fbef849f82c&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/tdlib/td/commit/ba976cb4aba53a82eff425db2f85e2741774c944?reportId=dc4167f5a7423c51568d48c7e5928d114e99b01b01333c4972d38fbef849f82c&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does tdlib/td have?

tdlib/td has 578,070 lines of code, plus 86,773 comment lines and 74,575 blank lines, for 739,418 total lines at commit ba976cb4aba5 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the tdlib/td line count measured?

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

### What commit was counted for tdlib/td?

This OctoCounts report was generated from master at commit ba976cb4aba5 on November 16, 2026.

## Similar repository reports

- [google-ai-edge/LiteRT-LM](https://octocounts.com/github/google-ai-edge/LiteRT-LM) — C++, 576,150 code lines
- [houmo-ai/llama.cpp](https://octocounts.com/github/houmo-ai/llama.cpp) — C++, 587,728 code lines
- [ggml-org/whisper.cpp](https://octocounts.com/github/ggml-org/whisper.cpp) — C++, 591,996 code lines
- [realsenseai/librealsense](https://octocounts.com/github/realsenseai/librealsense) — C++, 564,223 code lines
- [id-Software/DOOM-3](https://octocounts.com/github/id-Software/DOOM-3) — C++, 593,542 code lines
- [handy-computer/transcribe.cpp](https://octocounts.com/github/handy-computer/transcribe.cpp) — C++, 594,507 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)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
