js-design-patterns

Installation
SKILL.md

JavaScript Design Patterns Skill

Classic GoF-inspired design patterns implemented in modern JavaScript (ES2017+). Based on patterns.dev/vanilla.


Quick Pattern Selector

Problem Pattern
Need exactly one shared instance (DB, config, logger) Singleton
Intercept, validate, or log object property access Proxy
Share methods across many instances without duplication Prototype
Notify multiple parts of the app when state changes Observer
Encapsulate private state; expose a clean public API Module
Add reusable behavior to classes without inheritance Mixin
Decouple components via a central communication hub Mediator
Reuse instances to reduce memory (thousands of objects) Flyweight
Create objects without specifying their exact type Factory
Installs
1
Repository
bsene/skills
GitHub Stars
4
First Seen
Mar 10, 2026
js-design-patterns — bsene/skills