# discourse/discourse SLOC report

> As of 2026-10-07 (commit 1cb76a9fd1d6), discourse/discourse contains 2,101,837 total lines: 1,672,407 code, 99,451 comments, 329,979 blank, across 19,324 files in 20 languages (top: Ruby 67.9%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

discourse/discourse has 1,672,407 source lines of code out of 2,101,837 total lines across 19,324 files, counted from the main ref at commit 1cb76a9fd1d6 by the OctoCounts tokei engine on 2026-10-07. 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 discourse/discourse to commit 1cb76a9fd1d6, 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 very large codebase by counted code lines. Code represents 79.6% of all lines, comments represent 4.7%, and the repository averages 87 code lines per file. Ruby accounts for 67.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Ruby | 12,215 | 1,424,688 | 1,135,360 | 50,310 | 239,018 |
| JavaScript | 2,495 | 222,121 | 180,920 | 12,745 | 28,456 |
| Glimmer JS | 2,664 | 180,098 | 147,957 | 7,334 | 24,807 |
| Sass | 705 | 103,067 | 84,520 | 1,924 | 16,623 |
| YAML | 266 | 60,623 | 54,460 | 1,047 | 5,116 |
| TypeScript | 155 | 32,074 | 19,539 | 9,457 | 3,078 |
| JSON | 208 | 14,272 | 14,218 | 0 | 54 |
| SQL | 6 | 28,869 | 12,286 | 8,244 | 8,339 |
| Rakefile | 79 | 11,440 | 9,134 | 523 | 1,783 |
| Glimmer TS | 66 | 8,469 | 4,865 | 2,639 | 965 |
| Ruby HTML | 122 | 4,128 | 3,807 | 11 | 310 |
| HTML | 197 | 3,035 | 2,820 | 64 | 151 |

Top language (Ruby 67.9%). Generated at 2026-10-07T21:18:54.877938553+00:00. Canonical report: https://octocounts.com/github/discourse/discourse

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/discourse/discourse/commit/1cb76a9fd1d64e5e07fde8d39b33c97ec7ca3d26?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).

## Report FAQ

### How many lines of code does discourse/discourse have?

discourse/discourse has 2,101,837 total lines, including 1,672,407 code lines, 99,451 comment lines, and 329,979 blank lines.

### How was the discourse/discourse line count measured?

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

### What commit was counted for discourse/discourse?

This OctoCounts report was generated from main at commit 1cb76a9fd1d6 on 2026-10-07T21:18:54.877938553+00:00.

## Similar repository reports

- [Homebrew/homebrew-core](https://octocounts.com/github/Homebrew/homebrew-core) — Ruby, 465,748 code lines
- [OpenC3/cosmos](https://octocounts.com/github/OpenC3/cosmos) — Ruby, 235,290 code lines
- [openc3/cosmos](https://octocounts.com/github/openc3/cosmos) — Ruby, 235,260 code lines
- [rails/rails](https://octocounts.com/github/rails/rails) — Ruby, 140,386 code lines
- [jekyll/jekyll](https://octocounts.com/github/jekyll/jekyll) — Ruby, 14,638 code lines
- [sidekiq/sidekiq](https://octocounts.com/github/sidekiq/sidekiq) — Ruby, 13,638 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)
- [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)
- [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)
