A next-generation Role-Based Access Control SDK that brings elegant permission management to your applications.
Get Started →Create and manage complex role hierarchies with intuitive APIs and TypeScript support.
Implement flexible permission schemes that adapt to your application's evolving needs.
import { RBAC } from 'permify';
const rbac = new RBAC();
// Define your permission structure
rbac.addRole('admin', ['read', 'write', 'delete']);
rbac.addRole('editor', ['read', 'write']);
// Assign roles dynamically
rbac.assignRoleToUser('user1', 'admin');
// Check permissions with type safety
const canDelete = rbac.userHasPermission('user1', 'delete');
console.log(canDelete); // true
Transform your application's permission management in minutes.
View on npm →We’re building Permify to simplify access control for everyone. Your contributions can make it even better!
Contribute on GitHub →Have ideas, feature requests, or improvements? Join the discussion and help us shape the future of Permify.