:: features
Why Guard?
10 Policy Kinds
Roles, permissions, attributes, relationships, signatures, and composable policy combinators.
Compile-Time Policies
Policy composition is validated at the type level. Invalid policy trees are TypeScript errors.
Audit Trails
Every authorization decision is recorded with full context. Who, what, when, and why.
Batch Evaluation
Evaluate multiple policies in a single pass. Optimize authorization checks for bulk operations.
React Hooks
useGuard, usePolicies, and conditional rendering based on authorization state.
GxP Compliant
Designed for regulated environments. Full traceability and deterministic evaluation.
:: ecosystem
Part of the HexDI Stack
Guard integrates seamlessly with the HexDI dependency injection ecosystem. Use it standalone or compose it with other libraries.
Explore HexDI