Classy

Text to image generation app using Compose Multiplatform with Clean Architecture.

Tech Stack

As for Compose Multiplatform following libraries are used:
  • Moko for ViewModels and Flows
  • Voyager for navigation
  • Ktor for HTTP communication
  • Koin for dependency injection
  • Calf for adaptive UI Elements
  • Typist-CMP for text typing animation

App is following the MVVM Clean Architecture approach with buildSrc for dependencies management.

Backend

Setup

You can either use the above backend and deploy it and use in app by replacing base url or you can directly use HuggingFace’s free inference API for generating images. The method for parsing data returned from HuggingFace’s free inference API is different so you will have to change the code related to api connection in data layer of app.

Note: HuggingFace’s free inference API is initialised on demand so at first request you will receive invalid response and after a while, when system is initialised you need to try again to start getting the actual results.

GitHub

View Github