{
  "@context": "https://idsync.com/about#facts-json",
  "schema_version": 1,
  "generated_at": "2026-11-29T03:02:21.498Z",
  "vendor": {
    "slug": "casbin",
    "name": "Casbin",
    "url": "https://idsync.com/directory/casbin",
    "website_url": "https://casbin.apache.org/",
    "logo_url": "https://www.google.com/s2/favicons?sz=128&domain=casbin.org",
    "tagline": "Embeddable multi-language authorization library, now an Apache Incubator project",
    "editorial_status": "published",
    "claim_status": "unclaimed",
    "claimed_at": null,
    "last_updated": "2026-09-28"
  },
  "categories": [
    {
      "slug": "authorization",
      "name": "Authorization",
      "primary": true,
      "url": "https://idsync.com/directory/category/authorization"
    }
  ],
  "alternatives": [
    {
      "slug": "opa",
      "name": "Open Policy Agent (OPA)",
      "url": "https://idsync.com/directory/opa",
      "compare_url": "https://idsync.com/compare/casbin-vs-opa"
    },
    {
      "slug": "oso",
      "name": "Oso",
      "url": "https://idsync.com/directory/oso",
      "compare_url": "https://idsync.com/compare/casbin-vs-oso"
    },
    {
      "slug": "cerbos",
      "name": "Cerbos",
      "url": "https://idsync.com/directory/cerbos",
      "compare_url": "https://idsync.com/compare/casbin-vs-cerbos"
    },
    {
      "slug": "authzed",
      "name": "AuthZed (SpiceDB)",
      "url": "https://idsync.com/directory/authzed",
      "compare_url": "https://idsync.com/compare/authzed-vs-casbin"
    },
    {
      "slug": "openfga",
      "name": "OpenFGA",
      "url": "https://idsync.com/directory/openfga",
      "compare_url": "https://idsync.com/compare/casbin-vs-openfga"
    }
  ],
  "facts": {
    "observed": {
      "tagline": {
        "name": "Tagline",
        "value": "Embeddable multi-language authorization library, now an Apache Incubator project",
        "recorded_at": "2026-09-27",
        "source_url": "https://casbin.apache.org/"
      },
      "pricing_model": {
        "name": "Pricing model",
        "value": "free (open source)",
        "recorded_at": "2026-09-27",
        "source_url": "https://casbin.apache.org/"
      },
      "pricing_summary": {
        "name": "Pricing summary",
        "value": "Casbin is free under the Apache 2.0 licence with no paid edition, hosted tier or public price list. The project accepts voluntary donations via Open Collective (Backer USD 5/month, Sponsor USD 100/month, as published September 2026); these are contributions, not a commercial support contract.",
        "recorded_at": "2026-09-27",
        "source_url": "https://casbin.apache.org/"
      },
      "integrations": {
        "name": "Integrations",
        "value": [
          "Go",
          "Java",
          "Node.js",
          "Python",
          ".NET",
          "PHP",
          "Rust",
          "C++",
          "gRPC",
          "REST",
          "Kubernetes",
          "Kong",
          "Apache APISIX",
          "Traefik",
          "Nginx",
          "Kafka",
          "Redis",
          "etcd",
          "Docker",
          "PostgreSQL"
        ],
        "recorded_at": "2026-09-27",
        "source_url": "https://casbin.apache.org/docs/overview"
      },
      "deployment_type": {
        "name": "Deployment",
        "value": [
          "self_hosted"
        ],
        "recorded_at": "2026-09-27",
        "source_url": "https://casbin.apache.org/docs/overview"
      },
      "open_source_status": {
        "name": "Source model",
        "value": "open_source",
        "recorded_at": "2026-09-27",
        "source_url": "https://casbin.apache.org/docs/overview"
      },
      "docs_url": {
        "name": "Documentation",
        "value": "https://casbin.apache.org/docs/overview",
        "recorded_at": "2026-09-27",
        "source_url": "https://casbin.apache.org/docs/overview"
      },
      "website_url": {
        "name": "Website",
        "value": "https://casbin.apache.org/",
        "recorded_at": "2026-09-27",
        "source_url": "https://casbin.apache.org/"
      },
      "logo_url": {
        "name": "Logo",
        "value": "https://www.google.com/s2/favicons?sz=128&domain=casbin.org",
        "recorded_at": "2026-09-27",
        "source_url": "https://casbin.apache.org/"
      }
    },
    "owner_edited": {},
    "editorial": {
      "short_description": {
        "name": "Short description",
        "value": "Casbin is an Apache 2.0 open-source authorization library, embedded in-process, that evaluates ACL, RBAC, ABAC and other models defined in a model.conf file against policy rules loaded from CSV or a database adapter. It entered the Apache Incubator in February 2026.",
        "recorded_at": "2026-09-28",
        "source_url": null
      },
      "long_description": {
        "name": "Overview",
        "value": "Casbin is an open-source, in-process authorization library rather than a hosted service. Created by Yang Luo at Peking University in April 2017, it entered the Apache Software Foundation Incubator on 7 February 2026; the code and language ports now live under the apache/ GitHub organisation and casbin.org redirects to casbin.apache.org. Code is Apache 2.0 licensed. Casbin separates the access-control model from policy data: a model.conf file written in the PERM metamodel (Policy, Effect, Request, Matchers, plus an optional role_definition) declares how requests are matched, and a policy.csv or a storage adapter supplies the rules. One engine covers ACL, RBAC with role hierarchies and domains/tenants, ABAC via attribute expressions, RESTful path matching, deny-override and priority effects, plus BLP, Biba and UCON. Production-ready implementations exist for Go, Java, Node.js, PHP, Python, .NET, C++ and Rust, with experimental ports for Lua, Dart, Elixir and Delphi. Roughly 80 adapters (GORM, Xorm, MongoDB, Redis, DynamoDB, etcd, Firestore), watchers for multi-instance policy sync, a Raft-based dispatcher, an optional gRPC casbin-server, a Kubernetes admission webhook and dozens of web-framework middlewares surround the core. There is no commercial edition or paid tier; funding is via Open Collective donations, and Casbin does not handle authentication or user storage. Casdoor, a sibling IAM project from the same founder, is a separate product and was not part of the Apache donation.",
        "recorded_at": "2026-09-28",
        "source_url": null
      },
      "best_for": {
        "name": "Best for",
        "value": "Backend teams that want to embed a fast, model-driven RBAC/ABAC engine directly inside their own services in Go, Java, Node.js, Python, .NET, PHP or Rust without running a separate authorization server.",
        "recorded_at": "2026-09-28",
        "source_url": null
      },
      "when_to_choose": {
        "name": "When to choose",
        "value": "Choose Casbin when you want a permissively licensed, in-process authorization engine that speaks RBAC, RBAC-with-tenants and ABAC through one config format across several languages, and you are comfortable owning policy storage and distribution.",
        "recorded_at": "2026-09-28",
        "source_url": null
      },
      "when_not_to_choose": {
        "name": "When not to choose",
        "value": "Avoid Casbin if you need a turnkey managed authorization service with UI, audit and SLA, or Google Zanzibar-style relationship graphs at very large scale, where OpenFGA, SpiceDB (AuthZed) or Permit.io are a closer fit.",
        "recorded_at": "2026-09-28",
        "source_url": null
      },
      "strengths": {
        "name": "Strengths",
        "value": [
          "Apache 2.0 licence with Apache Software Foundation governance since February 2026 (Incubating), reducing single-vendor risk",
          "Single PERM model.conf format shared across eight production-ready language ports (Go, Java, Node.js, PHP, Python, .NET, C++, Rust)",
          "Broad model coverage in one engine: ACL, RBAC, RBAC with domains, ABAC, RESTful, deny-override, priority, BLP/Biba/LBAC, UCON",
          "In-process evaluation with sub-millisecond latency for small policy sets in Go (published benchmarks: ACL ~0.015 ms/op, RBAC ~0.022 ms/op)",
          "Roughly 80 storage adapters plus watchers for etcd, Redis, Kafka, NATS, RabbitMQ, PostgreSQL, ZooKeeper and cloud pub/sub",
          "Named adopters include VMware Harbor, Argo CD, Intel RMD and the Docker authz plugin",
          "Rich Management and RBAC APIs (AddPolicy, GetImplicitPermissionsForUser, EnforceEx with explanation) and an online model editor",
          "Long-running project (2017) with a 20k+ star Go repository and active 2026 releases (3.11.0, August 2026)"
        ],
        "recorded_at": "2026-09-28",
        "source_url": null
      },
      "limitations": {
        "name": "Limitations",
        "value": [
          "It is a library, not a platform: no bundled admin UI, audit log, policy versioning, or hosted control plane; you build or assemble those yourself",
          "Multi-instance consistency depends on wiring adapters, watchers or a dispatcher correctly; the docs warn dispatchers only sync changes made after all nodes start identical",
          "ABAC attributes can only be read from request elements, not policy elements, and JSON request parsing adds roughly 1.1-1.5x overhead",
          "Large policy sets are evaluated in memory (published Go benchmark ~24 ms/op at 110,000 RBAC rules) and there is no native relationship-graph engine of the Zanzibar type",
          "Apache Incubator status means governance and release processes are still maturing; feature parity and maintenance cadence vary across language ports, and there is no commercial support contract"
        ],
        "recorded_at": "2026-09-28",
        "source_url": null
      },
      "use_cases": {
        "name": "Use cases",
        "value": [
          "Embedding RBAC with role hierarchies inside a Go, Java, Node.js or Python monolith or microservice",
          "Multi-tenant SaaS authorization using RBAC with domains (per-tenant roles for the same user)",
          "Attribute-based checks such as resource ownership or age/region rules via ABAC matchers and eval()",
          "RESTful API authorization matching HTTP method plus path patterns (keyMatch, regexMatch)",
          "Kubernetes admission control policies via the Casbin K8s-Gatekeeper validating webhook",
          "API-gateway and reverse-proxy authorization plugins (Kong, Apache APISIX, OpenResty, Traefik, Caddy, Nginx)",
          "Keeping policies consistent across horizontally scaled instances with watchers or a Raft dispatcher",
          "Centralising enforcement behind a gRPC endpoint with the optional casbin-server when embedding is impractical"
        ],
        "recorded_at": "2026-09-28",
        "source_url": null
      },
      "company_size_fit": {
        "name": "Company size fit",
        "value": [
          "startup",
          "smb",
          "mid_market",
          "enterprise"
        ],
        "recorded_at": "2026-09-28",
        "source_url": null
      }
    },
    "ai_drafted": {}
  },
  "labels": {
    "observed": "Taken from the vendor's own published pages on the date shown. The link points at the page we read.",
    "owner_edited": "Changed by the verified vendor owner and reviewed by the IDSync editor before it went live.",
    "editorial": "Written or checked by the IDSync editor. The date is when the record was last saved.",
    "ai_drafted": "Drafted by a model from the vendor's pages and not yet confirmed by a person. Treat it as a starting point."
  },
  "dates_mean": "recorded_at is when the record was saved, never a verification date.",
  "paid_placements": {
    "sponsored": false,
    "featured_editorial": false,
    "policy": "https://idsync.com/sponsor#disclosure"
  },
  "attribution": {
    "cite_as": "IDSync. \"Casbin: vendor profile.\" https://idsync.com/directory/casbin. Facts as recorded 2026-09-28.",
    "operator": "TetraCore (TRZ Holdings, Inc.)",
    "about": "https://idsync.com/about"
  },
  "links": {
    "html": "https://idsync.com/directory/casbin",
    "llms_txt": "https://idsync.com/directory/casbin/llms.txt",
    "site_llms_txt": "https://idsync.com/llms.txt",
    "sitemap": "https://idsync.com/sitemap.xml"
  }
}