What is rich-domain?
@woltz/rich-domain is a TypeScript library that provides building blocks for implementing Domain-Driven Design (DDD) patterns with minimal boilerplate and maximum type safety.Type-Safe
Full TypeScript support with inference for field paths, filters, and operations
Validation Agnostic
Works with Zod, Valibot, ArkType, or any Standard Schema compatible library
Automatic Change Tracking
Track changes across nested entities and collections without boilerplate
ORM Independent
Use with Prisma, Drizzle, TypeORM, or any persistence layer
Skills
Woltz/rich-domain provides skills that can be added to your AI coding assistant to help it understand rich-domain best practices and implementation patterns.Quickstart without ORM
Build your first aggregate from scratch without relying on an ORM.
Quickstart with Prisma
Build your first aggregate using we Prisma Adapter.
Quickstart with TypeORM
Build your first aggregate using we TypeORM Adapter.