{"repo":"nestjsx/nest-access-control","free":true,"listed":false,"github":"https://github.com/nestjsx/nest-access-control","clone":"git clone https://github.com/nestjsx/nest-access-control.git","description":"Role and Attribute based Access Control for Nestjs 🔐","language":"TypeScript","stars":1158,"topics":["nestjs","typescript","addon","helper","access-control","permissions"],"license":"MIT","category":"analytics","readme_excerpt":"Nest Access Control A helper Module for building a Role and Attribute based Access Control System for Nestjs TL;DR: recently our system was needing to have a Control Panel, so you can control, and monitor every thing from there, and it was really really needing some Role based access control system, so i build this module for that, it is really cool, so i'd love to share it with you, and any PR are more than welcome :heart: This module is built on top of onury's accesscontrol library here is some of it's Core Features - Chainable, friendly API. e.g. ac.can(role).create(resource) - Role hierarchical inheritance . - Define grants at once (e.g. from database result) or one by one . - Grant/deny permissions by attributes defined by glob notation (with nested object support). - Ability to filter data (model) instance by allowed attributes. - Ability to control access on own or any resources. - Ability to lock underlying grants model. - No silent errors. - Fast . (Grants are stored in memory, no database queries.) - Brutally tested . - TypeScript support. What does this Module Provide? In this module you will have all these features out of the box, but in nest-ish way. - It's Decorator-based so most of the time you will use decorators in your routes. - Built-in ACGuard so you can go and use it directly. - Access to the underlying AccessControl object from everywhere. Installation - NPM: - Yarn: --- Example See example folder for the more code We need to build a Video service so use","default_branch":null,"files":null,"tree":[],"storefront":"/r/nestjsx","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nestjsx/nest-access-control/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}