# PostHog/posthog SLOC report

> As of 2026-09-15 (commit d89bcde7a24d), PostHog/posthog contains 7,883,705 total lines: 6,607,131 code, 555,467 comments, 721,107 blank, across 38,726 files in 32 languages (top: Python 34.4%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

PostHog/posthog has 6,607,131 source lines of code out of 7,883,705 total lines across 38,726 files, counted from the d89bcde7a24d5c5f310c4c70c6f02d8c70ac38b2 ref at commit d89bcde7a24d by the OctoCounts tokei engine on 2026-09-15. 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 PostHog/posthog to commit d89bcde7a24d, 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 83.8% of all lines, comments represent 7.0%, and the repository averages 171 code lines per file. Python accounts for 34.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 15,675 | 2,734,279 | 2,271,052 | 150,845 | 312,382 |
| TypeScript | 9,505 | 2,056,319 | 1,675,121 | 194,234 | 186,964 |
| TSX | 7,787 | 1,338,220 | 1,189,850 | 48,987 | 99,383 |
| JSON | 748 | 464,874 | 464,847 | 0 | 27 |
| Rust | 1,291 | 492,370 | 414,919 | 27,620 | 49,831 |
| YAML | 284 | 220,403 | 206,744 | 1,437 | 12,222 |
| HCL | 138 | 171,221 | 167,298 | 574 | 3,349 |
| SQL | 194 | 48,367 | 47,223 | 882 | 262 |
| JavaScript | 140 | 35,387 | 30,802 | 2,550 | 2,035 |
| Go | 154 | 35,081 | 29,766 | 1,488 | 3,827 |
| Sass | 286 | 35,228 | 28,139 | 1,678 | 5,411 |
| C++ | 11 | 23,829 | 19,598 | 462 | 3,769 |

Top language (Python 34.4%). Generated at 2026-09-15T22:57:05.764670224+00:00. Canonical report: https://octocounts.com/github/PostHog/posthog

## Reproduce this report

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

## Report FAQ

### How many lines of code does PostHog/posthog have?

PostHog/posthog has 7,883,705 total lines, including 6,607,131 code lines, 555,467 comment lines, and 721,107 blank lines.

### How was the PostHog/posthog line count measured?

OctoCounts resolved the public GitHub repository to commit d89bcde7a24d, 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 d89bcde7a24d5c5f310c4c70c6f02d8c70ac38b2 at commit d89bcde7a24d on 2026-09-15T22:57:05.764670224+00:00.

## Similar repository reports

- [pytorch/pytorch](https://octocounts.com/github/pytorch/pytorch) — Python, 3,846,607 code lines
- [sagemath/sage](https://octocounts.com/github/sagemath/sage) — Python, 2,624,400 code lines
- [apache/airflow](https://octocounts.com/github/apache/airflow) — Python, 1,709,773 code lines
- [home-assistant/core](https://octocounts.com/github/home-assistant/core) — Python, 1,513,961 code lines
- [comet-ml/opik](https://octocounts.com/github/comet-ml/opik) — Python, 1,415,239 code lines
- [nousresearch/hermes-agent](https://octocounts.com/github/nousresearch/hermes-agent) — Python, 1,373,652 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)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [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)
