Gatehouse-TS: A Flexible, Zero-Dependency Authorization Library in TypeScript
2025-04-13
Gatehouse-TS is a flexible, zero-dependency authorization library written in TypeScript, combining role-based (RBAC), attribute-based (ABAC), and relationship-based (ReBAC) access control policies. A port of the popular Rust Gatehouse library, it boasts a user-friendly API, supports policy composition with logical operators, offers detailed evaluation tracing for debugging, and provides a fluent builder API for creating custom policies. Its lightweight design and comprehensive documentation make it easily embeddable and adaptable to various projects.