EidosOn this pageEidos Creational Patternsβ Abstract Factoryπ1Create families of related objects without specifying concrete classesExplanationsLive Demo createAbstractFactory Builderπ2Step-by-step construction of complex objectsExplanationsLive Demo createBuilder createValidatedBuilder Factory Method1Delegate object creation to subclasses or functionsExplanationsLive Demo createFactoryMethod Structural Patternsβ Adapterπ2Adapt function signatures with input/output mappersExplanationsLive Demo adapt createAdapter Bridge2Decouple abstraction from implementationExplanationsLive Demo composeBridges createBridge Compositeπ6Tree structures with uniform leaf/branch handlingExplanationsLive Demo branch find flatten fold leaf map Decoratorπ4Before/after/around hooks for functionsExplanationsLive Demo after around before decorate Facade1Simplified interface to a complex subsystemExplanationsLive Demo createFacade Proxy2Lazy init, caching, rate-limiting, access controlExplanationsLive Demo guarded lazy Behavioral Patternsβ Chain of Responsibilityπ2Pipeline of handlers that can pass or handle requestsExplanationsLive Demo createChain safeChain Commandπ5Encapsulate actions with undo/redo supportExplanationsLive Demo createCommandStack createReactiveCommandStack safeExecute undoable undoableState Interpreter1Evaluate expressions or DSLsExplanationsLive Demo interpret Iteratorπ8Traverse collections without exposing internalsExplanationsLive Demo createIterable filter iterate lazyRange map reduce take toArray Mediatorπ1Centralize communication between componentsExplanationsLive Demo createMediator Mementoπ1Capture and restore object state (snapshots)ExplanationsLive Demo createHistory Observerπ2Pub/sub event emitter with safe notificationExplanationsLive Demo createLiteObservable createObservable Stateπ2Object behavior changes based on internal stateExplanationsLive Demo createLiteMachine createMachine Strategyπ4Swap algorithms at runtimeExplanationsLive Demo createStrategies safeStrategy withFallback withValidation Template Methodπ2Define skeleton algorithm, let subclasses fill stepsExplanationsLive Demo template templateWithDefaults Visitor1Add operations to objects without modifying themExplanationsLive Demo visit