# gatsbyjs/gatsby SLOC report

> As of 2026-11-23 (commit 0ac6c88a72c4), gatsbyjs/gatsby contains 743,760 total lines: 564,797 code, 91,383 comments, 87,580 blank, across 4,600 files in 23 languages (top programming language: JavaScript 22.0%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

Source: [gatsbyjs/gatsby on GitHub](https://github.com/gatsbyjs/gatsby) · counted commit [0ac6c88a72c4](https://github.com/gatsbyjs/gatsby/tree/0ac6c88a72c4dfd4d541e3ac43c664343e8e15b6)

gatsbyjs/gatsby has 564,797 source lines of code out of 743,760 total lines across 4,600 files, counted with tokei from the master ref at commit 0ac6c88a72c4 on November 23, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving gatsbyjs/gatsby to commit 0ac6c88a72c4, 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

gatsbyjs/gatsby: 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 75.9% of all lines, comments represent 12.3%, and the repository averages 123 code lines per file. JavaScript is the largest programming language at 22.0% of counted code; data and prose formats such as JSON or YAML hold a larger share.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| JSON | 450 | 339,505 | 339,489 | 0 | 16 |
| JavaScript | 2,565 | 148,696 | 124,459 | 8,838 | 15,399 |
| TypeScript | 759 | 87,876 | 68,774 | 9,609 | 9,493 |
| CSS | 103 | 20,188 | 18,767 | 315 | 1,106 |
| SQL | 1 | 5,141 | 4,922 | 132 | 87 |
| TSX | 79 | 5,448 | 4,848 | 140 | 460 |
| JSX | 46 | 1,487 | 1,311 | 6 | 170 |
| GraphQL | 3 | 623 | 535 | 1 | 87 |
| SVG | 15 | 361 | 361 | 0 | 0 |
| YAML | 9 | 300 | 294 | 1 | 5 |
| Sass | 13 | 315 | 283 | 4 | 28 |
| Shell | 14 | 405 | 235 | 80 | 90 |

Top programming language: JavaScript 22.0%. Generated on November 23, 2026. Canonical report: https://octocounts.com/github/gatsbyjs/gatsby

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/gatsbyjs/gatsby/commit/0ac6c88a72c4dfd4d541e3ac43c664343e8e15b6?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=cb02a3b93a9e12450865fb6a1c71e24ba4f9df42bafb535cfa14333608241d6d).

## Report FAQ

### How many lines of code does gatsbyjs/gatsby have?

gatsbyjs/gatsby has 564,797 lines of code, plus 91,383 comment lines and 87,580 blank lines, for 743,760 total lines at commit 0ac6c88a72c4 on November 23, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the gatsbyjs/gatsby line count measured?

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

### What commit was counted for gatsbyjs/gatsby?

This OctoCounts report was generated from master at commit 0ac6c88a72c4 on November 23, 2026.

## Similar repository reports

- [ArtlexYoung/dsh-super-code](https://octocounts.com/github/ArtlexYoung/dsh-super-code) — JSON, 556,930 code lines
- [cloudflare/cloudflare-docs](https://octocounts.com/github/cloudflare/cloudflare-docs) — JSON, 572,932 code lines
- [espocrm/espocrm](https://octocounts.com/github/espocrm/espocrm) — JSON, 556,477 code lines
- [deepseek-ai/deepseek-recipe](https://octocounts.com/github/deepseek-ai/deepseek-recipe) — JSON, 554,501 code lines
- [FEX-Emu/FEX](https://octocounts.com/github/FEX-Emu/FEX) — JSON, 551,130 code lines
- [drscrewdriver/dsh-context-compression-improved](https://octocounts.com/github/drscrewdriver/dsh-context-compression-improved) — JSON, 580,217 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [React vs Vue](https://octocounts.com/compare/react-vs-vue)
- [Next.js vs Vite](https://octocounts.com/compare/nextjs-vs-vite)
- [Vite vs webpack](https://octocounts.com/compare/vite-vs-webpack)
- [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)
