Skip to content

Repository files navigation

Novatorsoft Logo

NestJS Factory Pattern Module

A NestJS factory-pattern module that provides a provider-discovery and resolution abstraction for building pluggable, type-based service architectures.

NPM Version Package License NPM Downloads

Instagram LinkedIn

About

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.

Documentation

For installation, usage, configuration, and examples, see the documentation:

License

MIT — see LICENSE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages