PostHog/posthog SLOC report
As of 2026-07-17 (commit 047ea80be905), PostHog/posthog contains 5,043,655 total lines: 4,210,278 code, 342,422 comments, 490,955 blank, across 24,293 files in 31 languages (top: Python 35.1%). Counted with tokei via OctoCounts.
Repository size insights
This is a very large codebase by counted code lines. Code represents 83.5% of all lines, comments represent 6.8%, and the repository averages 173 code lines per file. Python accounts for 35.1% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|
| Python | 10420 | 1790279 | 1478590 | 87936 | 223753 |
| TypeScript | 5009 | 1192997 | 965329 | 117346 | 110322 |
| TSX | 4856 | 868544 | 776126 | 25868 | 66550 |
| Rust | 1084 | 355539 | 297402 | 19401 | 38736 |
| JSON | 467 | 292346 | 292323 | 0 | 23 |
| YAML | 213 | 168814 | 158424 | 1088 | 9302 |
| HCL | 70 | 90965 | 89463 | 314 | 1188 |
| JavaScript | 92 | 28707 | 25065 | 2046 | 1596 |
| SQL | 116 | 23395 | 22793 | 394 | 208 |
| Go | 124 | 26912 | 22317 | 1361 | 3234 |
| C++ | 11 | 23764 | 19569 | 425 | 3770 |
| Sass | 229 | 21102 | 17152 | 854 | 3096 |
Top language (Python 35.1%). Generated at 2026-07-17T05:22:50.648910364+00:00.
Report FAQ
How many lines of code does PostHog/posthog have?
PostHog/posthog has 5,043,655 total lines, including 4,210,278 code lines, 342,422 comment lines, and 490,955 blank lines.
How was the PostHog/posthog line count measured?
OctoCounts resolved the public GitHub repository to commit 047ea80be905, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
What commit was counted for PostHog/posthog?
This OctoCounts report was generated from master at commit 047ea80be905 on 2026-07-17T05:22:50.648910364+00:00.