#2929th of 43 in Code review and testing
memlab
JavaScript memory leak finder using Puppeteer scenarios and heap snapshot analysis
Documentation ↗
(opens in a new tab)Website ↗
(opens in a new tab)Repository on GitHub ↗
(opens in a new tab)
- Stars
- 5.1k
- License
- MIT
- Last commit
- Nov 2026
- Language
- TypeScript
4,922 on 22 Apr 20265,091 on 11 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
memlab runs a Puppeteer scenario against a web page, compares V8 heap snapshots before and after an action, and prints retainer traces for leaked objects. It also offers a heap traversal API, a CLI for analyzing .heapsnapshot files from Chromium, Node.js, Electron and Hermes, and Node.js memory assertions for unit tests. An MCP server and four agent skills let coding assistants investigate snapshots.
Who it is for: Web and Node.js engineers debugging memory leaks and heap growth
Strengths
- Retainer traces show the reference chain from GC root to each leaked object
- Reads heap snapshots from Chromium, Node.js, Electron and Hermes
- Memory assertions run inside Jest-style unit tests and CI
- Custom leak detectors via a leakFilter callback in the scenario file
Weaknesses
- Readable traces require non-minified code or readable names on the site under test
- Scenarios must be hand-written with the Puppeteer API
- MCP server suggests an 8 GB Node heap setting for large snapshots
- No tagged release is listed on the repository
What it needs
- no GPU
- Needs Node.js 16+, Puppeteer
Also in Code review and testing
See all 43| Rank | Project | Score |
|---|---|---|
| 1 | playwrightCross-browser automation and end-to-end test framework for Chromium, Firefox and WebKit | 94 out of 100 |
| 2 | nxMonorepo build system with task caching, affected-only runs and CI integration | 93 out of 100 |
| 3 | open-code-reviewGo CLI that reviews Git diffs with an LLM agent and line-level comments | 92 out of 100 |
| #4 | bendDependent-typed language where AI-written code must prove rules in LAWS.bend | 88 out of 100 |
| #5 | maestroYAML-based UI and end-to-end test framework for Android, iOS and web | 88 out of 100 |