Pundit VS banken

Compare Pundit vs banken and see what are their differences.


Minimal authorization through OO design and pure Ruby classes (by varvet)


Simple and lightweight authorization library for Rails (by kyuden)
Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • InfluxDB - Access the most powerful time series database as a service
  • SaaSHub - Software Alternatives and Reviews
Pundit banken
21 0
7,897 266
0.6% -
1.0 0.0
14 days ago over 1 year ago
Ruby Ruby
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of Pundit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-20.
  • Protect your GraphQL data with resource_policy
    3 projects | dev.to | 20 Feb 2023
    Expressing authorization rules can be a bit challenging with the use of other authorization gems, such as pundit or cancancan. The resource_policy gem provides a more concise and expressive policy definition that uses a simple block-based syntax that makes it easy to understand and write authorization rules for each attribute.
  • Permissions (access control) in web apps
    7 projects | dev.to | 30 Nov 2022
    https://github.com/varvet/pundit Popular open-source Ruby library focused around the notion of policies, giving you the freedom to implement your own approach based on that.
  • YAGNI exceptions
    3 projects | reddit.com/r/programming | 17 Oct 2022
    PS If you do mobile / web work (or something else with "detached" UI), I find that declarative access control rules are far superior to imperative ones, because they can be serialized and shipped over the wire. For example, backend running cancancan can be easily send the same rules to casl on the frontend, while if you used something like pundit to secure your backend, you either end up re-implementing it in the frontend, or sending ton of "canEdit" flags with every record.
  • Best practice for displaying info to different user roles?
    3 projects | reddit.com/r/rails | 4 Oct 2022
    You can use a combination of an authorization gem (https://github.com/varvet/pundit) and decorators (https://www.rubyguides.com/2018/04/decorator-pattern-in-ruby/) if you want to extend functionality based on their roles.
  • Concerns about authorization when going in production
    2 projects | reddit.com/r/rails | 16 Aug 2022
    Use Action Policy or Pundit, and write tests for your policies. Authz is worth testing with near complete coverage.
  • Complete Guide To Managing User Permissions In Rails Apps
    4 projects | dev.to | 14 Apr 2022
    Pundit: Pundit is a gem that uses simple Ruby objects, and it is probably the simplest policy gem we will cover. Is simple to use, has minimal authorization, and is similar to using pure Ruby. With 7.3k stars on GitHub, it is currently the most popular policy gem.
  • Authorization and Policy Scopes for Phoenix Apps
    3 projects | dev.to | 16 Nov 2021
    If you come from the Rails world, you might be familiar with some gems that provide APIs to handle this, the most popular ones being cancancan and pundit.
  • Conditional Rendering With Turbo Stream Broadcasts
    2 projects | dev.to | 16 Aug 2021
    A very common pattern in Rails development is for a view to contain checks for things like current_user.can?(:take_some_action). These types of checks are common, especially in B2B applications that implement role-based permissions powered by a solution like Pundit.
  • Rails application boilerplate for fast MVP development
    63 projects | dev.to | 6 Aug 2021
    authorization with pundit
  • Frontend based access control?
    2 projects | reddit.com/r/CodingHelp | 29 Jul 2021
    Right now, all access control is done using Pundit and since most things are server side rendered, not only are the API endpoints authorized by Pundit policies, but some UI components conditionally render based on these policies as well.


Posts with mentions or reviews of banken. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning banken yet.
Tracking mentions began in Dec 2020.

What are some alternatives?

When comparing Pundit and banken you can also consider the following projects:

CanCanCan - The authorization Gem for Ruby on Rails.

rolify - Role management library with resource scoping

Action Policy - Authorization framework for Ruby/Rails applications

Devise - Flexible authentication solution for Rails with Warden.


Declarative Authorization - An unmaintained authorization plugin for Rails. Please fork to support current versions of Rails

oso - Oso is a batteries-included framework for building authorization in your application.

Consul - Scope-based authorization for Ruby on Rails.

AccessGranted - Multi-role and whitelist based authorization gem for Rails (and not only Rails!)

acl9 - Yet another role-based authorization system for Rails

flipper - :dolphin: Beautiful, performant feature flags for Ruby.