Skip to content
github-actions[bot] edited this page Nov 25, 2026 · 8 revisions

Welcome to the abeta-dev/kmp Wiki

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 3 database, plus kmp-bom and dependencyManagement, 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) target jvm, iosArm64, iosSimulatorArm64, macosArm64, watchosArm64, watchosSimulatorArm64, watchosDeviceArm64, and wasmJs.
    • Compose UI modules (design-tokens, ui-atoms, sdui-layout) and storybook target jvm, iosArm64, iosSimulatorArm64, macosArm64, and wasmJs.
    • Drop-in reference host glue lives in kmp/platforms/ (android/, wearos/, apple/, web/, README.md; Android & Wear OS templates require an Android app module with ANDROID_HOME / Android SDK configured).
  • bff/: A Go 1.26.0 Clean Architecture SDUI Backend-for-Frontend (github.com/abeta-dev/kmp/bff@v0.9.0, ./cmd/bff) exporting 8 pkg/sdui/* packages (actions, analytics, atoms, cache, molecules, server, snippets, theming), powered by Gin v1.12.0 and github.com/abeta-dev/go-libs@v0.4.0, with pooled Brotli/gzip compression, version-aware private, no-cache ETag/304 caching, fail-closed CORS, per-router JWT auth, SSE delta streams, h2c/TLS 1.2+ HTTP/2, and OpenAPI 3.1 + Scalar docs.

Core Engineering Pillars

  1. Uncle Bob Dependency Rule: Dependencies strictly point inward (Layer 3 -> Layer 2 -> Layer 1 -> Layer 0).
  2. Atomic / Action Separation: Design tokens (design-tokens), pure wire contracts (sdui-contracts), and stateless Compose atoms (ui-atoms) never import core, action handlers, navigation controllers, or HTTP clients.
  3. Open/Closed Action Engine: All 18 built-in actions (adding open_url, share, request_permission, biometric_auth alongside trigger_feedback)—plus custom feature actions—plug into ActionDecoderRegistry + ActionRegistry without modifying UI atoms or DefaultActionDispatcher.
  4. Gradle BOM & Catalog Discipline: Consumers align versions with io.github.abeta-dev:bom:0.7.0 and io.github.abeta-dev:dependencies:0.7.0 (Kotlin package namespace dev.abeta.kmp.*), enforced via Binary Compatibility Validator (apiCheck) across all 11 publishable library modules (13 Maven Central artifacts).
  5. 1:1 Wire Protocol Parity: kmp/sdui-contracts and bff/pkg/sdui/* (bff@v0.9.0) share the exact v1 JSON schema (29 Wire Atoms, 31 Stateless Compose UI Atoms, 23 Canonical SnippetTypes incl. composed_block with 36 ComposedNodeKinds, custom_slot, & graph_canvas, 18 ActionTypes, 6 SnippetDeltaOps, 7 Ambient MotionLoopEffects) verified against 11 golden fixtures in bff/testdata/golden/.

Wiki Navigation

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

Clone this wiki locally