New advertisers: 50% off your first month with code FIRSTMONTHSee slots
giuseppe-trisciuoglio avatar

Nestjs Drizzle Crud Generator

Generates NestJS CRUD modules with Drizzle ORM, Zod-validated DTOs, and Jest tests from a field list.

skills.sh installs
3.8K
GitHub stars
372
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers feature modules, controllers, services, DTOs, Drizzle schemas, and unit tests for a single entity, generated by generate_crud.py
  • Includes CRUD endpoints for POST, GET, PATCH, and DELETE, with pagination, filtering, and soft delete via deletedAt
  • Enforces soft delete only, so hard deletes need manual changes, and generated code ships without auth guards
  • Designed for NestJS projects in a monorepo layout that use Drizzle, drizzle-zod, and nestjs-zod

Install

$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill nestjs-drizzle-crud-generator -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

NestJS Drizzle CRUD Generator

Overview

Automatically generates complete CRUD modules for NestJS applications using Drizzle ORM. Creates all necessary files following the zaccheroni-monorepo patterns: feature modules, controllers, services, Zod-validated DTOs, Drizzle schemas, and Jest unit tests.

When to Use

  • Creating new entity modules with full CRUD endpoints
  • Building database-backed features in NestJS
  • Generating type-safe DTOs with Zod validation
  • Adding services with Drizzle ORM queries
  • Creating unit tests with mocked database

Instructions

Step 1: Define Entity Fields

Gather entity definition:

  • Entity name (e.g., user, product, order)
  • List of fields with types (see references/field-types.md for supported types)
  • Required fields vs optional fields with defaults

Step 2: Run the Generator

python scripts/generate_crud.py --feature <name> --fields '<json-array>' --output <path>

Step 3: Verify Generated Files

Check that all expected files were created:

ls -la libs/server/<feature-name>/src/lib/

Expected structure:

controllers/
services/
dto/
schema/
<feature>-feature.module.ts

Details

Repository
github.com/giuseppe-trisciuoglio/developer-kit
Categories
Backend & APIs, Databases
First seen
May 16, 2026

More from giuseppe-trisciuoglio/developer-kit

All 95

Similar to Nestjs Drizzle Crud Generator

More Backend & APIs