# mermaid-js/mermaid SLOC report

> mermaid-js/mermaid: 187,061 code lines at commit e28fbd9ded0a, counted with tokei-14.0.0 on 2026-10-14. Saved result f62a97c74830661a9c0ddfdab9cbfca4015eafb76d238a369f34ce21d5046b16.

mermaid-js/mermaid has 187,061 source lines of code out of 235,500 total lines across 1,214 files, counted from the develop ref at commit e28fbd9ded0a by the OctoCounts tokei engine on 2026-10-14. 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 e28fbd9ded0a, 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,829 | 31,654 | 2,883 | 4,292 |
| 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-14T12:53:46.616711469Z. Canonical report: https://octocounts.com/github/mermaid-js/mermaid/commit/e28fbd9ded0a07ba9569e51be4764c1ad4daa8f6?reportId=f62a97c74830661a9c0ddfdab9cbfca4015eafb76d238a369f34ce21d5046b16&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/mermaid-js/mermaid/commit/e28fbd9ded0a07ba9569e51be4764c1ad4daa8f6?reportId=f62a97c74830661a9c0ddfdab9cbfca4015eafb76d238a369f34ce21d5046b16&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

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

mermaid-js/mermaid has 235,500 total lines, including 187,061 code lines, 22,672 comment lines, and 25,767 blank lines.

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

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.

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

This OctoCounts report was generated from develop at commit e28fbd9ded0a on 2026-10-14T12:53:46.616711469Z.

## Similar repository reports

- [excalidraw/excalidraw](https://octocounts.com/github/excalidraw/excalidraw) — TypeScript, 187,277 code lines
- [vinayakkulkarni/nxui](https://octocounts.com/github/vinayakkulkarni/nxui) — TypeScript, 188,033 code lines
- [garrytan/gstack](https://octocounts.com/github/garrytan/gstack) — TypeScript, 185,989 code lines
- [open-gsd/gsd-core](https://octocounts.com/github/open-gsd/gsd-core) — TypeScript, 188,372 code lines
- [cactus-compute/cactus](https://octocounts.com/github/cactus-compute/cactus) — TypeScript, 188,984 code lines
- [zhu1090093659/dsh-web](https://octocounts.com/github/zhu1090093659/dsh-web) — TypeScript, 184,667 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)
