alexreardon/memoize-one
A memoization library which only remembers the latest invocation observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3498
- days_rel: n/a
- days_push: 1333
- n_releases_24m: 0
Adoption not part of the score
2967 stars · 80 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A tiny TypeScript memoization library that caches only the result of the most recent function invocation, avoiding memory leaks from unbounded caches. It uses fast shallow argument equality by default with support for custom equality functions.
Use cases
- memoize expensive pure functions in JavaScript
- cache only the latest function result to avoid memory leaks
- skip recomputation when arguments haven't changed
- memoize React render helpers or selectors
- avoid cache busting config like maxSize or maxAge
- memoize functions with custom equality checks
When to choose
- you only need last-call caching and want a tiny, dependency-free library
- you worry about memory leaks from unbounded memoization caches
- you want TypeScript/Flow types out of the box
When to avoid
- you need multi-entry caching with maxSize, TTL, or LRU eviction
- you need to memoize async functions returning promises (use async-memoize-one instead)
- arguments are large objects needing deep equality on every call
Facets
library · maturity stable
caching developer-tools web-development frontend performance browser memoization cache typescript flow zero-dependency memory-safe performance nodejs javascript
2 sources
- readme: https://github.com/alexreardon/memoize-one · fetched 2026-08-28 · c8c2304df4d9
- registry_npm: https://registry.npmjs.org/memoize-one · fetched 2026-08-29 · 99ecf153e2b0
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| alexreardon/memoize-one | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="alexreardon/memoize-one")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem