@comity/address
v0.9.0
Published
Address abstractions for Comity domain modules.
Downloads
96
Readme
@comity/address
Address domain abstractions for Comity.
Purpose
Owns the address domain: the mutable Address entity, immutable snapshots, value objects, the repository contract, and the validator contract. Provides the canonical address representation reused across bounded contexts.
Scope
This package:
- ✅ defines the
Addressentity andAddressSnapshotvalue model - ✅ defines address value objects (
AddressId,AddressLine,AddressContact) - ✅ defines
AddressRepositoryandAddressValidatorcontracts - ✅ exposes creation and hydration types (
AddressCreate,AddressUpdate,AddressState)
This package does NOT:
- ❌ implement country-specific address models
- ❌ handle geography enrichment or formatting
- ❌ import validation libraries directly
- ❌ own persistence or lifecycle of other modules' entities
Public API
Address— mutable address entityAddressSnapshot— immutable point-in-time address typeAddressId,AddressLine,AddressContact— value objectsAddressCreate,AddressUpdate,AddressData,AddressState— creation and hydration typesAddressRepository— repository contractAddressValidator— validation contract
No exhaustive reference; see docs for constraints.
Documentation
- docs/overview.md
- docs/conventions.md
- docs/architecture.md
Related Packages
- @comity/primitives — foundational building blocks
- @comity/validation — shared validation contracts
Status
Stable
Review Completed: 2026-08-15 Reviewer: Hobiri MAGI (DeepSeek v4 Pro) Compliance Score: 95% (Green)
