# PostHog/posthog SLOC report

> 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.

## Repository size insights

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 | 14,410 | 2,434,630 | 2,019,851 | 133,000 | 281,779 |
| TypeScript | 8,645 | 1,848,916 | 1,514,773 | 164,486 | 169,657 |
| TSX | 6,782 | 1,202,143 | 1,069,701 | 43,624 | 88,818 |
| Rust | 1,196 | 443,980 | 372,910 | 25,220 | 45,850 |
| JSON | 527 | 316,210 | 316,183 | 0 | 27 |
| YAML | 249 | 213,511 | 200,046 | 1,312 | 12,153 |
| HCL | 101 | 119,882 | 117,536 | 405 | 1,941 |
| SQL | 166 | 33,470 | 32,507 | 714 | 249 |
| JavaScript | 130 | 33,651 | 29,231 | 2,430 | 1,990 |
| Go | 124 | 26,996 | 22,372 | 1,383 | 3,241 |
| Sass | 251 | 26,557 | 21,385 | 1,230 | 3,942 |
| C++ | 11 | 23,829 | 19,598 | 462 | 3,769 |

Top language (Python 34.9%). Generated at 2026-08-25T03:12:13.065001786+00:00. Canonical report: https://octocounts.com/github/PostHog/posthog

## Report FAQ

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

PostHog/posthog has 6,928,965 total lines, including 5,791,773 code lines, 485,930 comment lines, and 651,262 blank lines.

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

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.

### What commit was counted for PostHog/posthog?

This OctoCounts report was generated from master at commit 876d2d04550b on 2026-08-25T03:12:13.065001786+00:00.

## Similar repository reports

- [sagemath/sage](https://octocounts.com/github/sagemath/sage) — Python, 2,624,400 code lines
- [pytorch/pytorch](https://octocounts.com/github/pytorch/pytorch) — Python, 2,500,791 code lines
- [apache/airflow](https://octocounts.com/github/apache/airflow) — Python, 1,638,519 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,383,746 code lines
- [nousresearch/hermes-agent](https://octocounts.com/github/nousresearch/hermes-agent) — Python, 1,355,060 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)
- [OctoCounts API docs](https://octocounts.com/docs/api)
