Permix

A lightweight, framework-agnostic, type-safe permissions management library for client-side and server-side JavaScript applications.

// Init wherever you want
import { createPermix } from 'permix'
 
interface Post {
  id: string
  published: boolean
}
 
export const permix = createPermix<{
  post: {
    dataType: Post
    action: 'create' | 'update' | 'delete'
  }
}>()
🔒

Type-safe

Permix is built with TypeScript in mind, providing full type safety and autocompletion for your permissions system.

🌐

Framework Agnostic

Use Permix with any JavaScript framework or runtime - it works everywhere from React to Node.js.

🛠️

Simple DX

Permix provides an intuitive API that makes managing permissions straightforward and easy to understand.