The shared platform is the foundation layer every product (V1–V10) and every capability domain composes — documented once here and referenced everywhere, never re-documented per consumer (§5). These foundations are where cross-cutting concerns (identity, persistence, contracts, the BFF, the @oshun/* infrastructure) live as real, shared code rather than per-product reinvention.
OverviewThe layered shared foundation every product and domain composes.Shared Librarieslibs/shared — the domain-agnostic @oshun/* infrastructure libraries.Domain Orchestrationlibs/oshun — the domain service/orchestration libraries above the substrates.Contractslibs/contracts — the Zod contract surface every boundary validates against.BFF & GatewayThe backend-for-frontend layer that fronts domains for the product surfaces.Persistence & DataThe shared database, migration, residency, and persistence foundations.Auth & IdentityThe unified identity, session, consent, and authorization foundation.