# kosi-libs/Kodein

Painless Kotlin Dependency Injection

Repository: https://github.com/kosi-libs/Kodein
Canonical: https://ross.abutalabs.com/products/kodein
Homepage: https://kosi-libs.org/kodein
Language: Kotlin
License: MIT
License Family: permissive
Topics: kotlin-multiplatform, kotlin-dependency-injection, kotlin, ktor, tornadofx, android, injection, kodein-di, kodein, compose-desktop, compose, kodein-framework
Last push: 2026-07-21T07:40:56+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 93, release rhythm 82, longevity 100
- inputs: {"age_days": 4157, "days_push": 43, "days_rel": 43, "gap_med": 36, "n_releases_24m": 14}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3335, forks 177 (observed 2026-08-28T04:07:56.729634+00:00)

## What it is
Kodein is a painless Kotlin dependency injection container with a simple declarative DSL. It supports all Kotlin Multiplatform targets and integrates with Android, Compose, and Ktor.

## Use cases
- manage dependencies in a Kotlin multiplatform app
- inject dependencies into Android activities and fragments
- use dependency injection with Ktor server
- lazily instantiate services in a Kotlin project
- replace Dagger or Koin with a simpler DI container
- bind interfaces to implementations in Kotlin

## When to choose
- you want a simple, idiomatic Kotlin DI DSL
- you need DI across JVM, Android, iOS, JS, and Native targets
- you use Compose or Ktor and want first-class integration

## When to avoid
- you need compile-time DI verification like Dagger
- your project is Java-only without Kotlin
- you need a very large-scale enterprise DI framework with advanced scoping

## Facets
- artifact type: library
- maturity: active
- function: developer-tools, plugin-system
- domain: developer-tools, mobile-development, cross-platform, web-development
- platform: jvm, windows, wasm
- tags: dependency-injection, kotlin-multiplatform, di-container, ktor, compose, android, ios, macos, linux

## Member repositories
- kosi-libs/Kodein (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:56.729634+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:41:07.829283+00:00, confidence not recorded.
  - readme: https://github.com/kosi-libs/Kodein (fetched 2026-08-28T04:07:56.729634+00:00, sha 6a638ffb8926)
  - homepage: https://kosi-libs.org/kodein (fetched 2026-08-29T09:34:24.064270+00:00, sha d22b59a2abe3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
