
accesscontrol
Role and Attribute based Access Control for Node.js
The Lens
AccessControl answers one question in your Node backend: can this role do this to that resource? You declare roles and grants in a chainable API, and it handles RBAC and ABAC together: role inheritance, deny overrides, own-versus-any ownership checks, and attribute filtering that strips fields a role shouldn't see. MIT and free.
There is nothing to operate. It's an in-process npm library with no service, no database, no policy server. The 3.0 rewrite turned it into a fuller policy engine, with condition expressions, mandatory gates, and async conditions, so it now covers ground that used to require an external service.
Use it when hand-rolled role checks start spreading through your codebase and you're not ready for a dedicated policy service. CASL and node-casbin are the OSS competition; Oso, Cerbos, and Permit.io are the paid services this keeps you from needing early. Free at any team size.
The catch: it's one maintainer's project. Development is active, but bus factor is the standing risk, and the 3.x policy engine is a big fresh rewrite, so expect some API churn while it settles.
Free vs Self-Hosted vs Paid
fully freeFree: The whole library: RBAC, ABAC, inheritance, conditions, the audit log. MIT, no gated features.
Self-hosted: Nothing to host. It runs inside your Node process; npm i accesscontrol is the entire deployment story.
Paid: No paid tier. The paid products in this space (Oso, Cerbos, Permit.io) are external policy services, not upsells of this library.
Completely free and open source. The cost is integration work, not money.
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores
License: MIT License
Use freely, including commercial. Just keep the license.
Commercial use: ✓ Yes
About
- Owner
- Onur Yıldırım (User)
- Stars
- 2,320
Explore Further
More tools in the directory
systeminformer
A free, powerful, multi-purpose tool that helps you monitor system resources, debug software and detect malware. Brought to you by Winsider Seminars & Solutions, Inc. @ http://www.windows-internals.com
15.4k ★fscan
一款内网综合扫描工具,方便一键自动化、全方位漏扫扫描。(An intranet comprehensive scanning tool, enabling one-click automated, all-round vulnerability scanning)
14.1k ★frappe
Low code web framework for real world applications, in Python and Javascript
10.4k ★