OSS Tanbou

configure lightweight dependency injection for Kotlin, Android, and Kotlin Multiplatform through concise module DSLs

About these scores

OSS scale score is an unbounded metric that log-compresses and weights Stars, Watchers, Forks, and Contributors. Discovery score is the current OSS scale score minus the score at discovery. Update pace is commits in the last 30 days, growth momentum is the OSS scale score difference within the recent observation window, and OSS health is a 0–100 rating based on available recency, Community Health, and release data.

Stars
10,021
Primary language
Kotlin
License
Apache-2.0
Repository last updated
Sep 20, 2026
On this page

Overview

Koin is a dependency-injection framework for Kotlin. Applications declare singletons, factories, and other definitions in modules and start the graph with startKoin. It supports Android and Kotlin Multiplatform and also offers compile-safe dependency validation through the Koin Compiler Plugin.

Features and best fit

Based on official documentation; not hands-on tested · Content checked:

Key features

Declare dependency definitions with a Kotlin module DSL

Definitions such as single and factory live inside modules, allowing constructor dependencies to be resolved from the Koin container with concise Kotlin configuration.

Sources: [4][2]

Extend the same DI model across Android, KMP, and compile-safe workflows

Koin provides modules for Android, Compose, and Kotlin Multiplatform, while the Compiler Plugin can validate missing or invalid dependencies during compilation.

Sources: [2][4]

Best fit

Fits Kotlin applications that want explicit DI structure with limited boilerplate

It is useful when teams want readable module configuration, constructor injection, and a shared DI approach across Android and multiplatform codebases.

Sources: [2][4]

Before adoption

Keep core and related modules on the 4.2.2 release line

The repository's current koinVersion and the latest GitHub release are both 4.2.2. Android, Compose, and related artifacts should stay aligned to avoid version mismatches.

Sources: [3][5]

The Compiler Plugin DSL requires explicit plugin setup

The README and quickstart highlight compile-safe DI, but compiler-oriented DSL usage depends on the Koin Compiler Plugin. Projects should either start with the classic DSL or configure the plugin deliberately.

Sources: [2][4]

Official sources

  1. [1]InsertKoinIO/koin repository(2026-09-30)
  2. [2]Koin README(2026-09-30)
  3. [3]Koin gradle.properties(2026-09-30)
  4. [4]Koin Kotlin quickstart(2026-09-30)
  5. [5]Koin 4.2.2 release(2026-09-30)
  6. [6]Koin Apache 2.0 license(2026-09-30)
Supplemental curator note

Koin 4.2.2 is a lightweight DI framework for Kotlin and Kotlin Multiplatform. Teams can start with the classic runtime DSL and optionally add the Compiler Plugin to validate the dependency graph at compile time. The compiler-oriented DSL requires explicit plugin setup and should not be mixed into an unconfigured project.

Try it in 3 steps

  1. 1

    Add Koin Core 4.2.2

    Add the current stable core artifact to a Kotlin application.

    implementation("io.insert-koin:koin-core:4.2.2")
  2. 2

    Declare a dependency in a module

    Start with the classic DSL and define one singleton.

    val appModule = module { single { UserService() } }
  3. 3

    Start Koin and resolve the instance

    Load the module at the application entrypoint and resolve the service from the container.

    startKoin { modules(appModule) } val service = KoinPlatform.getKoin().get<UserService>()
Check the official README

Growth

Growth trends · Last 30 days

10,021 Stars

Trend data is still being collected.

Built with

Categories and tags

GitHub data

GitHub dataView detailed GitHub data

GitHub Topics

  • android
  • dependency-injection
  • injection
  • kotlin
  • kotlin-multiplatform
  • kotlin-multiplatform-library
  • library
Stars
10,021
Forks
790
Watchers
105
Open issues
73
Owner type
Organization
Primary language
Kotlin
License
Apache-2.0
Repository last updated
Sep 20, 2026
Write a related article

Share a guide or use case for this OSS in Markdown. Articles are published after administrator approval.

Report incorrect information

Tell us if any listing information is incorrect or outdated.

After reading this page, do you know what to do next?