Skip to content

Migrating from Casbin

← Documentation home

CasbinSentinel
model.confSchemaDefinition interface
policy.csvFluent builder or JSON import
e.Enforce("alice", "data1", "read")engine.evaluate(user, "data:read", "data")
Custom matchers for ABAC.when() conditions
Role managerRoleHierarchy with cycle detection

Key difference: Casbin requires its own DSL and adapter files. Sentinel is pure TypeScript with IDE autocomplete.

Released under the MIT License.