# HeyPuter/kv.js

⚡️ Advanced in-memory caching for JavaScript

Repository: https://github.com/HeyPuter/kv.js
Canonical: https://ross.abutalabs.com/products/kvjs
Language: JavaScript
License: MIT
License Family: permissive
Topics: cache, javascript, key-value, memcached, redis, in-memory-caching, node-cache, puter
Last push: 2025-12-03T21:22:13+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 55, release rhythm 35, longevity 88
- inputs: {"age_days": 1234, "days_push": 273, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1531, forks 40 (observed 2026-08-28T04:04:59.390141+00:00)

## What it is
KV.JS is a fast, in-memory key-value data store written in pure JavaScript, heavily inspired by Redis and Memcached. It supports multiple data types (strings, lists, sets, sorted sets, hashes, geospatial indexes) with over 140 Redis-like operations such as SET, GET, EXPIRE, INCR, LPUSH, and HSET.

## Use cases
- add in-memory caching to a Node.js app without running Redis
- store and expire session data with TTL support
- use Redis-like commands like LPUSH, SADD, HSET in pure JavaScript
- replace node-cache with a richer key-value store
- prototype Redis-style data structures locally
- manage counters with INCR/DECR operations
- store geospatial indexes in memory

## When to choose
- you need caching but running a Redis server would be overkill
- you want Redis-like data types and commands in a single npm dependency
- you need TTL/expiration support in an in-process store
- your app is JavaScript/Node.js based and you want zero external services

## When to avoid
- you need persistence across process restarts
- you need a shared cache across multiple application instances
- you require Redis features like pub/sub, replication, or clustering
- you need a distributed cache

## Facets
- artifact type: library
- maturity: active
- function: caching, database
- domain: databases, developer-tools, backend
- platform: cross-platform
- tags: in-memory-cache, redis-alternative, key-value-store, memcached-inspired, pure-javascript, nodejs, javascript

## Member repositories
- HeyPuter/kv.js (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:59.390141+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-30T04:31:21.407666+00:00, confidence not recorded.
  - readme: https://github.com/HeyPuter/kv.js (fetched 2026-08-28T04:04:59.390141+00:00, sha 1912cf2f11fc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
