# napi-rs/napi-rs SLOC report

> As of 2026-10-22 (commit 31a0c2ec04a5), napi-rs/napi-rs contains 161,177 total lines: 131,282 code, 15,368 comments, 14,527 blank, across 444 files in 9 languages (top: Rust 60.7%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

napi-rs/napi-rs has 131,282 source lines of code out of 161,177 total lines across 444 files, counted from the main ref at commit 31a0c2ec04a5 by the OctoCounts tokei engine on 2026-10-22. 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 napi-rs/napi-rs to commit 31a0c2ec04a5, 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 81.5% of all lines, comments represent 9.5%, and the repository averages 296 code lines per file. Rust accounts for 60.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 228 | 92,870 | 79,715 | 4,866 | 8,289 |
| TypeScript | 72 | 38,547 | 30,898 | 4,283 | 3,366 |
| JavaScript | 72 | 23,924 | 19,163 | 3,732 | 1,029 |
| JSON | 23 | 806 | 806 | 0 | 0 |
| TOML | 17 | 644 | 531 | 30 | 83 |
| Dockerfile | 5 | 147 | 132 | 0 | 15 |
| HTML | 3 | 27 | 26 | 0 | 1 |
| SVG | 2 | 11 | 11 | 0 | 0 |
| Markdown | 22 | 4,201 | 0 | 2,457 | 1,744 |

Top language (Rust 60.7%). Generated at 2026-10-22T06:42:37.367310187+00:00. Canonical report: https://octocounts.com/github/napi-rs/napi-rs

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/napi-rs/napi-rs/commit/31a0c2ec04a5751fc2f9fc3d919ce5aa3c54901f?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&reportId=449380ff7e1c7f8fdad64ae63c7626a865735bb5994bfe4dda250643303f0cb7).

## Report FAQ

### How many lines of code does napi-rs/napi-rs have?

napi-rs/napi-rs has 161,177 total lines, including 131,282 code lines, 15,368 comment lines, and 14,527 blank lines.

### How was the napi-rs/napi-rs line count measured?

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

### What commit was counted for napi-rs/napi-rs?

This OctoCounts report was generated from main at commit 31a0c2ec04a5 on 2026-10-22T06:42:37.367310187+00:00.

## Similar repository reports

- [uutils/coreutils](https://octocounts.com/github/uutils/coreutils) — Rust, 131,654 code lines
- [pocket-nexus/quickjs-oxide](https://octocounts.com/github/pocket-nexus/quickjs-oxide) — Rust, 129,260 code lines
- [since2006/shell-rs](https://octocounts.com/github/since2006/shell-rs) — Rust, 129,192 code lines
- [storytold/cadcraft](https://octocounts.com/github/storytold/cadcraft) — Rust, 128,916 code lines
- [ELY-Open-Source/ElyOffice](https://octocounts.com/github/ELY-Open-Source/ElyOffice) — Rust, 128,531 code lines
- [leeguooooo/iphone-use](https://octocounts.com/github/leeguooooo/iphone-use) — Rust, 135,989 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)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [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)
