mermaid-js/mermaid has 187,061 source lines of code out of 235,500 total lines across 1,214 files, counted with tokei from the develop ref at commit e28fbd9ded0a on October 14, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
mermaid-js/mermaid: 187,061 code lines at commit e28fbd9ded0a, counted with tokei-14.0.0 on 2026-10-14. Saved result f62a97c74830661a9c0ddfdab9cbfca4015eafb76d238a369f34ce21d5046b16.
OctoCounts produced this report by resolving mermaid-js/mermaid to commit e28fbd9ded0a, 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.
This is a large codebase by counted code lines. Code represents 79.4% of all lines, comments represent 9.6%, and the repository averages 154 code lines per file. TypeScript accounts for 60.5% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| TypeScript | 845 | 141119 | 113150 | 14757 | 13212 |
| JavaScript | 141 | 38829 | 31654 | 2883 | 4292 |
| YAML | 5 | 26038 | 21038 | 70 | 4930 |
| HTML | 120 | 15875 | 14742 | 80 | 1053 |
| JSON | 75 | 6277 | 6254 | 0 | 23 |
| CSS | 1 | 111 | 103 | 2 | 6 |
| BASH | 2 | 146 | 95 | 13 | 38 |
| SVG | 2 | 13 | 13 | 0 | 0 |
| Dockerfile | 1 | 13 | 8 | 0 | 5 |
| TOML | 1 | 18 | 4 | 11 | 3 |
| Markdown | 21 | 7061 | 0 | 4856 | 2205 |
Top language: TypeScript 60.5%. Generated on .
mermaid-js/mermaid: tokei-14.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.
mermaid-js/mermaid has 187,061 lines of code, plus 22,672 comment lines and 25,767 blank lines, for 235,500 total lines at commit e28fbd9ded0a on October 14, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit e28fbd9ded0a, 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 develop at commit e28fbd9ded0a on October 14, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for mermaid-js/mermaid on this page — 187,061 code lines across 11 languages, counted by tokei.