Ross ROSS = Recommend OSS · open-source software intelligence for agents

apache/casbin

Apache Casbin: an authorization library that supports access control models like ACL, RBAC, ABAC. observed · 2026-08-28

github.com/apache/casbin · homepage · Go · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

98/100

  • Activity 98
  • Release rhythm 98
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 2.0
  • age_days: 3434
  • days_rel: 13
  • days_push: 12
  • n_releases_24m: 55

Full methodology

Adoption not part of the score

20349 stars · 1755 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

Apache Casbin is an open-source authorization library that enforces access control using models such as ACL, RBAC, ABAC, ReBAC, and MAC, defined via PERM metamodel configuration files. It is implemented natively in many languages (Go, Java, Node.js, PHP, Python, .NET, Rust, C++, and more) with consistent APIs and pluggable policy storage adapters for databases, files, and cloud storage.

Use cases

  • enforce role-based access control in a Go web app
  • implement ABAC permission checks with attribute conditions
  • store authorization policies in MySQL or Postgres
  • manage RBAC role hierarchies across microservices
  • switch access control models without rewriting code
  • add multi-tenant authorization with filtered policy loading
  • centralize authz logic across multiple programming languages

When to choose

  • you need flexible, model-driven authorization (ACL/RBAC/ABAC) decoupled from application code
  • you want consistent authorization logic across polyglot services
  • you need pluggable policy persistence in many databases or storage backends
  • you want a mature, widely adopted access control engine with an online policy editor

When to avoid

  • you only need simple hardcoded role checks with no policy flexibility
  • you need full-featured authentication (login, OAuth/OIDC flows) - Casbin handles authorization, not authentication
  • your language lacks the adapter or feature (e.g., watcher, filtered adapter) you require

Facets

library · maturity stable

authorization auth security middleware security backend developer-tools apis go cross-platform jvm python rust cpp dotnet php rbac abac acl access-control iam policy-engine perm-metamodel multi-language nodejs

10 sources

Member repositories

RepositoryRoleHealth v2
apache/casbinmain98

For agents

markdown · JSON · MCP: product_card(name="apache/casbin")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem