# discordjs/discord.js SLOC report

> discordjs/discord.js: 111,705 code lines at commit 2b3dbd4329b7, counted with tokei-15.0.0 on 2026-11-16. Saved result 0a4d805bb0062a5651cb4193ac006fd74f75d066421c6458e3f7850b783efb03.

discordjs/discord.js has 111,705 source lines of code out of 177,326 total lines across 1,298 files, counted with tokei from the main ref at commit 2b3dbd4329b7 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving discordjs/discord.js to commit 2b3dbd4329b7, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

discordjs/discord.js: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a large codebase by counted code lines. Code represents 63.0% of all lines, comments represent 26.2%, and the repository averages 86 code lines per file. TypeScript accounts for 44.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| TypeScript | 619 | 79,238 | 50,120 | 20,112 | 9,006 |
| YAML | 13 | 25,678 | 23,755 | 1 | 1,922 |
| JavaScript | 363 | 41,021 | 16,684 | 19,941 | 4,396 |
| JSON | 149 | 14,676 | 14,540 | 0 | 136 |
| TSX | 84 | 5,370 | 4,885 | 35 | 450 |
| TOML | 17 | 1,337 | 1,303 | 0 | 34 |
| CSS | 2 | 272 | 230 | 8 | 34 |
| SVG | 6 | 78 | 78 | 0 | 0 |
| Handlebars | 2 | 77 | 77 | 0 | 0 |
| Dockerfile | 1 | 32 | 20 | 0 | 12 |
| Lua | 1 | 16 | 13 | 0 | 3 |
| Markdown | 41 | 9,531 | 0 | 6,361 | 3,170 |

Top language: TypeScript 44.9%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/discordjs/discord.js/commit/2b3dbd4329b78ce8f28041c8b7915bbb9797b3ca?reportId=0a4d805bb0062a5651cb4193ac006fd74f75d066421c6458e3f7850b783efb03&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/discordjs/discord.js/commit/2b3dbd4329b78ce8f28041c8b7915bbb9797b3ca?reportId=0a4d805bb0062a5651cb4193ac006fd74f75d066421c6458e3f7850b783efb03&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 discordjs/discord.js have?

discordjs/discord.js has 111,705 lines of code, plus 46,458 comment lines and 19,163 blank lines, for 177,326 total lines at commit 2b3dbd4329b7 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the discordjs/discord.js line count measured?

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

### What commit was counted for discordjs/discord.js?

This OctoCounts report was generated from main at commit 2b3dbd4329b7 on November 16, 2026.

## Similar repository reports

- [tryliner/desktop](https://octocounts.com/github/tryliner/desktop) — TypeScript, 111,737 code lines
- [remix-run/react-router](https://octocounts.com/github/remix-run/react-router) — TypeScript, 112,010 code lines
- [e2e-inc/e2e](https://octocounts.com/github/e2e-inc/e2e) — TypeScript, 112,137 code lines
- [luiscamaral/pi.dev](https://octocounts.com/github/luiscamaral/pi.dev) — TypeScript, 111,147 code lines
- [Achuan-2/TronCut](https://octocounts.com/github/Achuan-2/TronCut) — TypeScript, 112,355 code lines
- [anywhere-labs/dsh-desktop](https://octocounts.com/github/anywhere-labs/dsh-desktop) — TypeScript, 110,635 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)
- [Next.js vs Vite](https://octocounts.com/compare/nextjs-vs-vite)
- [Angular vs Vue](https://octocounts.com/compare/angular-vs-vue)
- [Svelte vs Vue](https://octocounts.com/compare/svelte-vs-vue)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
