Casbin
An authorization library that supports access control models like ACL, RBAC, ABAC in Golang.
Why consider Casbin?
Casbin is a high-performance authorization and access control library written in Go (with ports in Java, Node, Python, Rust, C++). Using the PERM metamodel (Policy, Effect, Request, Matchers), Casbin enforces ACL, RBAC, ABAC, and RESTful routing rules across enterprise APIs.
Learn Casbin by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide2 sections
Overview of Casbin
Casbin decouples authorization logic into declarative configuration files evaluated at sub-microsecond speeds.
Quickstart
go get github.com/casbin/casbin/v2Casbin is licensed under the Apache License Version 2.0.
Related tools
More options with a similar category or technology profile.
diskus
Minimal, fast alternative to du -sh written in Rust using multi-threaded directory traversal.
peco
Simplistic interactive filtering tool for Unix pipelines, process lists, and file trees.
Dapr CLI
Command-line tool for managing Dapr distributed application runtime environments and sidecars.
Freeze
Generate beautiful image screenshots and SVGs of code snippets and terminal outputs.