nestjs-objection
objection-authorize
nestjs-objection | objection-authorize | |
---|---|---|
2 | 1 | |
135 | 75 | |
- | - | |
9.6 | 7.2 | |
5 days ago | over 1 year ago | |
TypeScript | JavaScript | |
Apache License 2.0 | GNU Lesser General Public License v3.0 only |
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.
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?
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:
What are some alternatives?
typed-knex - A TypeScript wrapper for Knex.js
CASL - CASL is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access
nest-repository-pattern
accesscontrol - Role and Attribute based Access Control for Node.js
knex-types - Generate TypeScript definitions (types) from a PostgreSQL database schema.
node-casbin - An authorization library that supports access control models like ACL, RBAC, ABAC in Node.js and Browser
knex-relay-cursor-pagination - Easy Relay cursor-pagination for Knex queries
orbit-db-access-controllers - Access Controllers for OrbitDB
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
sapper-rbac - RBAC for Sapper
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.
Casbin.NET - An authorization library that supports access control models like ACL, RBAC, ABAC in .NET (C#)