# RolifyCommunity/rolify

Role management library with resource scoping

Repository: https://github.com/RolifyCommunity/rolify
Canonical: https://ross.abutalabs.com/products/rolify
Homepage: https://rolifycommunity.github.io/rolify/
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-01-24T20:26:03+00:00

## Health v2 (maintenance only)
Score: 52/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 64, release rhythm 8, longevity 100
- inputs: {"age_days": 5570, "days_push": 221, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3177, forks 396 (observed 2026-08-28T04:07:47.652883+00:00)

## What it is
rolify is a Ruby gem providing simple role management for Rails applications, with support for scoping roles to specific resource objects. It does not enforce authorization itself but integrates with gems like CanCanCan, Pundit, Devise, and AuthLogic.

## Use cases
- manage user roles in a rails app
- scope roles to specific resources like forums
- check if a user has a role on a resource
- integrate roles with cancancan or pundit
- add role-based permissions to activerecord or mongoid models

## When to avoid
- you need full authorization enforcement, not just role storage
- you are not using Rails with ActiveRecord or Mongoid
- you need a batteries-included access control system

## Facets
- artifact type: library
- maturity: stable
- function: authorization, auth
- domain: web-development, backend, security
- platform: ruby
- tags: roles, rbac, rails, activerecord, mongoid, cancancan, devise, web-server

## Member repositories
- RolifyCommunity/rolify (main) score 52

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:47.652883+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:25:07.991453+00:00, confidence not recorded.
  - readme: https://github.com/RolifyCommunity/rolify (fetched 2026-08-28T04:07:47.652883+00:00, sha aeefb96c3fc6)
  - homepage: https://rolifycommunity.github.io/rolify/ (fetched 2026-08-29T09:39:16.786968+00:00, sha d237b2a71961)
- Data as of 2026-08-30T08:39:29.467469+00:00.
