examples

Access-control policies

An authorization policy as a query: allow statements are ORed, a NOT group carves out a deny (payroll is owner-only), and office hours apply to everything. The simulator evaluates a request and explains which top-level statement passed or failed.
  • platform
  • NOT groups
  • compile

Add it to your project

One command installs this example with every file and coss ui component it needs, into components/qnot. The code is yours to change; it's MIT. See Install with shadcn.

pnpm dlx shadcn@latest add https://coss.com/qnot/r/access-policy.json

Source

6 files, exactly what installs