# evant/kotlin-inject

Dependency injection lib for kotlin

Repository: https://github.com/evant/kotlin-inject
Canonical: https://ross.abutalabs.com/products/kotlin-inject
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: kotlin, dependency-injection
Last push: 2026-01-07T08:15:10+00:00

## Health v2 (maintenance only)
Score: 59/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 61, release rhythm 33, longevity 100
- inputs: {"age_days": 2619, "days_push": 238, "days_rel": 238, "gap_med": 240.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1503, forks 72 (observed 2026-08-28T04:04:54.604401+00:00)

## What it is
kotlin-inject is a compile-time dependency injection library for Kotlin that generates component implementations via KSP annotations. It provides constructor injection, @Provides functions, and binding support without runtime reflection.

## Use cases
- dependency injection for kotlin projects
- compile-time DI without reflection
- android app dependency injection
- generate DI component code with KSP
- replace dagger with a kotlin-native DI library
- wire multi-module kotlin services

## When to choose
- you want fast, reflection-free dependency injection in Kotlin
- you prefer compile-time safety and generated code over runtime DI
- you're building Android or JVM apps with Kotlin and KSP

## When to avoid
- you need a Java-first DI framework with a large ecosystem
- your project is not on the JVM/Kotlin toolchain
- you need runtime dynamic injection or service-locator patterns

## Facets
- artifact type: library
- maturity: active
- function: developer-tools, build-tool
- domain: developer-tools, programming-languages, backend, mobile-development
- platform: jvm
- tags: dependency-injection, compile-time-di, ksp, code-generation, kotlin, android

## Member repositories
- evant/kotlin-inject (main) score 59

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:54.604401+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-30T04:32:48.730026+00:00, confidence not recorded.
  - readme: https://github.com/evant/kotlin-inject (fetched 2026-08-28T04:04:54.604401+00:00, sha 4e262700feca)
- Data as of 2026-08-30T08:39:29.467469+00:00.
