Preparing for system design interviews?  Try bugzed.com →

global-cache

JSON →
library 1.2.1 ·javascript
verified Jun 7, 2026

A tiny utility (v1.2.1, stable) that attaches a cache to the global object (window/global/self) using the most discreet method available: Symbols, a non-identifier string key, and non-enumerable property descriptors. Unlike typical global singletons, it minimizes discoverability and collides with other code. Keys must be strings or symbols. No dependencies, ESM and CJS support. Ideal for internal module state sharing across environments.

total hits 15
actors 3 distinct systems
last hit 16d ago AhrefsBot
ByteDance
4
GPTBot
3
Humans
7

top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · 🇬🇧 United Kingdom · JO