shared-foundation

Shared business logic and API contracts for backend and client applications, enabling code reuse, consistent data models, and centralized domain rules across service boundaries.

Android JVMJVMKotlin/NativeWasm
GitHub stars0
Dependents0
LicenseApache License 2.0
Creation date6 months ago

Last activity3 months ago
Latest release0.0.38 (3 months ago)

shared-foundation

A Kotlin Multiplatform (KMP) library providing shared business logic and API contracts between Backend and Client applications (Mobile, Web, Desktop).

Maven Central

Installation

Use the BOM and add only the modules you need:

// build.gradle.kts
dependencies {
    implementation(platform("io.github.mudrichenkoevgeny:shared-foundation-bom:0.0.38"))
    implementation("io.github.mudrichenkoevgeny:shared-foundation-core-common")
    implementation("io.github.mudrichenkoevgeny:shared-foundation-core-security")
    implementation("io.github.mudrichenkoevgeny:shared-foundation-feature-user")
    // ... add other shared-foundation modules as required
}

With a version catalog: declare BOM and module aliases in gradle/libs.versions.toml, then use implementation(platform(libs.shared.foundation.bom)) and implementation(libs.shared.foundation.core.common) (and other aliases as needed).

Modules

Published artifacts (versions aligned via the BOM):

  • shared-foundation-core-common — shared errors, network contracts, WebSocket envelopes, common DTOs.
  • shared-foundation-core-security — password policy, security settings payloads/domain, validation, mappers, WebSocket type strings (module README).
  • shared-foundation-core-settings — global settings payloads/domain, field names, WebSocket type strings (module README).
  • shared-foundation-core-audit — audit events, filters, sort keys, payloads, mappers (module README).
  • shared-foundation-feature-securityapi — security settings HTTP routes + permission code (module README).
  • shared-foundation-feature-settingsapi — global settings HTTP routes + permission code (module README).
  • shared-foundation-feature-auditapi — management audit HTTP routes + permission codes (module README).
  • shared-foundation-feature-user — comprehensive contracts for authentication, multifactor security (TOTP), session management, and user identifiers (self-service & management) (module README).
  • shared-foundation-bom — dependency constraints for the modules above.

Samples & Usage

Check out these projects to see the library in action:

  • Backend Platform SDK — A server-side library that uses this library for server-side development.
  • KMP Platform SDK — A Kotlin Multiplatform library that uses this library for client-side development.
Android JVMJVMKotlin/NativeWasm
GitHub stars0
Dependents0
LicenseApache License 2.0
Creation date6 months ago

Last activity3 months ago
Latest release0.0.38 (3 months ago)

shared-foundation

A Kotlin Multiplatform (KMP) library providing shared business logic and API contracts between Backend and Client applications (Mobile, Web, Desktop).

Maven Central

Installation

Use the BOM and add only the modules you need:

// build.gradle.kts
dependencies {
    implementation(platform("io.github.mudrichenkoevgeny:shared-foundation-bom:0.0.38"))
    implementation("io.github.mudrichenkoevgeny:shared-foundation-core-common")
    implementation("io.github.mudrichenkoevgeny:shared-foundation-core-security")
    implementation("io.github.mudrichenkoevgeny:shared-foundation-feature-user")
    // ... add other shared-foundation modules as required
}

With a version catalog: declare BOM and module aliases in gradle/libs.versions.toml, then use implementation(platform(libs.shared.foundation.bom)) and implementation(libs.shared.foundation.core.common) (and other aliases as needed).

Modules

Published artifacts (versions aligned via the BOM):

  • shared-foundation-core-common — shared errors, network contracts, WebSocket envelopes, common DTOs.
  • shared-foundation-core-security — password policy, security settings payloads/domain, validation, mappers, WebSocket type strings (module README).
  • shared-foundation-core-settings — global settings payloads/domain, field names, WebSocket type strings (module README).
  • shared-foundation-core-audit — audit events, filters, sort keys, payloads, mappers (module README).
  • shared-foundation-feature-securityapi — security settings HTTP routes + permission code (module README).
  • shared-foundation-feature-settingsapi — global settings HTTP routes + permission code (module README).
  • shared-foundation-feature-auditapi — management audit HTTP routes + permission codes (module README).
  • shared-foundation-feature-user — comprehensive contracts for authentication, multifactor security (TOTP), session management, and user identifiers (self-service & management) (module README).
  • shared-foundation-bom — dependency constraints for the modules above.

Samples & Usage

Check out these projects to see the library in action:

  • Backend Platform SDK — A server-side library that uses this library for server-side development.
  • KMP Platform SDK — A Kotlin Multiplatform library that uses this library for client-side development.