# paulirish/memory-stats.js

minimal monitor for JS Heap Size via performance.memory

Repository: https://github.com/paulirish/memory-stats.js
Canonical: https://ross.abutalabs.com/products/memory-statsjs
Language: JavaScript
License Family: other
Last push: 2015-07-03T19:31:33+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4242, "days_push": 4079, "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 2091, forks 106 (observed 2026-08-28T04:06:12.487694+00:00)

## What it is
A minimal JavaScript library that displays a live JS heap size monitor overlay in the browser, similar to stats.js but for memory. It reads Chrome's non-standard performance.memory API and renders usage in a small DOM widget.

## Use cases
- monitor JS heap size while debugging a web app
- detect memory leaks in a browser page
- overlay a memory usage graph like stats.js FPS meter
- watch heap usage during Three.js or game development
- inject a memory monitor into any page via bookmarklet

## When to choose
- you need a lightweight in-page heap size indicator during development
- you're profiling memory in Chrome and want a quick visual
- you want a stats.js-style meter for memory instead of FPS

## When to avoid
- you need memory metrics in Firefox or Safari (performance.memory is Chrome-only)
- you need production-grade memory profiling or heap snapshots (use Chrome DevTools)
- you need precise readings without launching Chrome with --enable-precise-memory-info

## Facets
- artifact type: library
- maturity: maintenance
- function: monitoring, developer-tools
- domain: developer-tools, web-development, performance
- platform: browser
- tags: memory-monitoring, heap-size, performance-memory, debugging, stats-overlay, chrome-only, javascript

## Member repositories
- paulirish/memory-stats.js (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:12.487694+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:55:33.916075+00:00, confidence not recorded.
  - readme: https://github.com/paulirish/memory-stats.js (fetched 2026-08-28T04:06:12.487694+00:00, sha b9eb2822b97c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
