NestJS Casbin MongoDB

JSON →
library 1.2.5 ·javascript maintenance
verified Jun 5, 2026

A NestJS module integrating Casbin with a MongoDB adapter for policy storage. Current stable version is 1.2.5, with no updates since 2021. It provides a ready-to-use module that configures Casbin with MongoDB as the policy backend, supporting model files and custom collections. Key differentiators include tight integration with NestJS dependency injection and a simple forRoot setup. Compared to alternatives like nestjs-casbin, this package specifically targets MongoDB users and avoids the need to manually configure adapters.