Apache Casbin
Apache Casbin: an authorization library that supports access control models like ACL, RBAC, ABAC. observed · 2026-10-07
Health v2 · maintenance only
96/100
- Activity 98
- Release rhythm 91
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 2
- age_days: 3482
- days_rel: 62
- days_push: 16
- n_releases_24m: 54
Adoption not part of the score
20433 stars · 1761 forks observed · 2026-10-07
What it is AI-extracted, prompt v1, taxonomy v1, 2026-10-19, confidence 0.99
Apache Casbin is an open‑source authorization library that enforces access control policies across multiple programming languages. It supports a wide range of models such as ACL, RBAC, ABAC, and more via configurable policy files and adapters.
Use cases
- enforce role‑based access control in a web application
- implement attribute‑based permissions for a microservice
- manage dynamic ACLs for a multi‑tenant SaaS platform
- integrate policy enforcement into a Go API server
- store and load policies from databases like MySQL or PostgreSQL
- use Casbin’s matcher functions for custom permission logic
When to choose
- you need a language‑agnostic, model‑driven authorization solution
- your project requires support for multiple access control models (RBAC, ABAC, etc.)
- you want to persist policies in various backends via adapters
- you prefer a mature, actively maintained library with a large community
When to avoid
- you need a full‑featured identity provider or authentication system (Casbin only handles authorization)
- your environment cannot accommodate external adapters or custom policy files
- you require built‑in UI for policy management (Casbin provides only an optional online editor)
Facets
library · maturity active
auth authorization security go jvm php python dotnet rust rbac abac acl access-control policy casbin enforcer nodejs
10 sources
- readme: https://github.com/apache/casbin · fetched 2026-10-07 · cfa4b01e2715
- homepage: https://casbin.apache.org/ · fetched 2026-10-05 · 4ecaada87fc7
- site_page: https://casbin.apache.org/docs/overview · fetched 2026-10-05 · 34c40678602c
- site_page: https://casbin.apache.org/docs/downloads · fetched 2026-10-05 · dba7a5497db0
- site_page: https://casbin.apache.org/docs/get-started · fetched 2026-10-05 · 1cef184398ca
- site_page: https://casbin.apache.org/docs/category/access-control-models · fetched 2026-10-05 · 09dbbd7913d2
- site_page: https://casbin.apache.org/docs/category/storage · fetched 2026-10-05 · b7a6e3a4b3d4
- site_page: https://casbin.apache.org/docs/adapters · fetched 2026-10-05 · cd140120068d
- site_page: https://casbin.apache.org/docs/category/api · fetched 2026-10-05 · 7de9fa0590e6
- site_page: https://casbin.apache.org/docs/ide-plugins · fetched 2026-10-05 · 5a9e92f4f45a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| apache/casbin | main | 96 |
| apache/casbin-node-casbin | sdk | 91 |
| apache/casbin-jcasbin | sdk | 86 |
| apache/casbin-pycasbin | sdk | 85 |
| apache/casbin-Casbin.NET | sdk | 88 |
| apache/casbin-rs | sdk | 82 |
| apache/casbin-caddy-authz | plugin | 69 |
| apache/casbin-ent-adapter | plugin | 75 |
| apache/casbin-sqlx-adapter | plugin | 69 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem