Stack Explorer

Koin

Utility

Pragmatic dependency injection framework for Kotlin

400K/week → Stable

Features

didependency-injectionpragmaticlightweight

Pros and Cons

Ventajas

  • + No code generation
  • + Simple and expressive DSL
  • + Easy to learn
  • + Android and multiplatform support
  • + No annotations or reflection

Desventajas

  • - Runtime errors instead of compile-time
  • - Fewer features than Dagger
  • - Slightly lower performance

Use Cases

  • Dependency injection in Kotlin
  • Android applications
  • Ktor backends
  • Kotlin Multiplatform projects
  • Testing with mocks

Tecnologías Relacionadas