# mermaid-js/mermaid SLOC report

> As of 2026-10-20 (commit 6d8921f94f9a), mermaid-js/mermaid contains 235,610 total lines: 187,148 code, 22,677 comments, 25,785 blank, across 1,214 files in 11 languages (top: TypeScript 60.5%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

mermaid-js/mermaid has 187,148 source lines of code out of 235,610 total lines across 1,214 files, counted from the develop ref at commit 6d8921f94f9a 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 to commit 6d8921f94f9a, 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 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 | 141,119 | 113,150 | 14,757 | 13,212 |
| JavaScript | 141 | 38,939 | 31,741 | 2,888 | 4,310 |
| YAML | 5 | 26,038 | 21,038 | 70 | 4,930 |
| HTML | 120 | 15,875 | 14,742 | 80 | 1,053 |
| JSON | 75 | 6,277 | 6,254 | 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 | 7,061 | 0 | 4,856 | 2,205 |

Top language (TypeScript 60.5%). Generated at 2026-10-20T01:18:29.154739286+00:00. Canonical report: https://octocounts.com/github/mermaid-js/mermaid

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/mermaid-js/mermaid/commit/6d8921f94f9a12b76586eddcf45a566080d4767e?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=89ae4b1ac49c9a569914cbe60107a3cc99ac5bc80e1d49659fccd07291174cc7).

## Report FAQ

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

mermaid-js/mermaid has 235,610 total lines, including 187,148 code lines, 22,677 comment lines, and 25,785 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 6d8921f94f9a, 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?

This OctoCounts report was generated from develop at commit 6d8921f94f9a on 2026-10-20T01:18:29.154739286+00:00.

## Similar repository reports

- [excalidraw/excalidraw](https://octocounts.com/github/excalidraw/excalidraw) — TypeScript, 187,052 code lines
- [vinayakkulkarni/nxui](https://octocounts.com/github/vinayakkulkarni/nxui) — TypeScript, 187,701 code lines
- [RocketChat/Rocket.Chat.ReactNative](https://octocounts.com/github/RocketChat/Rocket.Chat.ReactNative) — TypeScript, 186,340 code lines
- [open-gsd/gsd-core](https://octocounts.com/github/open-gsd/gsd-core) — TypeScript, 188,259 code lines
- [garrytan/gstack](https://octocounts.com/github/garrytan/gstack) — TypeScript, 185,657 code lines
- [cactus-compute/cactus](https://octocounts.com/github/cactus-compute/cactus) — TypeScript, 188,984 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)
- [Next.js vs Vite](https://octocounts.com/compare/nextjs-vs-vite)
- [Angular vs Vue](https://octocounts.com/compare/angular-vs-vue)
- [Svelte vs Vue](https://octocounts.com/compare/svelte-vs-vue)
- [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)
