Skip to content

Latest commit

 

History

486 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Permix

npm version You need Permix

Permix is a lightweight, framework-agnostic, type-safe permissions management library for JavaScript applications on the client and server sides.

Documentation

You can find the documentation here.

Example

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') // true

Permix has other powerful features, so here's check out the docs or the examples directory.

Agent skills

Permix ships versioned agent skills inside the npm package. Install permix, then copy the skill folders you want out of node_modules/permix/skills/ into your agent config directory. They update when you update the package.

License

MIT License - see the LICENSE file for details

About

🔒 Permix is a lightweight, framework-agnostic, type-safe permissions management library for TypeScript applications on the client and server sides.

Topics

Resources

Stars

619 stars

Watchers

1 watching

Forks

Sponsor this project

Used by

Contributors

Languages