qmetrics.net

CASL

Isomorphic TypeScript authorization for apps and APIs

CASL limits which resources a user may access using declarative rules shared across frontend, backend, and database layers.

Overview

CASL is an isomorphic JavaScript authorization library written in TypeScript. It expresses what actions a user may take on which resources, scaling from simple capability checks to subject and attribute rules inspired by the cancan pattern.

Abilities are built from actions, subjects, optional conditions, and optional field restrictions. You define rules once, then call can and cannot on an Ability instance to gate UI, services, and queries consistently.

The core package stays small and tree-shakable, with separate integrations for Mongoose, Prisma, React, Vue, and Angular named in the ecosystem table. Rules can be serialized so permissions travel between UI and API or microservices.

Documentation on the project site walks through evolving from claims to actions, RBAC, ABAC, and relationship-aware checks using the same model over time.

Key features

  • Declarative ability rules
  • RBAC and ABAC support
  • Frontend and backend use
  • TypeScript-first APIs
  • Tree-shakable core package
  • Serializable permission rules
  • ORM integration packages
  • Framework helper packages

Use cases

  • Shared UI and API permissions
  • Blog and content access control
  • Tenant-scoped resource policies
  • MongoDB query authorization

Tags

Similar software

Sa-Token

Java lightweight permission and session framework

Sa-Token adds login, permission checks, SSO, OAuth2, and microservice gateway auth to Java web projects with minimal boilerplate.

★ 19.1k⟳ 10 days agoApache-2.0

Node Jsonwebtoken

Node.js library for signing and verifying JSON Web Tokens

jsonwebtoken implements JWT creation and verification for Node.js using HMAC, RSA, ECDSA, and related algorithms. It exposes sign, verify, and decode helpers built on node-jws.

★ 18.2k⟳ 5 months agoMIT
Application SecurityDesktop/CLI app

OAuth2 Proxy

OAuth2 and OIDC reverse proxy authentication

OAuth2 Proxy sits before web apps as reverse proxy or middleware, sends users through OAuth2 or OIDC login, supports many identity providers, and can forward user details to upstream apps as headers

★ 15.4k⟳ 19 days agoMIT

SuperTokens

Open-source user login and session management

SuperTokens adds sign-up, sign-in, and session handling to applications through frontend SDKs, backend SDKs, and a core HTTP auth service.

★ 15.3k⟳ todayApache-2.0 · open core
Open Source Alternative to:Amazon CognitoAuth0+2

Casdoor

Self-hosted identity provider with SSO and agent MCP gateway

Casdoor is an IAM server with a web console for users, apps, and providers. It issues tokens via OAuth, OIDC, SAML, CAS, LDAP, SCIM, and WebAuthn, and exposes an MCP gateway for AI tooling

★ 15k⟳ 2 days agoApache-2.0
Open Source Alternative to:Amazon CognitoAuth0+3

OpenFGA

Fine-grained authorization engine inspired by Zanzibar

OpenFGA is an authorization and permission engine with HTTP and gRPC APIs, pluggable storage, and a modeling playground for relationship-based access checks.

★ 6.2k⟳ 7 days agoApache-2.0
Open Source Alternative to:PlainID