# epicweb-dev/cachified

🤑 wrap virtually everything that can store by key to act as cache with ttl/max-age, stale-while-validate, parallel fetch protection and type-safety support

Repository: https://github.com/epicweb-dev/cachified
Canonical: https://ross.abutalabs.com/products/cachified
Language: TypeScript
License: MIT
License Family: permissive
Topics: cache, stale-while-revalidate, throttling, ttl-cache, typesafe
Last push: 2026-08-01T05:02:29+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 91, longevity 100
- inputs: {"age_days": 1517, "days_push": 32, "days_rel": 62, "gap_med": 26.5, "n_releases_24m": 11}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1058, forks 30 (observed 2026-08-28T04:03:25.100938+00:00)

## What it is
@epic-web/cachified is a TypeScript library that wraps any key-value store to act as a cache with TTL, stale-while-revalidate, parallel fetch protection, and type-safe value validation. It provides a simple, store-agnostic API for caching fresh values in applications.

## Use cases
- add ttl caching to any key-value store
- implement stale-while-revalidate caching
- prevent parallel duplicate fetches
- cache api responses with type safety
- wrap lru cache or redis as a cache layer
- speed up app by caching expensive values

## When to choose
- you want a store-agnostic caching wrapper in TypeScript
- you need ttl and stale-while-revalidate semantics
- you want type-safe cache values with validation

## When to avoid
- you need a distributed cache with built-in eviction policies
- you want a full caching server or CDN solution

## Facets
- artifact type: library
- maturity: active
- function: caching, middleware
- domain: web-development, backend, developer-tools, performance
- platform: cross-platform
- tags: stale-while-revalidate, ttl-cache, type-safety, cache-wrapper, lru-cache, redis, nodejs, typescript

## Member repositories
- epicweb-dev/cachified (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:25.100938+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-30T06:57:46.040945+00:00, confidence not recorded.
  - readme: https://github.com/epicweb-dev/cachified (fetched 2026-08-28T04:03:25.100938+00:00, sha 2da57e2ecfdb)
  - registry_npm: https://registry.npmjs.org/cachified (fetched 2026-08-29T12:59:19.508246+00:00, sha d94e7877a113)
- Data as of 2026-08-30T08:39:29.467469+00:00.
