# lloyd/node-memwatch

A NodeJS library to keep an eye on your memory usage, and discover and isolate leaks.

Repository: https://github.com/lloyd/node-memwatch
Canonical: https://ross.abutalabs.com/products/node-memwatch
Language: C++
License Family: other
Last push: 2022-12-29T17:24:55+00:00

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

## Adoption (not part of the score)
Stars 2501, forks 292 (observed 2026-08-28T04:06:56.932013+00:00)

## What it is
A native Node.js module for detecting and isolating memory leaks. It emits leak and heap stats events and provides a HeapDiff class to compare heap snapshots over time.

## Use cases
- detect memory leaks in node.js app
- diff v8 heap snapshots
- monitor heap usage after garbage collection
- find what objects are growing in memory
- force full garbage collection for debugging

## When to choose
- you need leak detection without special instrumentation
- you want programmatic leak events and heap trend stats
- you need to isolate leaks by diffing heap allocations

## When to avoid
- you need actively maintained tooling - the project has no license and infrequent releases
- you only need basic heap profiling - built-in Node.js inspector may suffice
- you are not on the V8/Node.js runtime

## Facets
- artifact type: library
- maturity: maintenance
- function: monitoring, developer-tools, testing
- domain: developer-tools, performance, monitoring
- platform: cross-platform
- tags: memory-leaks, heap-diffing, garbage-collection, v8, native-module, nodejs

## Member repositories
- lloyd/node-memwatch (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:56.932013+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-30T02:26:55.596836+00:00, confidence not recorded.
  - readme: https://github.com/lloyd/node-memwatch (fetched 2026-08-28T04:06:56.932013+00:00, sha d06827e9191c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
