# nim-lang/Nim SLOC report

> As of 2026-10-05 (commit a03a33b0f7c6), nim-lang/Nim contains 323,440 total lines: 208,289 code, 86,230 comments, 28,921 blank, across 690 files in 18 languages (top: Nim 95.0%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

nim-lang/Nim has 208,289 source lines of code out of 323,440 total lines across 690 files, counted from the devel ref at commit a03a33b0f7c6 by the OctoCounts tokei engine on 2026-10-05. 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 nim-lang/Nim to commit a03a33b0f7c6, 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 64.4% of all lines, comments represent 26.7%, and the repository averages 302 code lines per file. Nim accounts for 95.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Nim | 581 | 270,831 | 197,939 | 47,272 | 25,620 |
| HTML | 22 | 4,268 | 3,531 | 110 | 627 |
| Python | 4 | 2,123 | 1,471 | 95 | 557 |
| Lean | 3 | 2,042 | 991 | 907 | 144 |
| CSS | 1 | 1,150 | 910 | 33 | 207 |
| C Header | 6 | 1,419 | 909 | 293 | 217 |
| C | 2 | 1,216 | 804 | 289 | 123 |
| Forge Config | 15 | 882 | 616 | 133 | 133 |
| ReStructuredText | 3 | 700 | 524 | 0 | 176 |
| GNU Style Assembly | 2 | 160 | 144 | 0 | 16 |
| ReScript | 6 | 130 | 126 | 0 | 4 |
| INI | 1 | 152 | 114 | 10 | 28 |

Top language (Nim 95.0%). Generated at 2026-10-05T17:21:59.737312136+00:00. Canonical report: https://octocounts.com/github/nim-lang/Nim

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/nim-lang/Nim/commit/a03a33b0f7c6a64f155980e7fa2252d390d316b9?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 nim-lang/Nim have?

nim-lang/Nim has 323,440 total lines, including 208,289 code lines, 86,230 comment lines, and 28,921 blank lines.

### How was the nim-lang/Nim line count measured?

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

### What commit was counted for nim-lang/Nim?

This OctoCounts report was generated from devel at commit a03a33b0f7c6 on 2026-10-05T17:21:59.737312136+00:00.

## Similar repository reports

- [hardworkpaanic/crynav-quantum-compass-GPT-6-ASTRO-](https://octocounts.com/github/hardworkpaanic/crynav-quantum-compass-GPT-6-ASTRO-) — Nim, 1,706 code lines
- [MetrolistGroup/Metrolist](https://octocounts.com/github/MetrolistGroup/Metrolist) — Kotlin, 208,136 code lines
- [openwrt/openwrt](https://octocounts.com/github/openwrt/openwrt) — C, 208,078 code lines
- [reppiks490/Icarus-engine](https://octocounts.com/github/reppiks490/Icarus-engine) — JSON, 207,842 code lines
- [alvinunreal/oh-my-opencode-slim](https://octocounts.com/github/alvinunreal/oh-my-opencode-slim) — TypeScript, 207,832 code lines
- [edezhic/mahbot](https://octocounts.com/github/edezhic/mahbot) — Rust, 207,798 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)
