Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vinceglb/ComposeAI

An Android & iOS application ChatGPT like made with Compose Multiplatform
https://github.com/vinceglb/ComposeAI

chatgpt compose-ios compose-multiplatform kmm kotlin-multiplatform

Last synced: 3 months ago
JSON representation

An Android & iOS application ChatGPT like made with Compose Multiplatform

Awesome Lists containing this project

README

        


Compose AI

An Android & iOS application ChatGPT like made with Compose Multiplatform






Android



iOS



OpenAI



Gitmoji



GitHub stars


## Stack

- 💄 [Compose Multiplatform](https://github.com/JetBrains/compose-multiplatform) for the UI on Android & iOS
- 🎨 [Material 3](https://material.io/) for the Design System
- 🧠 [OpenAI Kotlin](https://github.com/aallam/openai-kotlin) for OpenAI API client
- 🧭 [Voyager](https://github.com/adrielcafe/voyager) for the navigation library
- 💡 [Koin](https://insert-koin.io/) for the dependency injection framework
- 🗃️ [SQLDelight](https://github.com/cashapp/sqldelight) for native SQLite database
- ⚙️ [Multiplatform Settings](https://github.com/russhwolf/multiplatform-settings) for saving simple key-value data
- 🧑‍🎨 [Coil3](https://coil-kt.github.io/coil/upgrading_to_coil3/) for displaying images from URL
- 🔊 [Napier](https://github.com/AAkira/Napier) for easy logging
- 🔨 [BuildKonfig](https://github.com/yshrsmz/BuildKonfig) for BuildConfig for Kotlin Multiplatform Project
- 🔥 Firebase [Analytics](https://firebase.google.com/docs/analytics) & [Crashlytics](https://firebase.google.com/docs/crashlytics) for usage and crash reporting
- 💸 [AdMob](http://admob.google.com/) for ads revenue

## Architecture

The app architecture is based on the latest guidelines from Google. You can take a look [here](https://developer.android.com/topic/architecture?hl=fr) for more information and [here](https://github.com/android/nowinandroid) for an official example.

## Gettings started

Compose AI use the OpenAI API with gpt-4o-mini the get the responses. We need to setup your own OpenAI API key before launching the app.

- Create your OpenAI developper account [here](https://platform.openai.com/)
- Create a new API key [here](https://platform.openai.com/account/api-keys) or use an existing one
- Open the local.properties in the root of the project
- Add your key like this `openai_api_key=[YOUR OPENAI API KEY HERE]`

## Sources

Here are some of the websites or repositories that helped me to create this project:

- [Compose Multiplatform iOS / Android template](https://github.com/JetBrains/compose-multiplatform-ios-android-template)
- [The #compose-ios channel on the official Kotlin Slack](https://kotlinlang.slack.com/archives/C0346LWVBJ4/p1678888063176359)
- [KMPStarterOS](https://github.com/AppKickstarter/KMPStarterOS) : Open source template for Kotlin multiplatform and Compose by [@LouisDuboscq](https://github.com/LouisDuboscq)

I want to thank all the whole Jetbrains team for making Compose Multiplatform possible, and all the amazing community that surrounds it ❤️