2afdf5534187470f294b870cbdb588b48cffad68
ComfyUI KMP Mobile
Kotlin Multiplatform (Android/iOS, ARM) App using Compose Multiplatform to connect to a remote ComfyUI server, import workflow JSON, edit existing nodes/params, run, and display generated images.
Features
- Import ComfyUI workflow JSON (paste)
- Edit existing node parameters (string fields)
- Connect to remote ComfyUI server and run
- Poll history and fetch generated images
- Display images in a responsive grid (MD3)
Setup
- ComfyUI server: ensure reachable from device, default ports (e.g.
http://<ip>:8188). - Android: INTERNET permission included.
- iOS: ATS relaxed in
iosApp/iosApp/Info.plistfor dev. For production, configure proper HTTPS.
Build
Android: run :composeApp:assembleDebug or use Android Studio run configuration.
iOS: open iosApp/iosApp.xcodeproj, run on a device/simulator.
Usage
- Open Settings, set Base URL of ComfyUI server.
- Import a workflow JSON via Import page.
- Edit string parameters in Editor page.
- Run, wait for results, view images in Gallery.
Notes
- Only editing of existing parameters is supported; adding nodes is not supported.
- Networking via Ktor; JSON via kotlinx.serialization.
- For non-ARM devices, compatibility is not targeted.
Description
Languages
Kotlin
99.2%
Swift
0.8%