Permix is a lightweight, framework-agnostic, type-safe permissions management library for JavaScript applications on the client and server sides.
You can find the documentation here.
To quick start you only need to write the following code:
import { createPermix } from 'permix'
const permix = createPermix<{
post: ['read']
}>()
permix.setup({
post: {
read: true,
}
})
permix.check('post.read') // truePermix has other powerful features, so here's check out the docs or the examples directory.
Copy skills/ into your app’s .cursor/skills/ so AI assistants follow Permix patterns (setup, check, React, server middleware, SSR).
MIT License - see the LICENSE file for details