Grafana vs Kibana: source lines of code compared
As of 2026-07-27, grafana/grafana contains 4,138,441 total lines (3,579,948 code) across 19,310 files, while elastic/kibana contains 12,185,453 total lines (9,906,842 code) across 97,899 files as of 2026-07-30. elastic/kibana is about 2.8x the size of grafana/grafana by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.
| Metric | grafana/grafana | elastic/kibana |
|---|
| Files | 19,310 | 97,899 |
| Total lines | 4,138,441 | 12,185,453 |
| Code lines | 3,579,948 | 9,906,842 |
| Comment lines | 208,445 | 1,127,629 |
| Blank lines | 350,048 | 1,150,982 |
| Languages counted | 12 | 12 |
Top languages in grafana/grafana: JSON (34.4% of code), Go (30.3% of code), TypeScript (16.6% of code). Top languages in elastic/kibana: TypeScript (56.0% of code), TSX (29.1% of code), JSON (7.5% of code). JSON, TypeScript, TSX appear in both top language lists; Go, SVG appear only in grafana/grafana's top languages; YAML, JavaScript appear only in elastic/kibana's top languages.
Methodology: both counts come from cached OctoCounts reports generated with tokei. grafana/grafana was counted at ref main (commit 416583eead31) on 2026-07-27; elastic/kibana was counted at ref main (commit f3ea15a0eb46) on 2026-07-30. See the counting methodology for ignored directories and analysis options.
Evidence and next steps:
Note: code size is not code quality. OctoCounts only reports reproducible line counts and makes no claim that either project is better.