{"library":"memoized-node-fetch","type":"library","category":null,"description":"memoized-node-fetch is a JavaScript/TypeScript utility that wraps `node-fetch` (or any `fetch`-like function) to implement request promise memoization. Its primary function is to return the *same promise* for identical concurrent requests until that promise resolves, preventing redundant calls to external APIs. Unlike a traditional data cache, this library specifically caches the promise object itself, not the resolved data, and the cache is cleared immediately upon resolution or rejection. The current stable version is 1.1.5. While not strictly scheduled, the project appears to follow an as-needed release cadence for bug fixes and minor improvements. Its key differentiator from state management libraries like React Query or SWR is its focus on *deduplicating in-flight requests* rather than long-term data caching, making it complementary to such libraries when used as their underlying fetcher. It hashes the URL and request options to determine if requests are identical.","language":"javascript","status":"active","version":"1.1.5","tags":["javascript","node-fetch","fetch","cache","promise","nodejs","memoized","memoized-fetch","typescript"],"install":[{"cmd":"npm install memoized-node-fetch","imports":["import memoizedNodeFetch from 'memoized-node-fetch';","const memoizedNodeFetch = require('memoized-node-fetch');","import memoizedNodeFetch from 'memoized-node-fetch';\nconst fetch = memoizedNodeFetch();\n// 'fetch' is now the memoized fetch function; its type is inferred as (url: RequestInfo, options?: RequestInit) => Promise<Response>."]},{"cmd":"yarn add memoized-node-fetch","imports":[]},{"cmd":"pnpm add memoized-node-fetch","imports":[]}],"homepage":null,"github":"https://github.com/chrispanag/memoized-node-fetch","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/memoized-node-fetch","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/memoized-node-fetch/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}