fastify-casbin-rest
JSON →A Fastify plugin that integrates Casbin authorization using a RESTful model. As of version 4.0.0, it builds on top of fastify-casbin to enforce access control based on subject, object, and action extracted from HTTP requests. It provides route-level enabling, customizable extractors, and hooks for allow/deny actions. Released by NearForm, it is actively maintained with TypeScript definitions included. Unlike generic Casbin adapters, this plugin is opinionated for REST APIs and tightly couples with Fastify's lifecycle for minimal boilerplate.
Resources
packagefastify-casbin-rest ↗
API endpoints
full doc /v1/registry/fastify-casbin-rest