# Keyv: 6.3 out of 10

Reasonable, with limits. 8th of 10 in [Caching and Redis clients](https://elestia.ai/opensource/caching/index.md).

Keyv gives you one simple get/set/TTL API over memory, Redis, Valkey, Postgres, SQLite and other backends, through adapter packages. It is a reasonable pick when you want the backend to be swappable. But v6 only became stable in October 2026 and breaks a lot of v5 code, cache-manager and cacheable still need v5, and a hijacked maintainer account shipped malware as keyv 6.0.0 in August 2026.

**Best for:** Node.js services that want a small key-value cache API and may switch between memory, Redis or SQL storage later.

## Scores

- **Overall: 6.3** (likely 5.0 to 7.6)
  - Claude Opus 5.5 (5.5): Keyv is a capable, actively maintained key-value layer, but now is a hard time to adopt it. v6 just landed with many silent breaks, the author's own caching libraries still need v5, and the August 2026 compromise is recent. For plain Redis, ioredis or node-redis is more direct. For memory, lru-cache. For multi-runtime storage, unstorage is growing faster. The range is wide because the security hardening may hold up well and the ecosystem may move to v6 soon.
  - GPT-6.2 Sol (7.1): Keyv 6.1.0 is a strong pick when keeping one cache API across memory and Redis matters. For a bounded in-process cache, lru-cache is the better fit, and node-redis is the better fit when the application needs Redis transactions or Pub/Sub. Active maintenance and improved publishing controls help, while compatibility with v5 integrations and the short track record after the compromise keep the recommendation conditional.
- **Needed by many: 6.2** (likely 5.1 to 7.3)
  - Claude Opus 5.5 (6.0): Many backend developers need a cache or key-value store. Keyv's take is a storage-agnostic layer for Node, which is narrower than caching in general. Many teams go straight to a Redis client or lru-cache instead.
  - GPT-6.2 Sol (6.3): Expiring caches are useful across APIs, background jobs, and data-heavy web apps. Keyv serves several runtimes and storage backends, but its appeal is strongest when the same code needs to work with multiple stores. Redis usage gives a sense of the category's size, while demand for a portable cache API is less directly measured.
- **Helps a lot: 6.8** (likely 5.7 to 7.8)
  - Claude Opus 5.5 (6.0): The API is simple and typed, and the many first-party adapters make it a good thin abstraction. But it is only a key-value layer. It has no tiered caching or stampede protection, which cache-manager, cacheable and BentoCache add on top. v6 was just released with many silent behaviour changes and is not yet usable with the author's own higher-level libraries. AI agents also often write v5-style code, such as raw: true or relying on the default namespace.
  - GPT-6.2 Sol (7.5): Version 6.1.0 has a small typed API, batch methods, and clear adapter docs for expiry and connection errors. Coding agents have current examples, but TypeScript still accepts an old Redis constructor form that silently selects memory. An October test reported silent cache misses with mixed v5 and v6 dependencies, and the direct in-memory comparison I found tested v5.
- **Holds up over time: 6.5** (likely 5.4 to 8.1)
  - Claude Opus 5.5 (6.0): Maintenance is very active: 493 commits, 12 releases, 2 open issues and 0 open pull requests. Releases now go through a controlled, hardened process. But the project mostly depends on one maintainer. The v6 break splits users, and dependent libraries have not moved to v6 yet. The account compromise is an example of the single-person risk.
  - GPT-6.2 Sol (7.0): The repository is active, and October's v6.1.0 release aligned core and adapter versions while keeping v5 in maintenance. The v6 upgrade changes namespaces and adapter behavior in ways that can make existing cached values unreadable without configuration changes. The latest release lists one contributor, and the funding, release backup, and typical issue turnaround are hard to establish.
- **Used widely: 6.0** (likely 4.7 to 7.3)
  - Claude Opus 5.5 (6.0): 892M downloads in 4 weeks looks huge, but most of it comes in as a dependency of cacheable-request (used by got), flat-cache and file-entry-cache (used by ESLint), and cache-manager. Its growth ratio of 3.6 is below the 4.1 median, so it is losing ground. About 1,045 dependent packages suggests that tens of thousands of projects choose it directly.
  - GPT-6.2 Sol (5.9): Keyv reached 892 million four-week downloads, up 3.59× year over year. That trails the catalog's 4.1× baseline and growth at ioredis and unstorage, suggesting it lost relative ground. The 1.08 million indexed repositories show a large footprint, but chains such as ESLint's cache dependencies make direct choices difficult to estimate. Its 3,215 stars cover the whole monorepo, and recent social attention mostly reflects the compromise.
- **Vouched for: 5.9** (likely 4.8 to 7.5)
  - Claude Opus 5.5 (5.0): Widely used tools build on it: got through cacheable-request, ESLint through flat-cache, and NestJS caching through cache-manager. But most of those links are the same author's own packages, not independent choices. I found no survey data or independent benchmarks.
  - GPT-6.2 Sol (6.8): NestJS builds its documented cache integration on Keyv through cache-manager, and Got accepts Keyv stores for HTTP caching. Developers report working Redis setups alongside version and connection issues. Those integrations validate the design, while the production track record and independent measurements for 6.1.0 are still limited.
- **Safe: 5.4** (likely 3.7 to 6.6)
  - Claude Opus 5.5 (5.0): In August 2026 a stolen maintainer token was used to publish keyv 6.0.0 with a credential-stealing preinstall worm. The release carried valid provenance, and the worm spread to hundreds of packages. The bad versions were removed within about 7 hours, and publishing has since been hardened with staged, 2FA-approved releases. Scorecard is 7, but Code-Review scores 0 and Branch-Protection 3, which reflects solo-maintainer review. It has one dependency and an MIT licence.
  - GPT-6.2 Sol (5.8): The August 4 compromise put malicious keyv@6.0.0 on npm with valid provenance. It was flagged that day and withdrawn, and the advisory identifies 6.0.0 as the affected core version. The MIT-licensed core has one runtime dependency, and v6.1.0 introduced staged publishing with maintainer approval by 2FA and a malware scan. Those controls reduce publishing risk, but November's weak review and branch protection checks and limited visibility into who can approve releases leave real uncertainty.

## Good

- One small, Map-like API with TTL and namespaces that works across many official storage adapters.
- Very active: 493 commits and 12 releases in the last year, with almost no open issues or pull requests.
- Ships its own TypeScript types and pulls in only one dependency.
- After the August 2026 attack, publishing moved to staged releases that a maintainer must approve with 2FA, and branch rules were tightened.

## Bad

- The v5 to v6 change breaks a lot, and some of it fails silently: there is no default namespace, so v5 data reads as missing, and TTL handling in adapters changed.
- cache-manager 7 and cacheable 2 still need keyv v5, so the ecosystem is split between two major versions.
- v6 requires Node.js 22.19 or later and targets Node only. unstorage does better on edge and browser runtimes.
- It has one main maintainer, and the August 2026 malware release shows how much depends on that one account.

## The numbers

- Downloads, 4 weeks: 892M
- In a year: ×3.6
- GitHub stars: 3.2k
- Commits, 12 months: 493
- Last npm release: Oct 2026
- Advisories, 24 months: 1
- Licence: MIT
- GitHub: https://github.com/jaredwray/keyv
- npm: https://www.npmjs.com/package/keyv

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
