@open-monordo/bitfield-permission-manager
v0.2.0-beta.1
Published
MonOrdo library for manage permissions with bitfield system
Downloads
7
Readme
bitfield-permission-manager
❤️ This library is developed and maintained by MonOrdo ❤️
This library is developed to use the Bit field method as the main logic base within our permission system. We did not invent this method, nor its application to the permission system, but after having been inspired by discord, for example. We chose to simplify its use by creating a library to apply it more simply. This library supports injection within a module and can therefore be injected, for example, within the services of a NestJs server. This library also exposes a Guard to simplify its use within NestJs.
The bit field method allows building a permission system like Discord uses for its channels. The main advantage is to avoid heavy data transfers on the whole proposed solution. For its use, the storage of a big int is enough. The second advantage is its reliability for the check of permissions, no storage of permissions is necessary except the storage of the big int, so only its interpretation can differ in time and not name migrations as can be found on classical methods.
Repository: https://github.com/monordo/bitfield-permission-manager
Official documentation: https://monordo.gitbook.io/bitfield-permission-manager/
NPM details: https://www.npmjs.com/package/@monordo/bitfield-permission-manager