Framework-agnostic Domain-Driven Design primitives for TypeScript.
This library provides foundational building blocks for implementing rich domain models using Domain-Driven Design (DDD) principles.
Immutable Uuid value object (v7, v4 compatible)
Uuid
DomainEvent interface
DomainEvent
Generic AggregateRoot<T> base class
AggregateRoot<T>
Event recording pattern
Clean factory method enforcement
Zero framework coupling
It is:
Lightweight
Infrastructure-free
Fully testable
Framework-agnostic
Compatible with NestJS, Express, or standalone Node.js services
Last updated 11 minutes ago
Was this helpful?