Singleton Pattern
Ensuring only one instance of a particular object or resource ever exists throughout an application's lifetime, with a single global access point.
The Singleton pattern restricts a particular class or module to having exactly one instance, providing a single, well-known global point of access to it, and preventing accidental creation of multiple, potentially inconsistent copies of shared state like a configuration object, a logging service, or a database connection pool. In JavaScript, this pattern is often simpler to implement than in classical OOP languages, because module-level state in an ES module is already inherently singleton-like without any extra effort.
A singleton is like a single company mailroom that every department in the building is required to route their outgoing mail through — no department gets its own private mailroom instance, and everyone shares access to the exact same physical mail cart, whether they realize it or not.