Discover the power of AI with our Kotlin Multiplatform app. Choose from the latest open-source text and image models to boost your creativity. Pick the model that fits you, create unique texts or images. and keep everything safe and in sync across your devices.
You can run the application for Android, Desktop, WebAssembly, and iOS directly from your IDE.
- Open the project in Android Studio or IntelliJ IDEA.
- Select your desired run configuration from the dropdown menu (e.g.,
composeApp,desktopRun,iosApp). - Click the Run
βΆοΈ button.
For iOS, you can alternatively open the iosApp folder in Xcode and run it from there.
chat.mp4
Imagine.mp4
You.mp4
Our development process is divided into five key steps:
- Status: π― Done
- Status: π― Done
- Status: π― Done
- Status: π― Done
- Status: π in progress
-
User Interface: Uses Compose multiplatfrom.
-
Layers: All data handling, business logic, and presentation layers are implemented using kotlin multiplatform
-
backend: The backend is developed using Ktor framework.
- Material 3 Adaptive (creates adaptive UIs that will adapt themselves automatically)
- Compose Navigation (Navigates between composables with built-in infrastructure and features)
- Kodein (Painless Kotlin Dependency Injection)
- Coroutines (asynchronous or non-blocking)
- Sketch (Image loading)
- Ktor Client (HTTP client)
- Markdown renderer (Markdown renderer)
- Drag Select (adding Google Photos style drag-to-select multi-selection to a LazyGrid)
- SQLDelight (SQLDelight generates typesafe Kotlin APIs from your SQL statements.)
- KotlinMultiplatformAuth (Authentification Library Targeting Android, iOS, Desktop and Web Kotlin/Js and Kotlin/Wasm both)
- kotlinx-rpc (is a Kotlin library for adding asynchronous Remote Procedure Call (RPC) services to your applications)
- Exposed (Kotlin SQL Framework)
LLMS/
βββ composeApp/ # Main application module for the UI, built with Compose Multiplatform
β βββ src/
β βββ org/yassineabou/llms/app/
β β βββ App.kt
β β βββ MainScreen.kt
β β βββ core/
β β β βββ data/
β β β β βββ async/
β β β β βββ local/
β β β β βββ remote/
β β β βββ di/
β β β βββ navigation/
β β β βββ sharedViews/
β β β βββ theme/
β β β βββ util/
β β βββ feature/
β β βββ chat/
β β β βββ data/model/
β β β βββ ui/
β β β βββ chat/
β β β βββ history/
β β β βββ listDetailPane/
β β β βββ view/
β β βββ imagine/
β β β βββ data/model/
β β β βββ ui/
β β β βββ supportingPane/
β β β βββ util/
β β β βββ view/
β β βββ you/
β β βββ model/
β β βββ ui/
β β βββ util/
β β βββ view/
β βββ sqldelight/org/yassineabou/llms/ # SQLDelight source files defining the local database schema
β
βββ server/ # Backend server module, using Ktor, handling API requests and database interactions.
β βββ src/
β βββ org/yassineabou/llms/
β βββ Application.kt
β βββ Environment.kt
β βββ database/
β βββ tables/
β βββ di/
β βββ repository/
β βββ service/
β βββ DatabaseFactory.kt
β
βββ shared/ # Shared API contract and data models, enabling type-safe communication between compose and server module.
βββ src/
βββ org/yassineabou/llms/api/
βββ ChatService.kt
βββ ImageService.kt
βββ MessageService.kt
βββ UserService.kt
βββ Constants.kt
βββ Platform.kt
This project supports Google Authentication for data syncing across devices (part of Step 5 in Progress). Keys and sensitive files (e.g., google-services.json, GoogleService-Info.plist) are hidden and not committed to GitHub for security. To enable real Google auth after cloning the repo, follow these platform-specific steps. We've included fake data in the code (e.g., in commonMain/YouViewModel.kt) for testing without setupβuncomment the real auth code when ready.
If you are confused in the process, watch this video: https://youtu.be/-5Ws4HSaYJc?si=uHhDbmnhC7GBZEL3.
- Go to the Firebase Console.
- Create a new Firebase project (or select an existing one).
- Enable Authentication β Sign-in method β Google.
- For multiplatform support, also go to Google Cloud Console β APIs & Services β Credentials to create OAuth 2.0 Client IDs as needed.
- In Firebase, click βAdd appβ β Android.
- Register your package name (e.g.,
com.yassineabou.llms), add SHA-1 fingerprints (debug/release). - Download
google-services.json. - Replace the placeholder in
composeApp/google-services.jsonwith your file. - In Google Cloud Console, create an βAndroidβ OAuth Client ID with the same package name and SHA-1.
- In
androidMain/MainActivity.kt, uncomment the init code forKMAuthInitializer. - In
commonMain/YouViewModel.ktandcommonMain/App.kt, uncomment the Google auth-related code. - Sync Gradle and rebuild.
- In Firebase, click βAdd appβ β iOS.
- Register your bundle ID, App Store ID (optional), and nickname.
- Download
GoogleService-Info.plist. - Replace the placeholder in
iosApp/GoogleService-Info.plistwith your file. - Drag it into Xcode (check βCopy items if neededβ).
- Add the Google Sign-In SDK via Xcode:
FileβAdd Packagesβ¦β URL:https://github.com/google/GoogleSignIn-iOSβ Add GoogleSignIn to your target. - In
iosApp/Info.plist, uncomment and paste:<key>GIDClientID</key><string>PASTE CLIENT_ID FROM GoogleService-Info.plist HERE</string>- For
<key>CFBundleURLTypes</key>, add the<dict>with<key>CFBundleURLSchemes</key><array><string>PASTE REVERSED_CLIENT_ID FROM GoogleService-Info.plist HERE</string></array>.
- In Google Cloud Console, create a βWeb applicationβ OAuth Client ID.
- Add authorized redirect URIs (e.g.,
http://localhost:8080/callback). - Copy the generated
CLIENT_IDandCLIENT_SECRET. - Paste them into
commonMain/GoogleOAuthConfig.kt(replace the empty constants). - In
desktopMain/main.kt, uncomment the init code forKMAuthInitializer.initClientSecret. - In
commonMain/App.ktandcommonMain/YouViewModel.kt, uncomment the Google auth-related code.
We welcome contributions to our project! Please follow these guidelines when submitting changes:
- Report bugs and feature requests by creating an issue on our GitHub repository.
- Contribute code changes by forking the repository and creating a new branch.
- Ensure your code follows our coding conventions.
- Improve our documentation by submitting changes as a pull request.
Thank you for your interest in contributing to our project!
Copyright 2025 Yassine Abou
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

