{"id":26172181,"url":"https://github.com/vartzy/pattern-software-design","last_synced_at":"2025-10-22T21:43:21.305Z","repository":{"id":276663078,"uuid":"929905987","full_name":"VArtzy/pattern-software-design","owner":"VArtzy","description":"Software Design Pattern cheatsheet","archived":false,"fork":false,"pushed_at":"2025-03-15T14:19:06.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T14:19:54.510Z","etag":null,"topics":["design-patterns","software-engineering","software-patterns"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VArtzy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-09T17:13:05.000Z","updated_at":"2025-03-15T14:19:10.000Z","dependencies_parsed_at":"2025-02-25T04:19:15.282Z","dependency_job_id":"547fa421-7103-46a1-bffc-decaf51ae192","html_url":"https://github.com/VArtzy/pattern-software-design","commit_stats":null,"previous_names":["vartzy/pattern-software-design"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VArtzy/pattern-software-design","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VArtzy%2Fpattern-software-design","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VArtzy%2Fpattern-software-design/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VArtzy%2Fpattern-software-design/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VArtzy%2Fpattern-software-design/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VArtzy","download_url":"https://codeload.github.com/VArtzy/pattern-software-design/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VArtzy%2Fpattern-software-design/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273068842,"owners_count":25039911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["design-patterns","software-engineering","software-patterns"],"created_at":"2025-03-11T19:53:34.236Z","updated_at":"2025-10-22T21:43:20.912Z","avatar_url":"https://github.com/VArtzy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Software Design Pattern Concept, Implementation and Exercise\n\nThere are **23 design patterns** in total (23 classic Design Patterns, although at least 26 Design Patterns have been discovered to date), categorized into three groups:\n\n1. **[Practical Creational Patterns](https://github.com/VArtzy/pattern-software-design/tree/main/creational)**: 5 patterns  \n2. **[Practical Structural Patterns](https://github.com/VArtzy/pattern-software-design/tree/main/structural)**: 7 patterns  \n3. **[Practical Behavioral Patterns](https://github.com/VArtzy/pattern-software-design/tree/main/behavioral)**: 11 patterns\n\n### **Creational Patterns**  \nThese patterns provide various object creation mechanisms, which increase flexibility and reuse of existing code.  \n- **[Factory Method](https://github.com/VArtzy/pattern-software-design/tree/main/factory)**  \n- **[Abstract Factory](https://github.com/VArtzy/pattern-software-design/tree/main/abstract-factory)**  \n- **[Builder](https://github.com/VArtzy/pattern-software-design/tree/main/builder)**  \n- **[Prototype](https://github.com/VArtzy/pattern-software-design/tree/main/prototype)**  \n- **[Singleton](https://github.com/VArtzy/pattern-software-design/tree/main/singleton)**  \n\n---\n\n### **Structural Patterns**  \nThese patterns explain how to assemble objects and classes into larger structures while keeping these structures flexible and efficient.  \n- **[Adapter](https://github.com/VArtzy/pattern-software-design/tree/main/adapter)**  \n- **[Bridge](https://github.com/VArtzy/pattern-software-design/tree/main/bridge)**  \n- **[Composite](https://github.com/VArtzy/pattern-software-design/tree/main/composite)**  \n- **[Decorator](https://github.com/VArtzy/pattern-software-design/tree/main/decorator)**  \n- **[Facade](https://github.com/VArtzy/pattern-software-design/tree/main/facade)**  \n- **[Flyweight](https://github.com/VArtzy/pattern-software-design/tree/main/flyweight)**  \n- **[Proxy](https://github.com/VArtzy/pattern-software-design/tree/main/proxy)**  \n\n---\n\n### **Behavioral Patterns**  \nThese patterns are concerned with algorithms and the assignment of responsibilities between objects.  \n- **[Chain of Responsibility](https://github.com/VArtzy/pattern-software-design/tree/main/chain-of-responsibility)**  \n- **[Command](https://github.com/VArtzy/pattern-software-design/tree/main/command)**  \n- **[Iterator](https://github.com/VArtzy/pattern-software-design/tree/main/iterator)**  \n- **[Mediator](https://github.com/VArtzy/pattern-software-design/tree/main/mediator)**  \n- **[Memento](https://github.com/VArtzy/pattern-software-design/tree/main/memento)**  \n- **[Observer](https://github.com/VArtzy/pattern-software-design/tree/main/observer)**  (Fun fact: PubSub pattern is distributed -- asynchronous and many-to-many version of observer)\n- **[State](https://github.com/VArtzy/pattern-software-design/tree/main/state)**  \n- **[Strategy](https://github.com/VArtzy/pattern-software-design/tree/main/strategy)**  \n- **[Template Method](https://github.com/VArtzy/pattern-software-design/tree/main/template-method)**  \n- **[Visitor](https://github.com/VArtzy/pattern-software-design/tree/main/visitor)**\n\n## **Reference**\n- https://refactoring.guru/design-patterns\n- https://www.youtube.com/playlist?list=PL-CtdCApEFH_yiziXrQeogYOJzCmD8XLM\n- https://www.youtube.com/watch?v=tv-_1er1mWI\n- https://www.dicoding.com/blog/design-pattern/\n- https://www.linkedin.com/learning/node-js-design-patterns\n- https://en.wikipedia.org/wiki/Software_design_pattern\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvartzy%2Fpattern-software-design","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvartzy%2Fpattern-software-design","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvartzy%2Fpattern-software-design/lists"}