kosi-libs/kodein

Painless Kotlin Dependency Injection

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 13 minutes ago
Type:Library / SDKCategory(s):Core & Utility LibrariesLanguages & Runtimes
Added to GitGenius on September 20th, 2026
Created on April 16th, 2015
Open Issues & Pull Requests: 8 (+0)
GitHub issues: Enabled
Number of forks: 177
Total Stargazers: 3,337 (+0)
Total Subscribers: 46 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.7 days
Mean response time: 28.3 days
90th percentile: 92.6 days
Tracked items: 38

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 5
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 383 days
Stale 30+ days: 5
Stale 90+ days: 5

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • type: bug (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Kodein is a dependency injection container for Kotlin that works across all Kotlin Multiplatform targets including JVM, Android, native platforms, JavaScript, and WebAssembly.

The tool addresses the complexity of managing dependencies by providing a straightforward container that handles lazy instantiation, eliminates concerns about initialization order, and allows binding of classes or interfaces to instances or providers. It uses a declarative DSL that reads naturally in Kotlin code and avoids type erasure issues inherent to Java-based solutions. The framework includes debugging capabilities to inspect dependency bindings and detect recursion problems.

Kodein suits projects built in Kotlin that need dependency injection without the ceremony of annotation-heavy frameworks. It integrates directly with Android, Compose for desktop and web, and Ktor applications. The tool is particularly valuable for teams prioritizing readable, idiomatic Kotlin code and those working across multiple platforms where a single injection solution is preferable to platform-specific alternatives.

The project maintains active development with regular updates to support new Kotlin versions, currently tracking Kotlin 2.2 with minimum JDK 17 in the latest release. The codebase makes extensive use of inline functions for performance optimization. Documentation is comprehensive and versioned, with community support available through a dedicated Slack channel.