# InsertKoinIO/koin

Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform

Repository: https://github.com/InsertKoinIO/koin
Canonical: https://ross.abutalabs.com/products/koin
Homepage: https://insert-koin.io
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: kotlin, dependency-injection, injection, android, kotlin-multiplatform, kotlin-multiplatform-library, library
Last push: 2026-06-15T08:55:27+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 87, release rhythm 77, longevity 100
- inputs: {"age_days": 3375, "days_push": 79, "days_rel": 79, "gap_med": 34.0, "n_releases_24m": 15}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10013, forks 789 (observed 2026-08-28T04:10:39.251412+00:00)

## What it is
Koin is a pragmatic, lightweight dependency injection framework for Kotlin and Kotlin Multiplatform, offering a concise DSL and annotations with optional compile-time safety via a Kotlin compiler plugin. It integrates with Android, Jetpack Compose, and Ktor, and is backed by an official IDE plugin and observability tooling.

## Use cases
- inject dependencies in an Android app without code generation
- share DI setup across Kotlin Multiplatform mobile targets
- replace Hilt or Dagger with a simpler DI framework
- wire dependencies in a Ktor backend application
- add compile-time verification of a dependency graph
- inject ViewModels in Jetpack Compose apps

## When to choose
- you want DI set up in minutes with a simple Kotlin DSL
- you need runtime flexibility like dynamic module loading or lazy loading
- you target Kotlin Multiplatform including Android, iOS, and desktop
- you prefer avoiding complex annotation processing and generated code

## When to avoid
- you need statically enforced DI without adding a compiler plugin
- your team is already deeply invested in Hilt or Dagger conventions
- you work outside the Kotlin ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: middleware, developer-tools, plugin-system
- domain: mobile-development, cross-platform, backend, developer-tools, programming-languages
- platform: jvm, cross-platform
- tags: dependency-injection, kotlin-multiplatform, service-locator, di-framework, jetpack-compose, ktor, compiler-plugin, annotations, android, ios, desktop, web-server

## Member repositories
- InsertKoinIO/koin (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:39.251412+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-29T17:20:00.242887+00:00, confidence not recorded.
  - readme: https://github.com/InsertKoinIO/koin (fetched 2026-08-28T04:10:39.251412+00:00, sha b512fc699a6c)
  - homepage: https://insert-koin.io (fetched 2026-08-29T08:19:57.588830+00:00, sha 7696e3e7af09)
  - site_page: https://insert-koin.io/docs/intro/what-is-koin (fetched 2026-08-29T08:19:57.598086+00:00, sha 0a422cc22607)
  - site_page: https://insert-koin.io/docs/intro/what-is-dependency-injection (fetched 2026-08-29T08:19:57.600222+00:00, sha 0320c871eb4f)
  - site_page: https://insert-koin.io/docs/intro/koin-compiler-plugin (fetched 2026-08-29T08:19:57.602145+00:00, sha 3094698d91e4)
  - site_page: https://insert-koin.io/docs/intro/koin-vs-hilt (fetched 2026-08-29T08:19:57.604454+00:00, sha f1e1eb5eeada)
  - site_page: https://insert-koin.io/docs/setup (fetched 2026-08-29T08:19:57.606392+00:00, sha b57ea8dca70f)
  - site_page: https://insert-koin.io/docs/reference/koin-core/starting-koin (fetched 2026-08-29T08:19:57.608199+00:00, sha 0cd932e366dc)
  - site_page: https://insert-koin.io/docs/reference/koin-android/start (fetched 2026-08-29T08:19:57.610184+00:00, sha d0b3e4b94110)
  - site_page: https://insert-koin.io/docs/reference/koin-compose/compose (fetched 2026-08-29T08:19:57.612964+00:00, sha d5dcbc1fbaa4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
