Repository navigation
Home
github-actions[bot] edited this page Nov 25, 2026
·
8 revisions
Abeta KMP Kit (dev.abeta.kmp) is an open-source Server-Driven UI (SDUI) monorepo combining:
-
kmp/: A 4-layer Kotlin Multiplatform + Compose Multiplatform SDUI UI, Wearable & Local Database Kit (11 publishable library modules including Room 3database, pluskmp-bomanddependencyManagement,Kotlin 2.4.21,Compose Multiplatform 1.12.2,Ktor 3.6.1,Koin 4.2.2,Gradle 9.7.0,JDK 21):- Headless/contract modules (
core,state,analytics,database,sdui-contracts,action-engine,network,watch-companion) targetjvm,iosArm64,iosSimulatorArm64,macosArm64,watchosArm64,watchosSimulatorArm64,watchosDeviceArm64, andwasmJs. - Compose UI modules (
design-tokens,ui-atoms,sdui-layout) andstorybooktargetjvm,iosArm64,iosSimulatorArm64,macosArm64, andwasmJs. - Drop-in reference host glue lives in
kmp/platforms/(android/,wearos/,apple/,web/,README.md; Android & Wear OS templates require an Android app module withANDROID_HOME/ Android SDK configured).
- Headless/contract modules (
-
bff/: A Go 1.26.0 Clean Architecture SDUI Backend-for-Frontend (github.com/abeta-dev/kmp/bff@v0.9.0,./cmd/bff) exporting 8pkg/sdui/*packages (actions,analytics,atoms,cache,molecules,server,snippets,theming), powered by Ginv1.12.0andgithub.com/abeta-dev/go-libs@v0.4.0, with pooled Brotli/gzip compression, version-awareprivate, no-cacheETag/304 caching, fail-closed CORS, per-router JWT auth, SSE delta streams,h2c/TLS 1.2+ HTTP/2, and OpenAPI 3.1 + Scalar docs.
-
Uncle Bob Dependency Rule: Dependencies strictly point inward (
Layer 3 -> Layer 2 -> Layer 1 -> Layer 0). -
Atomic / Action Separation: Design tokens (
design-tokens), pure wire contracts (sdui-contracts), and stateless Compose atoms (ui-atoms) never importcore, action handlers, navigation controllers, or HTTP clients. -
Open/Closed Action Engine: All 18 built-in actions (adding
open_url,share,request_permission,biometric_authalongsidetrigger_feedback)—plus custom feature actions—plug intoActionDecoderRegistry+ActionRegistrywithout modifying UI atoms orDefaultActionDispatcher. -
Gradle BOM & Catalog Discipline: Consumers align versions with
io.github.abeta-dev:bom:0.7.0andio.github.abeta-dev:dependencies:0.7.0(Kotlin package namespacedev.abeta.kmp.*), enforced via Binary Compatibility Validator (apiCheck) across all 11 publishable library modules (13 Maven Central artifacts). -
1:1 Wire Protocol Parity:
kmp/sdui-contractsandbff/pkg/sdui/*(bff@v0.9.0) share the exactv1JSON schema (29 Wire Atoms, 31 Stateless Compose UI Atoms, 23 Canonical SnippetTypes incl.composed_blockwith 36ComposedNodeKinds,custom_slot, &graph_canvas, 18 ActionTypes, 6SnippetDeltaOps, 7 AmbientMotionLoopEffects) verified against 11 golden fixtures inbff/testdata/golden/.
| Page | Summary |
|---|---|
| Architecture Overview | 4-layer KMP structure, targets, Core OS/Voice/Desktop ports, Room 3 database (schema v2 w/ MIGRATION_1_2), watch-companion, adaptive screens, Koin, Apple XCFrameworks, Clean Architecture boundaries |
| Atomic Design System |
design-tokens (incl. ResponsiveTokens), sdui-contracts (29 wire atoms, 23 snippets incl. composed_block w/ 36 ComposedNodeKinds, custom_slot & graph_canvas, 6 SnippetDeltaOps, AdaptiveContracts, MotionSpec w/ 7 loops), 31 stateless ui-atoms (incl. UiMediaPager & ISO/IEC 18004 UiQrCode), and 20-story storybook
|
| Action Separation & Registry | Decoupling UI atoms from side effects with ActionRef, 18 ActionTypes, PlatformBridgeBundle, PlatformBridgeOutcomeExecutor, and DefaultActionDispatcher
|
| Gradle BOM & Catalog | Importing io.github.abeta-dev:bom:0.7.0 + io.github.abeta-dev:dependencies:0.7.0 (11 library modules incl. database & watch-companion), 4-product SwiftPM (Abeta-dev/kmp-spm 0.7.0), abeta.kmpLocalBuild, BCV (apiDump/apiCheck), Dokka v2 |
| Go BFF Guide | Building SDUI screens in bff/ (bff@v0.9.0, 8 pkg/sdui/* packages, 12 built-in screens, 18 actions, SSE delta streams, manifest, analytics, compression, ETag, h2c/HTTP/2, OpenAPI 3.1/Scalar) |
| Testing & Quality Gates | Spotless, Detekt, compose.uiTest, apiCheck, dokkaGenerateHtml, --headless/--verticals, Apple XCFrameworks, Go race tests, 17 Code Owners, and 11 golden fixtures |