Cachios is a lightweight wrapper around axios that adds in-memory caching using node-cache. Version 4.0.0 is the current stable release. It provides a simple drop-in replacement for axios with minimal configuration, caching responses by default and offering TTL control, force refresh, and custom cache backends. Unlike other caching libraries, it uses a trimmed cache (status and data) and integrates seamlessly with existing axios instances. Release cadence is low (major version bumps infrequent).
npm install cachiosNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic caching with TTL, automatic cache hit, and force refresh with TypeScript.
Set a custom responseCopier option on cachios.create to include additional fields.
Use cachios.create(axiosInstance) to get a custom instance, or use the default export.
Switch to import syntax: import cachios from 'cachios'.
Install with 'npm install cachios' and ensure you are using ESM (e.g., type: 'module' in package.json) or use dynamic import.
Use import cachios from 'cachios' (default export) or const instance = cachios.create(axios); then instance.get(...).
Ensure you are not overriding the cache key manually; if using custom cache store, implement get/set correctly.