@domusjs/core - Introduction
The DomusJS Core Module provides the foundational building blocks for creating scalable, modular backend systems.
✅ It defines core architectural patterns like:
- Commands & Command Bus
- Queries & Query Bus
- Domain Events & Event Bus
- Value Objects
- Entities
- Results
- Repositories
- Error handling interfaces
✅ It enables developers to apply Clean Architecture and CQRS principles without locking them into a rigid framework.
✅ It ensures a clear separation of concerns, making your systems easier to test, extend, and maintain.
💡 What Does It Contain?
Section titled “💡 What Does It Contain?”The core module does not implement infrastructure — instead, it defines:
- Contracts (
interfaces
). - Patterns (
buses
,handlers
). - Domain modeling primitives (
entities
,value objects
). - Utility patterns (
Result
, error strategies).
This gives you:
- Freedom to plug in your own infrastructure (databases, message brokers, loggers).
- A clear, organized structure for evolving complex domains.