# andywer/leakage

🐛 Memory leak testing for node.

Repository: https://github.com/andywer/leakage
Canonical: https://ross.abutalabs.com/products/leakage
Language: JavaScript
License Family: other
Topics: memory-leak, nodejs, testing, javascript
Last push: 2023-01-27T16:56:20+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3536, "days_push": 1314, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1591, forks 36 (observed 2026-08-28T04:05:08.683411+00:00)

## What it is
Leakage is a Node.js library for detecting memory leaks by running a function repeatedly and analyzing V8 heap snapshot diffs. It integrates with test runners like Mocha or Tape so leak checks become regular regression tests.

## Use cases
- detect memory leaks in a node library
- write regression tests that fail if code leaks memory
- measure memory footprint of repeated operations
- test async code for leaks with iterate.async()
- run leak checks in CI with mocha or tape

## When to choose
- you maintain a Node.js library or service and want automated leak detection
- you already use Mocha or Tape and want leak tests in your suite
- you need heap-diff-based evidence that a fix stopped a leak

## When to avoid
- you need browser or Deno memory profiling (Node.js only)
- you need continuous production memory monitoring rather than test-time detection
- you need a maintained tool - releases are infrequent and the repo has no license file

## Facets
- artifact type: library
- maturity: maintenance
- function: testing, benchmarking, developer-tools
- domain: testing, developer-tools, performance
- platform: cli
- tags: memory-leak, heap-snapshot, mocha, tape, v8, memory-footprinting, nodejs

## Member repositories
- andywer/leakage (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:08.683411+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:54:43.658201+00:00, confidence not recorded.
  - readme: https://github.com/andywer/leakage (fetched 2026-08-28T04:05:08.683411+00:00, sha 433bd2002098)
  - registry_npm: https://registry.npmjs.org/leakage (fetched 2026-08-29T11:25:29.000392+00:00, sha 2e8cff225cbc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
