# apache/kafka SLOC report

> As of 2026-08-26 (commit 20d81283e880), apache/kafka contains 757,461 total lines: 480,371 code, 192,712 comments, 84,378 blank, across 4,465 files in 14 languages (top: Java 90.5%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving apache/kafka to commit 20d81283e880, 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 large codebase by counted code lines. Code represents 63.4% of all lines, comments represent 25.4%, and the repository averages 108 code lines per file. Java accounts for 90.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 3,894 | 695,312 | 434,683 | 181,712 | 78,917 |
| Scala | 77 | 30,263 | 20,832 | 6,376 | 3,055 |
| JSON | 294 | 16,266 | 15,948 | 0 | 318 |
| Python | 24 | 3,695 | 2,607 | 488 | 600 |
| XML | 27 | 3,689 | 2,591 | 720 | 378 |
| Shell | 59 | 2,620 | 1,206 | 1,138 | 276 |
| YAML | 16 | 1,321 | 1,012 | 259 | 50 |
| Batch | 37 | 901 | 821 | 0 | 80 |
| BASH | 10 | 610 | 328 | 196 | 86 |
| Dockerfile | 3 | 286 | 174 | 58 | 54 |
| XSL | 1 | 206 | 153 | 27 | 26 |
| HTML | 3 | 72 | 16 | 54 | 2 |

Top language (Java 90.5%). Generated at 2026-08-26T18:20:24.225170519+00:00. Canonical report: https://octocounts.com/github/apache/kafka

## Report FAQ

### How many lines of code does apache/kafka have?

apache/kafka has 757,461 total lines, including 480,371 code lines, 192,712 comment lines, and 84,378 blank lines.

### How was the apache/kafka line count measured?

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

### What commit was counted for apache/kafka?

This OctoCounts report was generated from trunk at commit 20d81283e880 on 2026-08-26T18:20:24.225170519+00:00.

## Similar repository reports

- [keycloak/keycloak](https://octocounts.com/github/keycloak/keycloak) — Java, 471,314 code lines
- [strimzi/strimzi-kafka-operator](https://octocounts.com/github/strimzi/strimzi-kafka-operator) — Java, 451,271 code lines
- [spring-projects/spring-framework](https://octocounts.com/github/spring-projects/spring-framework) — Java, 443,819 code lines
- [apache/cassandra](https://octocounts.com/github/apache/cassandra) — Java, 535,394 code lines
- [libgdx/libgdx](https://octocounts.com/github/libgdx/libgdx) — Java, 542,150 code lines
- [apache/calcite](https://octocounts.com/github/apache/calcite) — Java, 544,096 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)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [Kubernetes vs Docker Compose](https://octocounts.com/compare/kubernetes-vs-docker-compose)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [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)
