As of 2026-09-07 (commit 8a768495e10c), grafana/grafana contains 4,342,761 total lines: 3,743,700 code, 229,836 comments, 369,225 blank, across 20,114 files in 33 languages (top: JSON 34.4%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving grafana/grafana to commit 8a768495e10c, 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.
This is a very large codebase by counted code lines. Code represents 86.2% of all lines, comments represent 5.3%, and the repository averages 186 code lines per file. JSON accounts for 34.4% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| JSON | 1232 | 1289501 | 1289409 | 0 | 92 |
| Go | 5763 | 1402181 | 1140253 | 94325 | 167603 |
| TypeScript | 4535 | 758733 | 608496 | 61654 | 88583 |
| TSX | 4494 | 708224 | 592657 | 25819 | 89748 |
| SVG | 1728 | 32812 | 32668 | 57 | 87 |
| SQL | 1199 | 47613 | 30082 | 10986 | 6545 |
| JavaScript | 105 | 15487 | 13396 | 1125 | 966 |
| CUE | 206 | 17766 | 10949 | 4650 | 2167 |
| YAML | 216 | 13752 | 10590 | 2353 | 809 |
| HTML | 16 | 3158 | 2906 | 150 | 102 |
| Shell | 68 | 3654 | 2738 | 389 | 527 |
| Sass | 6 | 3190 | 2480 | 220 | 490 |
Top language (JSON 34.4%). Generated at 2026-09-07T08:26:14.966867023+00:00.
grafana/grafana has 4,342,761 total lines, including 3,743,700 code lines, 229,836 comment lines, and 369,225 blank lines.
OctoCounts resolved the public GitHub repository to commit 8a768495e10c, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit 8a768495e10c on 2026-09-07T08:26:14.966867023+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: