permix-getting-started
Installation
SKILL.md
Permix — getting started
Docs: https://permix.letstri.dev/docs/quick-start
Upgrading from v3? Use action tuples, not { action, dataType } — https://permix.letstri.dev/docs/migration-v3-to-v4
Install
pnpm add permix
# or npm install permix / yarn add permix
1. Define the permission schema (once)
Create a shared module (e.g. lib/permix.ts). The generic on createPermix<D>() is the source of truth for all paths and rules.
Nested resources (most common):