apache

    apache/casbin

    #149 this week

    Apache Casbin: an authorization library that supports access control models like ACL, RBAC, ABAC.

    authentication
    abac
    access-control
    acl
    apache
    auth
    Go
    Apache-2.0
    20.5K stars
    1.8K forks
    20.5K GitHub watchers
    Updated Oct 16, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    Ranks #2 among Authentication repositories tracked this week, and #2 over the last 30 days; #149 of 3,103 repositories GStars tracks this week (top 5%).

    1 release in the last 90 days, the latest 57 days ago, with 155 contributors on GitHub.

    Gained 21% fewer stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Implements a flexible authorization library supporting multiple access control models like ACL, RBAC, and ABAC for Go projects.
    • Enables dynamic and customizable access control policies through a unified model configuration, simplifying complex permission management.
    • Use for enforcing fine-grained role-based access control in multi-tenant SaaS applications with domain-specific permissions.
    • Use for implementing attribute-based access control where permissions depend on resource and user attributes in enterprise systems.
    • Use for managing RESTful API access with path and method-based rules in microservices architectures.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    News: still worry about how to write the correct Casbin policy? Casbin online editor is coming to help! Try it at: https://casbin.org/editor/

    Casbin is a powerful and efficient open-source access control library for Golang projects. It provides support for enforcing authorization based on various access control models.

    Build auth with fraud prevention, faster. Try Stytch for API-first authentication, user & org management, multi-tenant SSO, MFA, device fingerprinting, and more.

    Excerpt from the apache/casbin README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Jul 21: +5

    +189 stars over 89 days across 8 snapshot days; best day +5 on Jul 21.

    Forks

    1.8K+10

    Open issues

    39-38

    Compared with peers in Authentication

    Fastest-growing repositories GStars tracks in this cohort for the week of Oct 18, by 7-day star growth

    apache/casbin compared with Authentication repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    googleworkspace/cli31.8K+27475206 days ago
    supabase/supabase113.8K+07577 days ago
    better-auth/better-auth30.4K+0751 day ago
    apache/casbin20.5K+07557 days ago
    logto-io/logto14.8K+07510 days ago
    ory/kratos13.9K+075211 days ago
    Category median30.4K+075—

    Also by apache

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description