Breaking Up with WebViews: Server-Driven UI with KMP + Compose
summary
Claims a replacement for WebViews by shipping a fully native server driven UI built with Kotlin Multiplatform and Compose Multiplatform using a JSON-based UI schema parsed with Kotlin serialization into DTOs, mapped to native Compose widgets, styled by server style objects, and driven by serializable actions (API calls, navigation, chained actions). A JVM playground demo renders live JSON edits, shows fallback UI and deep link handling, and the rollout advice is incremental (onboarding, forms), security via local secrets and schema versioning, GitHub sample available.
AI-written summary · about
chapters (21)
- 0:00Introduction
- 0:46Web views and limitations
- 3:13Security risks of web views
- 4:38Server-driven UI alternative
- 5:19Core SDUI principles
- 8:14SDUI benefits over web views
- 8:36Kotlin Multiplatform for SDUI
- 10:01SDUI architecture with KMP
- 11:51SDUI vs traditional UI
- 13:38Dynamic UI changes
- 13:58SDUI components code walkthrough
- 16:34Dynamic styling in SDUI
- 17:17Handling SDUI interactions
- 18:23Live SDUI demo with KMP
- 27:31Scaling SDUI to production
- 29:17Testing SDUI
- 30:23SDUI security best practices
- 31:04SDUI compatibility
- 31:27Real-world SDUI examples
- 32:34Future of SDUI with AI
- 33:58Recap and closing
related talks
46mMultiplatform UI with Compose
48mA page out of Server driven UI on Android
49mLife is too short to develop only for Android - A journey to Server-driven UI
35mLife is too short to develop only for Android – A journey to Server-driven UI
33mA page out of Server driven UI on Android
42mNative UI with multiplatform Compose
24mKotlin and Compose WASM for the UI challenged
34mBuilding Shared UIs Across Platforms With Compose
