8000 GitHub - letstri/permix: 🔒 Permix is a lightweight, framework-agnostic, type-safe permissions management library for TypeScript applications on the client and server sides.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ permix Public

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

License

Notifications You must be signed in to change notification settings

letstri/permix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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: {
    action: '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.

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

License

Stars

Watchers

Forks

Sponsor this project

 
0