# tcorral/Design-Patterns-in-Javascript

Design Patterns applied to Javascript code.

Repository: https://github.com/tcorral/Design-Patterns-in-Javascript
Canonical: https://ross.abutalabs.com/products/design-patterns-in-javascript
Homepage: http://tcorral.github.com/Design-Patterns-in-Javascript/
Language: JavaScript
License Family: other
Last push: 2023-08-07T04:31:34+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5461, "days_push": 1122, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2619, forks 520 (observed 2026-08-28T04:07:04.911261+00:00)

## What it is
A collection of JavaScript ES6 implementations of the classic Gang of Four design patterns, organized into one folder per pattern with step-by-step examples. It serves as an educational reference for learning how patterns like Singleton, Observer, Factory, and MVC apply to JavaScript code.

## Use cases
- learn design patterns in javascript
- see gang of four patterns implemented in es6
- study observer or singleton examples in javascript
- reference for applying mvc pattern in javascript
- step-by-step walkthroughs of design pattern refactoring
- teaching software design patterns with javascript examples

## When to choose
- you are learning or teaching classic design patterns in a JavaScript context
- you want runnable ES6 examples of each GoF pattern
- you need a reference to accompany books like Head First Design Patterns

## When to avoid
- you need a production-ready pattern library to import into your app
- you want TypeScript or framework-specific pattern implementations
- you need actively maintained or licensed code for commercial use

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

## Member repositories
- tcorral/Design-Patterns-in-Javascript (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:04.911261+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-30T02:20:16.599444+00:00, confidence not recorded.
  - readme: https://github.com/tcorral/Design-Patterns-in-Javascript (fetched 2026-08-28T04:07:04.911261+00:00, sha 7f906241d754)
- Data as of 2026-08-30T08:39:29.467469+00:00.
