nestjs-crud

Generate RESTful CRUD endpoints for NestJS apps using @Crud decorators.

9|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/kodjunkie/nestjs-crud --skill nestjs-crud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs-crud
Source: https://github.com/kodjunkie/nestjs-crud/tree/main/skills/nestjs-crud
Command: npx skills add https://github.com/kodjunkie/nestjs-crud --skill nestjs-crud

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implements a comprehensive scaffold for RESTful CRUD in NestJS, enabling fast, consistent API surfaces by wiring @Crud() across adapters, auth, validation, and OpenAPI configuration.

Core Features & Use Cases

  • Auto-generates RESTful CRUD controllers and services from a single @Crud() decorator.
  • Supports four adapters (TypeORM, Drizzle, MikroORM, Prisma) with v2.1+ Prisma driver requirements and Node 22+.
  • Provides advanced query capabilities (filters, pagination, join handling) and Swagger/OpenAPI customization.
  • Supports overriding generated routes with @Override() and injecting parsed requests and bodies via @ParsedRequest()/@ParsedBody().

Quick Start

Install the required adapters and decorate your controllers with @Crud(...) to scaffold CRUD endpoints in your NestJS app.

Frequently Asked Questions about nestjs-crud

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-generate CRUD APIs in NestJS without writing boilerplate controllers?

Auto-generating CRUD APIs in NestJS is done by applying the @Crud() decorator to scaffold RESTful controllers and services instantly. It eliminates manual boilerplate by wiring ORM adapters, validation, and Swagger configuration from a single declaration.

Does NestJS CRUD support Prisma and Drizzle ORM adapters?

NestJS CRUD supports Prisma and Drizzle ORM adapters alongside TypeORM and MikroORM. Prisma integration requires v2.1+ driver requirements and Node 22+ to function properly within the auto-generated RESTful endpoints.

Can I override auto-generated CRUD routes in NestJS?

You can override auto-generated CRUD routes in NestJS using the @Override() decorator. It allows injecting parsed requests and bodies via @ParsedRequest() and @ParsedBody() to implement custom logic alongside DTO validation.

How do I add query filters and pagination to a NestJS REST API?

Add query filters and pagination to a NestJS REST API by utilizing the advanced query capabilities built into the @Crud() decorator. It automatically handles filtering, pagination, and join operations without requiring manual query parsing logic.

What is the best way to secure auto-generated CRUD endpoints in NestJS?

Secure auto-generated CRUD endpoints in NestJS by using the @CrudAuth() decorator. It applies strict field allowlists and transaction semantics for write operations to enforce access control across your RESTful API surface.