Permix

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

import { createPermix } from 'permix'

interface Post {
  id: string
  published: boolean
}

// Create the permix instance
export const permix = createPermix<{
  post: ['create', { name: 'edit'; type: Post }, '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.