shared-foundation
0.0.38indexedShared business logic and API contracts for backend and client applications, enabling code reuse, consistent data models, and centralized domain rules across service boundaries.
Shared business logic and API contracts for backend and client applications, enabling code reuse, consistent data models, and centralized domain rules across service boundaries.
A Kotlin Multiplatform (KMP) library providing shared business logic, API contracts, WebSocket envelopes, error codes, and permission models between Backend and Client applications (Mobile, Web, Desktop).
iosArm64, iosSimulatorArm64)Use the BOM and add only the modules you need:
// build.gradle.kts
dependencies {
implementation(platform("io.github.mudrichenkoevgeny:shared-foundation-bom:0.0.47"))
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).
For TypeScript and React applications, install the generated Zod schemas, routes, and branded types from npm:
pnpm add @mudrichenkoevgeny/shared-foundation
Published artifacts (versions aligned via the BOM):
Open vs Management), WebSocket wire contract, and error handling taxonomy.Check out these projects to see the library in action:
@mudrichenkoevgeny/shared-foundation for Zod schema validation, API routes, and security policies.This project is licensed under the Apache License 2.0 — see the LICENSE file for details.
./gradlew projectHealthSurfaced from shared tags and platforms — no rankings paid for.