# karpathy/nanochat SLOC report

> As of 2026-09-03 (commit 92d63d4e8bb4), karpathy/nanochat contains 9,428 total lines: 5,935 code, 2,128 comments, 1,365 blank, across 40 files in 5 languages (top: Python 87.8%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving karpathy/nanochat to commit 92d63d4e8bb4, 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 small codebase by counted code lines. Code represents 63.0% of all lines, comments represent 22.6%, and the repository averages 148 code lines per file. Python accounts for 87.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 30 | 6,715 | 5,213 | 805 | 697 |
| Jupyter Notebooks | 2 | 785 | 445 | 216 | 124 |
| Shell | 4 | 384 | 216 | 103 | 65 |
| TOML | 1 | 69 | 61 | 1 | 7 |
| Markdown | 3 | 1,475 | 0 | 1,003 | 472 |

Top language (Python 87.8%). Generated at 2026-09-03T11:50:00.084816401+00:00. Canonical report: https://octocounts.com/github/karpathy/nanochat

## Report FAQ

### How many lines of code does karpathy/nanochat have?

karpathy/nanochat has 9,428 total lines, including 5,935 code lines, 2,128 comment lines, and 1,365 blank lines.

### How was the karpathy/nanochat line count measured?

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

### What commit was counted for karpathy/nanochat?

This OctoCounts report was generated from master at commit 92d63d4e8bb4 on 2026-09-03T11:50:00.084816401+00:00.

## Similar repository reports

- [wuji-labs/nopua](https://octocounts.com/github/wuji-labs/nopua) — Python, 5,886 code lines
- [langchain-ai/open_deep_research](https://octocounts.com/github/langchain-ai/open_deep_research) — Python, 5,856 code lines
- [Mavis2103/skill-context-manager](https://octocounts.com/github/Mavis2103/skill-context-manager) — Python, 5,841 code lines
- [ZXB6/YOLOCV-huzhou](https://octocounts.com/github/ZXB6/YOLOCV-huzhou) — Python, 6,036 code lines
- [yoheinakajima/babyagi_archive](https://octocounts.com/github/yoheinakajima/babyagi_archive) — Python, 6,062 code lines
- [swe-agent/mini-swe-agent](https://octocounts.com/github/swe-agent/mini-swe-agent) — Python, 6,112 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)
