A NestJS factory-pattern module that provides a provider-discovery and resolution abstraction for building pluggable, type-based service architectures.
nestjs-factory-pattern-module helps you standardize “strategy/provider selection” in NestJS by letting you register multiple provider implementations and resolve the correct one at runtime using a simple factory token + provider name (type). It leverages NestJS DiscoveryService and a @FactoryProvider(...) decorator to discover providers automatically, then exposes a FactoryService (via FactoryModule.register(...)) to instantiate the right provider on demand—making extensible modules (exports, notifications, payments, etc.) cleaner and easier to scale.
For installation, usage, configuration, and examples, see the documentation:
MIT — see LICENSE.
