tsentials-entity

Community

Build DDD entities with audit and domain events.

Authorsenrecep
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Create consistent DDD aggregate roots without boilerplate for audit fields, soft deletion lifecycle, or domain event collection and dispatch.

Core Features & Use Cases

  • Aggregate root audit tracking: Use createEntityBase() to add created/updated timestamps and user attribution alongside a domain events queue.
  • Soft deletion lifecycle: Use createSoftDeletable() to support isDeleted/isHardDeleted plus deletedAt/deletedBy, including restore.
  • Domain events via composition: Define and raise domain events from your entity methods using a DomainEvent marker interface with occurredOn.

Quick Start

Create an aggregate root by composing createEntityBase() and createSoftDeletable() inside your entity, then delegate getters and methods to expose audit, domainEvents, and soft-delete behavior.

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: tsentials-entity
Download link: https://github.com/senrecep/tsentials/archive/main.zip#tsentials-entity

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.