Tools/onury/accesscontrol

accesscontrol

Role and Attribute based Access Control for Node.js

2.3kemergingTypeScriptMIT Licensetrending

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 free

Free: 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.

Self-hosting ops:trivial

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Score
56/100 · C+
Adoption16/30
Maintenance10/25
Community5/20
License15/15
Analysis10/10

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