Hey Kotlin community! 👋
I've resurrected
kotlin-libui and updated it to
Kotlin 2.2.0! This project provides Kotlin bindings to the libui C library for building native GUI applications across platforms.
Perfect for lightweight applications
This toolkit is ideal for:
- Applications requiring minimal, native-looking UIs
- Programs that need to consume very little RAM
- Utilities where executable size matters (binaries are extremely small!)
- Cross-platform tools that need to maintain native performance
Current status:
- ✅ Updated to Kotlin 2.2.0
- ✅ Working on Windows and Linux
- ⚠️ macOS has some issues to resolve
I've also started experimenting with a Compose implementation for libui. While still very experimental, it aims to bring the modern Compose programming model to these lightweight native apps:
kotlin
fun main() = runLibUI {
Window(title = "Compose Example") {
VBox {
Button(text = "Click Me") { /* action */ }
MultilineEntry(text = remember { mutableStateOf("") })
}
}
}
If you're interested in lightweight UI development, cross-platform native apps, or helping with the Compose implementation, I'd love your collaboration! Who wants to help bring this lightweight Kotlin UI toolkit to the next level? 🚀
https://github.com/kdroidFilter/kotlin-libui