memoized-fetch
JSON →A lightweight wrapper around window.fetch that memoizes JSON responses using in-memory cache and sessionStorage for persistence. Version 1.0.0 is the latest stable release. Unlike raw fetch, it automatically parses JSON and caches results keyed by request arguments (URL, options, and an optional cache-busting token). It is designed for browser-only use, ships TypeScript type definitions, and enforces that the third argument must be a string, number, boolean, Date, null, or undefined. It differentiates by providing simple cache control without external dependencies, but lacks features like TTL, cache size limits, or error handling for non-JSON responses.
Resources
packagememoized-fetch ↗