# mem0ai/mem0 SLOC report

> mem0ai/mem0: 169,957 code lines at commit f1791daa86d4, counted with tokei-15.0.0 on 2026-11-06. Saved result 9039c4a51766e5521a9b98358f5a24378a22f25a5aa15254257e9ec8de692718.

mem0ai/mem0 has 169,957 source lines of code out of 212,237 total lines across 1,010 files, counted with tokei from the main ref at commit f1791daa86d4 on November 6, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving mem0ai/mem0 to commit f1791daa86d4, 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.

## Counting rules and retention

mem0ai/mem0: 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.

## Repository size insights

This is a large codebase by counted code lines. Code represents 80.1% of all lines, comments represent 7.6%, and the repository averages 168 code lines per file. Python accounts for 39.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 277 | 77,901 | 66,565 | 2,503 | 8,833 |
| TypeScript | 294 | 53,524 | 45,204 | 3,271 | 5,049 |
| YAML | 20 | 42,022 | 36,019 | 12 | 5,991 |
| TSX | 136 | 11,962 | 10,903 | 40 | 1,019 |
| JSON | 66 | 3,377 | 3,369 | 0 | 8 |
| Shell | 6 | 2,590 | 2,050 | 145 | 395 |
| CSS | 9 | 2,363 | 2,027 | 36 | 300 |
| JavaScript | 24 | 2,222 | 1,768 | 218 | 236 |
| Jupyter Notebooks | 8 | 1,027 | 538 | 301 | 188 |
| SVG | 23 | 401 | 401 | 0 | 0 |
| HTML | 4 | 387 | 373 | 5 | 9 |
| TOML | 4 | 356 | 312 | 9 | 35 |
| Makefile | 4 | 332 | 227 | 44 | 61 |
| Templ | 6 | 135 | 113 | 0 | 22 |
| Dockerfile | 3 | 91 | 59 | 8 | 24 |
| INI | 1 | 37 | 29 | 0 | 8 |
| Markdown | 122 | 13,470 | 0 | 9,531 | 3,939 |
| Plain Text | 3 | 40 | 0 | 36 | 4 |

Top language: Python 39.2%. Generated on November 6, 2026. Canonical report: https://octocounts.com/github/mem0ai/mem0/commit/f1791daa86d469249c9b002f62644d58a1eb96a0?reportId=9039c4a51766e5521a9b98358f5a24378a22f25a5aa15254257e9ec8de692718&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/mem0ai/mem0/commit/f1791daa86d469249c9b002f62644d58a1eb96a0?reportId=9039c4a51766e5521a9b98358f5a24378a22f25a5aa15254257e9ec8de692718&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 mem0ai/mem0 have?

mem0ai/mem0 has 169,957 lines of code, plus 16,159 comment lines and 26,121 blank lines, for 212,237 total lines at commit f1791daa86d4 on November 6, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the mem0ai/mem0 line count measured?

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

### What commit was counted for mem0ai/mem0?

This OctoCounts report was generated from main at commit f1791daa86d4 on November 6, 2026.

## Similar repository reports

- [radixark/miles](https://octocounts.com/github/radixark/miles) — Python, 169,474 code lines
- [agent0ai/agent-zero](https://octocounts.com/github/agent0ai/agent-zero) — Python, 173,802 code lines
- [Neywa-Labs/mlx-audio](https://octocounts.com/github/Neywa-Labs/mlx-audio) — Python, 173,894 code lines
- [reddit-archive/reddit](https://octocounts.com/github/reddit-archive/reddit) — Python, 164,315 code lines
- [agentscope-ai/agentscope](https://octocounts.com/github/agentscope-ai/agentscope) — Python, 163,868 code lines
- [confident-ai/deepeval](https://octocounts.com/github/confident-ai/deepeval) — Python, 176,410 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)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
