objection-authorize
nestjs-objection
objection-authorize | nestjs-objection | |
---|---|---|
1 | 2 | |
75 | 135 | |
- | - | |
7.2 | 9.6 | |
over 1 year ago | 3 days ago | |
JavaScript | TypeScript | |
GNU Lesser General Public License v3.0 only | Apache License 2.0 |
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.
objection-authorize
-
Casbin: An authorization library that supports access control models like ACL, RBAC, ABAC in Node.js
Currently, I have managed to integrate casl into the objection ORM (see: plugin), but it’s kinda hard to wrap my head around casbin due to:
nestjs-objection
-
Exploring the repository pattern with TypeScript and Node
Next, let’s set up the database for our newly created Nest application. I’ll be using PostgreSQL, but you can use any of the databases Knex supports. To interact with our database, we’ll be using Objection.js, which is an ORM for Node.js built on top Knex. For this tutorial, we’ll be using Nest Objection, a Nest module for Objection.
- Raw SQL or ORM?
What are some alternatives?
CASL - CASL is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access
typed-knex - A TypeScript wrapper for Knex.js
accesscontrol - Role and Attribute based Access Control for Node.js
nest-repository-pattern
node-casbin - An authorization library that supports access control models like ACL, RBAC, ABAC in Node.js and Browser
knex-types - Generate TypeScript definitions (types) from a PostgreSQL database schema.
orbit-db-access-controllers - Access Controllers for OrbitDB
knex-relay-cursor-pagination - Easy Relay cursor-pagination for Knex queries
sapper-rbac - RBAC for Sapper
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
Casbin.NET - An authorization library that supports access control models like ACL, RBAC, ABAC in .NET (C#)
MikroORM - TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, MS SQL Server, PostgreSQL and SQLite/libSQL databases.