CASL

CASL is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access (by stalniy)

CASL Alternatives

Similar projects and alternatives to CASL

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better CASL alternative or higher similarity.

CASL reviews and mentions

Posts with mentions or reviews of CASL. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-14.
  • How to Do Authorization - A Decision Framework: Part 1
    7 projects | dev.to | 14 Dec 2023
    You can find numerous libraries dedicated to authorization, depending on the language you use. For example, CASL is a Javascript library that helps you model flexible authorization schemes utilizing a set of declarative APIs. The “give me the list of Article readable to the current user” problem can be modeled and queried like the following:
  • YAGNI exceptions
    3 projects | /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.
  • I made a complete Team support in React for my App: a Multi-tenancy SaaS. Live demo in the comments
    2 projects | /r/reactjs | 24 Apr 2022
    Do you have any experience? How does it compare to other alternative like https://casbin.org, https://casl.js.org? There are tons of libraries, actually I'm little bit lost.
  • Decoupling Authorization Logic from Code in NodeJS
    4 projects | /r/node | 29 Mar 2022
  • Rest API : After CRUD
    6 projects | dev.to | 1 Mar 2022
  • Building RBAC in Node
    7 projects | dev.to | 3 Feb 2022
    CASL
  • CASL. Pursuing Perfection I: Why?
    6 projects | dev.to | 23 Oct 2020
    The long standing issue regarding SQL integration was created 2 months after the initial CASL's release and was not addressed for years. To understand why and why it was a challenge, we need to go back to the days when CASL was designed.
  • A note from our sponsor - WorkOS
    workos.com | 16 Apr 2024
    The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →

Stats

Basic CASL repo stats
15
5,552
8.7
8 days ago

stalniy/casl is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of CASL is JavaScript.

The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com