mastra-ai/mastra has 3,320,912 source lines of code out of 4,432,037 total lines across 17,071 files, counted with tokei from the main ref at commit f21e0742ce3e on November 7, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
mastra-ai/mastra: 3,320,912 code lines at commit f21e0742ce3e, counted with tokei-15.0.0 on 2026-11-07. Saved result ad88e50a808ddb6c71b271717dbffc49995d5deba2e68c8df5ed47bfc4ef7baa.
OctoCounts produced this report by resolving mastra-ai/mastra to commit f21e0742ce3e, 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 very large codebase by counted code lines. Code represents 74.9% of all lines, comments represent 13.7%, and the repository averages 195 code lines per file. TypeScript accounts for 70.6% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| TypeScript | 12180 | 2903542 | 2345716 | 272608 | 285218 |
| JSON | 1291 | 613523 | 613507 | 0 | 16 |
| TSX | 2473 | 272085 | 238978 | 9184 | 23923 |
| YAML | 110 | 121538 | 101851 | 480 | 19207 |
| JavaScript | 306 | 14748 | 12755 | 780 | 1213 |
| CSS | 66 | 8038 | 6666 | 594 | 778 |
| SQL | 14 | 563 | 487 | 13 | 63 |
| SVG | 15 | 273 | 256 | 17 | 0 |
| Shell | 6 | 255 | 185 | 47 | 23 |
| Svelte | 3 | 187 | 184 | 0 | 3 |
| Swift | 1 | 231 | 165 | 38 | 28 |
| HTML | 8 | 113 | 112 | 0 | 1 |
| XML | 2 | 45 | 32 | 13 | 0 |
| Dockerfile | 1 | 31 | 18 | 6 | 7 |
| MDX | 1 | 496 | 0 | 375 | 121 |
| Markdown | 589 | 495963 | 0 | 324281 | 171682 |
| Plain Text | 5 | 406 | 0 | 315 | 91 |
Top language: TypeScript 70.6%. Generated on .
mastra-ai/mastra: tokei-15.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.
mastra-ai/mastra has 3,320,912 lines of code, plus 608,751 comment lines and 502,374 blank lines, for 4,432,037 total lines at commit f21e0742ce3e on November 7, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit f21e0742ce3e, 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 main at commit f21e0742ce3e on November 7, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for mastra-ai/mastra on this page — 3,320,912 code lines across 17 languages, counted by tokei.