As of 2026-08-25 (commit 876d2d04550b), PostHog/posthog contains 6,928,965 total lines: 5,791,773 code, 485,930 comments, 651,262 blank, across 34,929 files in 32 languages (top: Python 34.9%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving PostHog/posthog to commit 876d2d04550b, 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.
This is a very large codebase by counted code lines. Code represents 83.6% of all lines, comments represent 7.0%, and the repository averages 166 code lines per file. Python accounts for 34.9% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 14410 | 2434630 | 2019851 | 133000 | 281779 |
| TypeScript | 8645 | 1848916 | 1514773 | 164486 | 169657 |
| TSX | 6782 | 1202143 | 1069701 | 43624 | 88818 |
| Rust | 1196 | 443980 | 372910 | 25220 | 45850 |
| JSON | 527 | 316210 | 316183 | 0 | 27 |
| YAML | 249 | 213511 | 200046 | 1312 | 12153 |
| HCL | 101 | 119882 | 117536 | 405 | 1941 |
| SQL | 166 | 33470 | 32507 | 714 | 249 |
| JavaScript | 130 | 33651 | 29231 | 2430 | 1990 |
| Go | 124 | 26996 | 22372 | 1383 | 3241 |
| Sass | 251 | 26557 | 21385 | 1230 | 3942 |
| C++ | 11 | 23829 | 19598 | 462 | 3769 |
Top language (Python 34.9%). Generated at 2026-08-25T03:12:13.065001786+00:00.
PostHog/posthog has 6,928,965 total lines, including 5,791,773 code lines, 485,930 comment lines, and 651,262 blank lines.
OctoCounts resolved the public GitHub repository to commit 876d2d04550b, 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 master at commit 876d2d04550b on 2026-08-25T03:12:13.065001786+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: