Ross ROSS = Recommend OSS · open-source software intelligence for agents

sindresorhus/memoize

Some data may be outdated — see provenance labels.

Memoize functions - an optimization technique used to speed up consecutive function calls by caching the result of calls with identical input observed · 2026-09-28

github.com/sindresorhus/memoize · TypeScript · MIT (permissive) observed · 2026-09-28

Health v2 · maintenance only

75/100

  • Activity 95
  • Release rhythm 36
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.

  • gap_med: 196.0
  • age_days: 3956
  • days_rel: 215
  • days_push: 32
  • n_releases_24m: 3

Full methodology

Adoption not part of the score

1165 stars · 55 forks observed · 2026-09-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A TypeScript library for memoizing functions, caching results of calls with identical input to speed up consecutive invocations. It supports TTL-based expiration, custom caching strategies, and automatic memory release.

Use cases

  • memoize expensive function calls in javascript
  • cache function results by input arguments
  • add ttl expiration to memoized functions
  • speed up repeated function calls with same arguments
  • memoize functions with custom cache keys
  • avoid recomputing pure function results

When to choose

  • you need lightweight function-level caching in Node.js or the browser
  • you want TTL-based cache expiration with automatic memory cleanup
  • you need customizable caching strategies like multi-argument keys or WeakMap caching
  • you prefer a small, well-maintained ESM package

When to avoid

  • you need to memoize promise-returning functions with promise-specific behaviors - use p-memoize instead
  • you need a distributed or persistent cache rather than in-memory function memoization
  • your functions have side effects and caching results would be incorrect

Facets

library · maturity active

caching concurrency developer-tools performance browser bun memoization typescript ttl-cache function-optimization npm javascript nodejs deno

2 sources

Member repositories

RepositoryRoleHealth v2
sindresorhus/memoizemain75

For agents

markdown · JSON · MCP: product_card(name="sindresorhus/memoize")

Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem