Documentation.
Guides and reference for PermX — structured RBAC for Node.js and React. Permission keys carry meaning, roles inherit with cycle protection, and UI mappings ship on every permission so your backend and frontend share one vocabulary.
Guides
tutorial · 15 min
Getting Started
From zero to a working RBAC system in five steps. Install, define typed permissions, create the engine, protect routes, gate the UI.
Read guide →
API reference
Full API documentation lives in the repository README alongside the source. Both packages publish TypeScript types — install and your editor resolves signatures, JSDoc, and inline examples.
- @permx/core README — engine, mongoose adapter, express middleware, DataProvider interface
- @permx/react README — provider, gates, hooks, and store
- Examples directory — Express, Hono, Next.js App Router, and a full React demo