Skip to Content
gentlemans-stack
Reference

Connectors

Infrastructure adapters are isolated Nx libraries so consumers install only the drivers they use. All adapters implement the lifecycle contract from @gentlemans-stack/connector-factory.

  • connector-factory — shared lifecycle and health types
  • mongodb-connector — Mongoose connection adapter
  • redis-connector — ioredis connection adapter
  • smtp-email-connector — Nodemailer SMTP adapter

Generate another connector from the repository root with pnpm nx g @gentlemans-stack/nx-plugin:connector <name>. Add its runtime packages with the generator's --dependencies option; each package must remain dependency-isolated.