everest
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

everest

A AuthZ permissions UI package.

Overview

Everest is a module built using Typescript that allows for easy authorization in a project. Implement authZ in your project using Everest is extremely simple.

Abilities

Abilities refer to what type of action can be executed by a user. There are four abilities: create, read, update, delete.

Entities

Entities refer to the specific object on which the user can perform a specific ability.

Qualifications

Qualifications refer to specific criteria that determine whether the user qualifies to perform an ability on an entity.

SecurityContexts

SecurityContexts are the objects that group abilities, entities and qualifications into one object which is then validated by the module.

Easy-to-Read

This API has been designed to read easily. For example, one would say: "Billy can read a list of drivers given that they are in the city of New York". To put this into code using the API, it would look something like this:

const result = new Everest(user).can("read").on("driver").with([{ field: "city", value: "New York"}]).check();

Readme

Keywords

Package Sidebar

Install

npm i everest

Weekly Downloads

1

Version

0.1.0

License

ISC

Unpacked Size

17 kB

Total Files

13

Last publish

Collaborators

  • herco