# discordjs/discord.js SLOC report

> discordjs/discord.js: 113,180 code lines at commit ddbba3adbc83, counted with tokei-15.0.0 on 2026-11-04. Saved result f49b311237d8919183c8cbd0d2ae543b3d065df8991c1659b66e546be47274fa.

discordjs/discord.js has 113,180 source lines of code out of 179,620 total lines across 1,320 files, counted with tokei from the main ref at commit ddbba3adbc83 on November 4, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving discordjs/discord.js to commit ddbba3adbc83, 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 25.9%, and the repository averages 86 code lines per file. TypeScript accounts for 43.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| TypeScript | 642 | 78,841 | 49,630 | 20,196 | 9,015 |
| YAML | 13 | 26,981 | 24,927 | 1 | 2,053 |
| JavaScript | 363 | 42,236 | 17,307 | 19,936 | 4,993 |
| JSON | 148 | 14,840 | 14,701 | 0 | 139 |
| TSX | 84 | 5,370 | 4,885 | 35 | 450 |
| TOML | 17 | 1,337 | 1,303 | 0 | 34 |
| CSS | 2 | 272 | 230 | 8 | 34 |
| Handlebars | 2 | 86 | 86 | 0 | 0 |
| SVG | 6 | 78 | 78 | 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 43.9%. Generated on November 4, 2026. Canonical report: https://octocounts.com/github/discordjs/discord.js/commit/ddbba3adbc831e4443251c2cc9b167369253480d?reportId=f49b311237d8919183c8cbd0d2ae543b3d065df8991c1659b66e546be47274fa&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/ddbba3adbc831e4443251c2cc9b167369253480d?reportId=f49b311237d8919183c8cbd0d2ae543b3d065df8991c1659b66e546be47274fa&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 113,180 lines of code, plus 46,537 comment lines and 19,903 blank lines, for 179,620 total lines at commit ddbba3adbc83 on November 4, 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 ddbba3adbc83, 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 ddbba3adbc83 on November 4, 2026.

## Similar repository reports

- [NapNeko/NapCatQQ](https://octocounts.com/github/NapNeko/NapCatQQ) — TypeScript, 112,683 code lines
- [babel/babel](https://octocounts.com/github/babel/babel) — TypeScript, 113,772 code lines
- [angular/angular-cli](https://octocounts.com/github/angular/angular-cli) — TypeScript, 113,834 code lines
- [rohitg00/agentmemory](https://octocounts.com/github/rohitg00/agentmemory) — TypeScript, 114,095 code lines
- [alexshpunt/pi-agent-ide](https://octocounts.com/github/alexshpunt/pi-agent-ide) — TypeScript, 114,531 code lines
- [remix-run/react-router](https://octocounts.com/github/remix-run/react-router) — TypeScript, 111,614 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)
