1.0.5 β€’ Published 5 months ago

rolebaker v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

RoleBaker

I’ve spent countless hours digging through code, tracing permissions, and trying to figure out who can do what, only to end up frustrated. That’s why I built this libraryβ€”to take the guesswork out of access control by providing a structured way to define and enforce permissions while automatically generating clear documentation for role-based rules.

RoleBaker is a flexible library for handling Attribute-Based Access Control (ABAC) with type safety in a framework-agnostic way. It simplifies managing user permissions and generating automatic documentation, providing a clear and structured approach to handling user roles and resource actions.

Pros

  • πŸ”’ Type-Safe Access Control – Prevent runtime errors with strongly typed roles and actions.
  • πŸ“š Auto-Generated Documentation – Easily generate clear documentation for roles and permissions.
  • 🌍 Framework-Agnostic – Works seamlessly with any JavaScript/TypeScript framework.
  • βš–οΈ Single & Multi-Role Support – Supports both single-role users and multi-role configurations.
  • πŸ›‘οΈ Attribute-Based Access Control (ABAC) – Define permissions based on roles and dynamic attributes.
  • πŸ”„ Flexible Permission Logic – Supports both simple boolean checks and complex function-based rules.
  • βœ… Highly Tested – Ensures reliability and stability with comprehensive test coverage.

πŸ“¦ Installation

To install RoleBaker, you can use npm or yarn:

npm install rolebaker

or

yarn add rolebaker

πŸ“ Usage & Documentation

Find usage examples for single-role and multi-role models in the official documentation:

πŸ”— RoleBaker Documentation

Doc Image

πŸ“– Framework-Specific Guides

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago