# kwhitley/apicache

Simple API-caching middleware for Express/Node.

Repository: https://github.com/kwhitley/apicache
Canonical: https://ross.abutalabs.com/products/apicache
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, api, cache, json, rest, response, middleware, restify, redis, memory, fast, node, express
Last push: 2023-01-24T04:53:51+00:00

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

## Adoption (not part of the score)
Stars 1248, forks 191 (observed 2026-08-28T04:04:07.770268+00:00)

## What it is
A simple API response caching middleware for Express/Node that caches route responses using plain-English durations like '5 minutes'. It supports a built-in memory engine or Redis, with cache grouping, indexing, and manual clearing controls.

## Use cases
- cache express api responses
- add response caching to node rest api
- cache api routes with redis
- avoid hitting database on repeated api calls
- clear cached api responses by group
- simple ttl caching middleware for express

## When to choose
- you want dead-simple route-level response caching in Express or Restify with minimal setup
- you need plain-English TTL durations and optional Redis backing
- you want cache groups, index inspection, and manual clearing out of the box

## When to avoid
- you need fine-grained cache invalidation, stale-while-revalidate, or HTTP cache headers control
- you're not using Express/Restify-style middleware
- you need an actively developed project with recent maintenance

## Facets
- artifact type: library
- maturity: maintenance
- function: caching, middleware
- domain: backend, web-development, apis
- platform: -
- tags: express, restify, redis, response-cache, api-middleware, nodejs, web-server

## Member repositories
- kwhitley/apicache (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:07.770268+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-30T05:07:53.199551+00:00, confidence not recorded.
  - readme: https://github.com/kwhitley/apicache (fetched 2026-08-28T04:04:07.770268+00:00, sha 5d05619f6d36)
  - registry_npm: https://registry.npmjs.org/apicache (fetched 2026-08-29T12:18:59.792871+00:00, sha f4ff23fef112)
- Data as of 2026-08-30T08:39:29.467469+00:00.
