nestjs-rbac
Provides a simple, declarative role‑based access control (RBAC) layer you can drop into any NestJS app.
- •You need to protect API endpoints based on user roles and permissions.
- •Your team wants a single source of truth for roles that can be loaded from a DB or static file.
- •You already use NestJS guards/decorators and want a ready‑made RBAC guard instead of writing one from scratch.
curl -H "Authorization: Bearer <jwt>" http://localhost:3000/users/123 # will be allowed only if the JWT's user has the 'admin' role or the 'read:profile' permission defined in your RoleProvider
Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.
Installs with a command or two; your AI agent can do it for you.
mkdir -p ~/.claude/skills/nestjs-rbac && curl -fsSL https://workflowstacks.com/api/skills/nestjs-rbac/claude-skill -o ~/.claude/skills/nestjs-rbac/SKILL.mdOpens the app with this repo with the prompt ready to go — no copy-paste needed.
Nestjs-rbac is a small TypeScript project (~650 lines across 24 code files, plus 17 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit 5 months ago, Other license, has a test suite.
- 1README.mdStart here — what it does and how to install it
- 2AGENTS.mdThe instructions the AI actually follows
- 3index.jsWhere the program starts running
- 4package.jsonDependencies and the commands it exposes
- 5src/index.tsInside src/ — the main logic begins here
Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.
Installs with a command or two; your AI agent can do it for you.
mkdir -p ~/.claude/skills/nestjs-rbac && curl -fsSL https://workflowstacks.com/api/skills/nestjs-rbac/claude-skill -o ~/.claude/skills/nestjs-rbac/SKILL.mdOpens the app with this repo with the prompt ready to go — no copy-paste needed.
Are you the creator of this tool? and earn 85% of every sale.
Show it off in your README:
[](https://workflowstacks.com/skills/nestjs-rbac?utm_source=github&utm_medium=badge)The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.
Related skills
More ai-agent tools founders pair with this one.