koin
Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform (by InsertKoinIO)
Kodein
Painless Kotlin Dependency Injection (by kosi-libs)
koin | Kodein | |
---|---|---|
25 | 3 | |
9,535 | 3,281 | |
1.0% | 0.5% | |
9.6 | 7.3 | |
11 days ago | 26 days ago | |
Kotlin | Kotlin | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
koin
Posts with mentions or reviews of koin.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-07-05.
-
Seamless UI Architecture: Integrating Koin with Circuit in Compose Multiplatform
Building UIs with Compose Multiplatform is getting more and more popular. If you're looking for a solid way to structure your app, you might have heard of Circuit from Slack for UI architecture and Koin for dependency injection. They work great together!
-
Ultimate Kotlin Cheatsheet
Koin - Dependency injection
- 2025년에 안드로이드 앱을 만들기
- Seven Legacy Technologies in Android Development and Their Modern Counterparts
-
Modern Dependency Injection with Koin: The Smart DI Choice for 2025
In the Kotlin ecosystem, dependency injection (DI) frameworks are essential for managing dependencies, improving modularity, and streamlining application development. Koin has emerged as a popular DI framework for Kotlin developers, especially valued for its simplicity, lightweight nature, and multiplatform support. At the time of writing, Koin 4.0 has been released. Built on Kotlin 2.0, this release introduces a wide range of enhancements and Compose Multiplatform features. As we move into 2025, Koin continues to be an excellent choice, particularly because of its Kotlin-first design, ease of use, and adaptability across platforms.
- When developing a Compose application......
-
Koin is now updated to support the latest Kotlin version
The Koin framework is now updated to support the latest Kotlin version, now integrating with Google KSP. Koin Annotations 2.0.0-Beta1 to take advantage of Kotlin 2.0.20 and KSP 2.0.20-1.0.25, and target Koin 4.0. This release is based on the stable 1.4.0 version.
-
Day 1. Deep breath and dive.
Added Koin as Dependencies Injection framework
-
Building a subscription tracker Desktop and iOS app with compose multiplatform
Koin to manage dependency injection (more explanation about that later)
-
Kotlin Multiplatform and Swift - Overcoming Interoperability Challenges for Multiplatform Development
Let's see how we can use Koin to achieve Dependency Injection (DI) and incorporate a third-party iOS Swift SDK in a KMM project. Koin supports KMM development, making it the ideal choice for KMM projects.
Kodein
Posts with mentions or reviews of Kodein.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-09.
-
Kodein VS MocKMP - a user suggested alternative
2 projects | 9 Nov 2022
-
Do we really need to use Dependency Injection Framework?
Now I will finish up saying Hilt is just an opinionated way to dependency injection on Android, but there are simpler frameworks out there such as Koin or Kodein that can help take away a lot of the troubles that can come when you try to make your own framework. Just know that most other frameworks tend to be runtime injection instead of compile time injection like Hilt, which can be helpful to know at compile time if you are missing a dependency in your graph as opposed to runtime when its out in the wild.
-
Yet another DI library, bit this time it's not a service locator
Long answer: My pain mostly comes from using [Kodein](https://github.com/Kodein-Framework/Kodein-DI/) and a custom service locator in an iOS/Swift project. Other than that I have very little experience with DI (e.g. I never used Dagger so far), so my opinion might be a little biased. Also, both of these projects are really large, so, in many cases, a class is declared in one module but used in a completely different module and the DI or service locator is sort of the glue between the modules.
What are some alternatives?
When comparing koin and Kodein you can also consider the following projects:
kotlin-guice - Guice DSL extensions for Kotlin
injekt
kapsule - Minimalist dependency injection library for Kotlin.
kotlin-guiced - Convenience Kotlin API over the Google Guice DI Library