# grafana/grafana SLOC report

> As of 2026-09-21 (commit a50c386c74ad), grafana/grafana contains 4,445,964 total lines: 3,824,190 code, 240,507 comments, 381,267 blank, across 20,552 files in 33 languages (top: JSON 33.8%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

grafana/grafana has 3,824,190 source lines of code out of 4,445,964 total lines across 20,552 files, counted from the main ref at commit a50c386c74ad by the OctoCounts tokei engine on 2026-09-21. 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 grafana/grafana to commit a50c386c74ad, 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 86.0% of all lines, comments represent 5.4%, and the repository averages 186 code lines per file. JSON accounts for 33.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| JSON | 1,232 | 1,291,411 | 1,291,319 | 0 | 92 |
| Go | 5,962 | 1,461,725 | 1,188,156 | 99,823 | 173,746 |
| TypeScript | 4,667 | 780,507 | 624,655 | 64,311 | 91,541 |
| TSX | 4,571 | 725,332 | 605,732 | 27,279 | 92,321 |
| SVG | 1,729 | 32,813 | 32,669 | 57 | 87 |
| SQL | 1,211 | 47,662 | 30,121 | 10,995 | 6,546 |
| JavaScript | 106 | 15,674 | 13,521 | 1,173 | 980 |
| YAML | 217 | 14,786 | 11,624 | 2,353 | 809 |
| CUE | 213 | 18,159 | 11,176 | 4,760 | 2,223 |
| HTML | 16 | 3,127 | 2,874 | 150 | 103 |
| Shell | 68 | 3,669 | 2,749 | 391 | 529 |
| Sass | 6 | 3,190 | 2,480 | 220 | 490 |

Top language (JSON 33.8%). Generated at 2026-09-21T09:05:47.347305047+00:00. Canonical report: https://octocounts.com/github/grafana/grafana

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/grafana/grafana/commit/a50c386c74ad6c61e7a23010bf0a1cd1e5dc39be?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 grafana/grafana have?

grafana/grafana has 4,445,964 total lines, including 3,824,190 code lines, 240,507 comment lines, and 381,267 blank lines.

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

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

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

This OctoCounts report was generated from main at commit a50c386c74ad on 2026-09-21T09:05:47.347305047+00:00.

## Similar repository reports

- [bambulab/BambuStudio](https://octocounts.com/github/bambulab/BambuStudio) — JSON, 3,842,603 code lines
- [antirez/ds4](https://octocounts.com/github/antirez/ds4) — JSON, 3,574,934 code lines
- [plasmicapp/plasmic](https://octocounts.com/github/plasmicapp/plasmic) — JSON, 3,443,910 code lines
- [FULU-Foundation/OrcaSlicer-bambulab](https://octocounts.com/github/FULU-Foundation/OrcaSlicer-bambulab) — JSON, 3,358,115 code lines
- [lobehub/lobehub](https://octocounts.com/github/lobehub/lobehub) — JSON, 4,541,199 code lines
- [compiler-explorer/compiler-explorer](https://octocounts.com/github/compiler-explorer/compiler-explorer) — JSON, 2,942,969 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)
- [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)
