Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/behzadam/patterns

Learn and apply TypeScript design patterns through practical examples and code snippets.
https://github.com/behzadam/patterns

design-pattern design-patterns design-system patterns typescript

Last synced: about 2 months ago
JSON representation

Learn and apply TypeScript design patterns through practical examples and code snippets.

Awesome Lists containing this project

README

        

# TypeScript Design Patterns

A curated collection of TypeScript design patterns, implemented and explained for easy understanding and implementation.

## Introduction

This repository provides practical examples of common design patterns in TypeScript. Each pattern includes a detailed explanation, code implementation, and usage scenarios.

## Patterns Included

- Creational Patterns
- [Factory Method](src/creational/factory/factory.ts)
- Abstract Factory
- [Singleton](src/creational/singleton/singleton.ts)
- [Builder](src/creational/builder/builder.ts)
- [Prototype](src/creational/prototype/prototype.ts)
- Structural Patterns
- [Adapter](src/structural/adapter/adapter.ts)
- [Bridge](src/structural/bridge/bridge.ts)
- [Composite](src/structural/composite/composite.ts)
- [Decorator](src/structural/decorator/decorator.ts)
- [Facade](src/structural/facade/facade.ts)
- [P5.js Example Live](https://editor.p5js.org/behzad.am/full/Z_cxjFuwt)
- [Flyweight](src/structural/flyweight/flyweight.ts)
- [P5.js Example Live](https://editor.p5js.org/behzad.am/full/eTARZLkof)
- [Proxy](src/structural/proxy/proxy.ts)
- Behavioral Patterns
- Strategy
- Observer
- Iterator
- Template Method
- [Command](src/behavioral/command/command.ts)
- [P5.js Example Live](https://editor.p5js.org/behzad.am/sketches/Nu8dD-p9a)
- Chain of Responsibility
- Mediator
- State
- Visitor

## License

This project is licensed under the MIT License.

## Acknowledgments

Behzad Ali Mohammad Zad for creating and maintaining this repository.

Enjoy exploring and learning TypeScript design patterns!