nestjs-domain

Community

Anchor NestJS services with disciplined DDD

Authorjohnnystefan
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It keeps NestJS domain layers free of framework and persistence details, ensuring teams do not accidentally leak infrastructure into entities, value objects, and use cases while preserving tenant isolation.

Core Features & Use Cases

  • Resource Entity Pattern describes how to create entities with tenant IDs, state validation, primitive conversion helpers, and rich business methods without direct dependencies on NestJS or Prisma.
  • Immutable Value Objects enforce validation rules in their constructors so names, IDs, and statuses always stay valid and thread-safe within SaaS modules.
  • Repository Ports and Pure Use Cases lay out tenant-aware contracts and minimal orchestration logic so services such as auth, club, inventory, booking, and finance can avoid side effects while returning primitives.

Quick Start

Create a Resource entity using immutable value objects, a tenant-scoped repository, and a pure use case matching the described pattern.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: nestjs-domain
Download link: https://github.com/johnnystefan/test-saas-business/archive/main.zip#nestjs-domain

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.