adminnexus-common is the shared NestJS toolkit powering every AdminNexus microservice. It centralizes constants, DTOs, decorators, guards, filters, interceptors, Kafka helpers, Mongo helpers, logging, and reusable utilities so the 76+ services can stay consistent and focused on domain logic.
npm install @appneural/adminnexus-common- Standardized constants, enums, DTOs, and schemas for tenant-aware APIs.
- Decorators and guards for auth, tenant, org, and API-key handling.
- Interceptors and filters for consistent logging, response wrapping, timeouts, and error handling.
- Kafka helpers (producer, consumer, config, event base class) built on
kafkajs. - Mongo helpers (dynamic module, base repository) on top of
mongoose. - Shared utilities (
crypto,uuid,otp, etc.) plus apinologger module.
- Import the desired pieces from
@appneural/adminnexus-common. - Register
KafkaModule.forRoot()andMongoModule.forRoot()with your configuration in each service module. - Apply guards, decorators, interceptors, and filters as needed to keep APIs consistent.
- Call
LoggerServicewherever you need structured logs.
npm run build