# mermaid-js/mermaid-cli SLOC report

> As of 2026-10-20 (commit f416ac5c6e42), mermaid-js/mermaid-cli contains 13,851 total lines: 12,579 code, 908 comments, 364 blank, across 39 files in 9 languages (top: JSON 80.0%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

mermaid-js/mermaid-cli has 12,579 source lines of code out of 13,851 total lines across 39 files, counted from the master ref at commit f416ac5c6e42 by the OctoCounts tokei engine on 2026-10-20. 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 mermaid-js/mermaid-cli to commit f416ac5c6e42, 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 medium-sized codebase by counted code lines. Code represents 90.8% of all lines, comments represent 6.6%, and the repository averages 323 code lines per file. JSON accounts for 80.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| JSON | 9 | 10,067 | 10,066 | 0 | 1 |
| JavaScript | 11 | 2,912 | 2,357 | 380 | 175 |
| Shell | 2 | 136 | 90 | 24 | 22 |
| CSS | 2 | 47 | 34 | 10 | 3 |
| Dockerfile | 1 | 22 | 15 | 0 | 7 |
| TypeScript | 2 | 9 | 7 | 1 | 1 |
| HTML | 1 | 6 | 6 | 0 | 0 |
| YAML | 1 | 4 | 4 | 0 | 0 |
| Markdown | 10 | 648 | 0 | 493 | 155 |

Top language (JSON 80.0%). Generated at 2026-10-20T08:16:54.414867964+00:00. Canonical report: https://octocounts.com/github/mermaid-js/mermaid-cli

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/mermaid-js/mermaid-cli/commit/f416ac5c6e42edd3a8be6d512c1008520d0c2f97?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&reportId=688e2855455890b65aceec84942a0bf6cbc8d2c7c1365cc04e673e569a7f856e).

## Report FAQ

### How many lines of code does mermaid-js/mermaid-cli have?

mermaid-js/mermaid-cli has 13,851 total lines, including 12,579 code lines, 908 comment lines, and 364 blank lines.

### How was the mermaid-js/mermaid-cli line count measured?

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

### What commit was counted for mermaid-js/mermaid-cli?

This OctoCounts report was generated from master at commit f416ac5c6e42 on 2026-10-20T08:16:54.414867964+00:00.

## Similar repository reports

- [blinker-iot/blinker-customizer](https://octocounts.com/github/blinker-iot/blinker-customizer) — JSON, 12,580 code lines
- [harshsingh2275/eco-roots-jharkhand](https://octocounts.com/github/harshsingh2275/eco-roots-jharkhand) — JSON, 12,600 code lines
- [EnderWolf006/XBT](https://octocounts.com/github/EnderWolf006/XBT) — JSON, 12,611 code lines
- [adonisjs/otel](https://octocounts.com/github/adonisjs/otel) — JSON, 12,538 code lines
- [jin-zi-xuan/kaobuddy-pwa](https://octocounts.com/github/jin-zi-xuan/kaobuddy-pwa) — JSON, 12,479 code lines
- [nmkverma0488/backend-FSD-3](https://octocounts.com/github/nmkverma0488/backend-FSD-3) — JSON, 12,696 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)
