# Kotlin/kotlinx.serialization SLOC report

> Kotlin/kotlinx.serialization: 114,505 code lines at commit 4c28c3e33c14, counted with tokei-14.0.0 on 2026-10-20. Saved result 0b843d40ac2a251d28b5f0b136e878acb6127e8e9dbeef9020988514dc9b9014.

Kotlin/kotlinx.serialization has 114,505 source lines of code out of 138,313 total lines across 983 files, counted from the master ref at commit 4c28c3e33c14 by the OctoCounts tokei engine on 2026-10-20. 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 Kotlin/kotlinx.serialization to commit 4c28c3e33c14, 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 82.8% of all lines, comments represent 9.8%, and the repository averages 116 code lines per file. JSON accounts for 57.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| JSON | 252 | 66,207 | 66,206 | 0 | 1 |
| Kotlin | 675 | 67,112 | 47,096 | 10,692 | 9,324 |
| Protocol Buffers | 19 | 1,057 | 707 | 201 | 149 |
| Shell | 2 | 496 | 206 | 238 | 52 |
| Batch | 2 | 164 | 128 | 0 | 36 |
| Prolog | 2 | 75 | 65 | 0 | 10 |
| TOML | 1 | 64 | 60 | 0 | 4 |
| Java | 6 | 43 | 37 | 0 | 6 |
| Markdown | 9 | 2,439 | 0 | 1,826 | 613 |
| Plain Text | 15 | 656 | 0 | 623 | 33 |

Top language (JSON 57.8%). Generated at 2026-10-20T01:30:49.028446806Z. Canonical report: https://octocounts.com/github/Kotlin/kotlinx.serialization/commit/4c28c3e33c145da536f1f4a671f70e5eb5b62b9c?reportId=0b843d40ac2a251d28b5f0b136e878acb6127e8e9dbeef9020988514dc9b9014&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/Kotlin/kotlinx.serialization/commit/4c28c3e33c145da536f1f4a671f70e5eb5b62b9c?reportId=0b843d40ac2a251d28b5f0b136e878acb6127e8e9dbeef9020988514dc9b9014&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does Kotlin/kotlinx.serialization have?

Kotlin/kotlinx.serialization has 138,313 total lines, including 114,505 code lines, 13,580 comment lines, and 10,228 blank lines.

### How was the Kotlin/kotlinx.serialization line count measured?

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

### What commit was counted for Kotlin/kotlinx.serialization?

This OctoCounts report was generated from master at commit 4c28c3e33c14 on 2026-10-20T01:30:49.028446806Z.

## Similar repository reports

- [modelence/modelence](https://octocounts.com/github/modelence/modelence) — JSON, 114,772 code lines
- [GlacierGlimmer/zmd-charge-plus](https://octocounts.com/github/GlacierGlimmer/zmd-charge-plus) — JSON, 116,720 code lines
- [TianLin0509/ai-arena-extension](https://octocounts.com/github/TianLin0509/ai-arena-extension) — JSON, 110,866 code lines
- [N0zoM1z0/vocaloid-mcp](https://octocounts.com/github/N0zoM1z0/vocaloid-mcp) — JSON, 110,498 code lines
- [styled-components/styled-components](https://octocounts.com/github/styled-components/styled-components) — JSON, 119,092 code lines
- [nashtech-garage/yas](https://octocounts.com/github/nashtech-garage/yas) — JSON, 119,355 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)
- [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)
