# fbeline/design-patterns-JS

All the 23 (GoF) design patterns implemented in Javascript

Repository: https://github.com/fbeline/design-patterns-JS
Canonical: https://ross.abutalabs.com/products/design-patterns-js
Language: JavaScript
License: MIT
License Family: permissive
Topics: design-patterns, gang-of-four, javascript
Archived: true
Last push: 2023-02-10T16:43:18+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3473, "days_push": 1300, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3628, forks 625 (observed 2026-08-28T04:08:11.999217+00:00)

## What it is
A collection of all 23 Gang of Four design patterns implemented in JavaScript using both prototype-based and ES6 class syntax. It serves as a reference and learning resource with example code and documentation for each pattern.

## Use cases
- learn design patterns in javascript
- see gof patterns implemented in es6 classes
- reference examples for singleton or factory pattern in js
- study creational structural and behavioral patterns
- compare prototype vs class based pattern implementations

## When to choose
- you want concise, runnable JavaScript examples of all 23 GoF patterns
- you are learning or teaching design patterns in a JS context
- you need a quick reference with docs for each pattern

## When to avoid
- you need a production-ready pattern library to import into your app
- you want patterns for languages other than JavaScript
- you need actively maintained, feature-rich framework code

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: developer-tools, documentation
- domain: developer-tools, programming-languages, tutorials
- platform: -
- tags: design-patterns, gang-of-four, es6, javascript, educational, nodejs

## Member repositories
- fbeline/design-patterns-JS (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:11.999217+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:31:54.759462+00:00, confidence not recorded.
  - readme: https://github.com/fbeline/design-patterns-JS (fetched 2026-08-28T04:08:11.999217+00:00, sha e1bce04cc65a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
