@clubedge/feature-flags-nestjs) provides a FeatureFlagsModule that registers a singleton FeatureFlagsClient in the NestJS dependency injection container. It wraps @clubedge/feature-flags-sdk-core.
Requirements
- NestJS 11+
- Node.js 18+
Installation
Registration
Register the module in your rootAppModule:
FeatureFlagsClient configuration:
See SDK configuration for the full reference including
retries, retryDelayMs, logger, and eventEmitter.
Injection
Inject the client into any service, controller, or provider using theFEATURE_FLAGS_CLIENT token:
Lifecycle management
The module callsclient.initialize() automatically on onModuleInit. To ensure clean shutdown during NestJS termination:
FlagsLifecycleService in your module’s providers array.

