{"library":"sticky-module","type":"library","category":null,"description":"sticky-module is a specialized JavaScript utility designed to guarantee that a given module is instantiated and evaluated only once, even across multiple imports or different bundling contexts within an application. It achieves this by storing and retrieving module instances using a unique, Symbol-based key, effectively creating an application-wide singleton for that module. This mechanism is particularly useful for libraries or components that require strict single-instance behavior to maintain consistent state or prevent redundant setup in complex module graphs, micro-frontends, or scenarios with multiple bundler outputs. The current stable version is 0.1.1. Its release cadence is likely slow, focusing on stability given its niche purpose. A key differentiator is its Symbol-based internal storage, which offers a robust and collision-resistant approach to global module caching compared to string-based keys.","language":"javascript","status":"active","version":"0.1.1","tags":["javascript","sticky","module"],"install":[{"cmd":"npm install sticky-module","imports":["import stickyModule from 'sticky-module';","let [{ config }, known] = stickyModule('my-config', { config: {} });"]},{"cmd":"yarn add sticky-module","imports":[]},{"cmd":"pnpm add sticky-module","imports":[]}],"homepage":null,"github":"https://github.com/WebReflection/sticky-module","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/sticky-module","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/sticky-module/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}