Repolode
InsertKoinIO

InsertKoinIO/koin

A lightweight dependency injection framework for Kotlin and Kotlin Multiplatform, offering a Kotlin DSL and JSR-330 annotations.

Stars
10,021
Forks
791
Open issues
75
Last commit
12 hours ago

What is it?

Koin is a dependency injection framework for Kotlin developers. It lets you declare how objects are created and wired together, either through a concise Kotlin DSL or through Koin Annotations based on JSR-330. It targets Kotlin and Kotlin Multiplatform projects.

Koin is now compile-safe through the Koin Compiler Plugin, which checks the dependency graph at compile time. Missing bindings and broken module definitions are reported by the compiler instead of failing at runtime.

The project is developed by Kotzilla with open-source contributors. The repository also points to related tooling, including a KMP observability platform and an IntelliJ IDEA / Android Studio plugin for navigating and inspecting Koin code.

Key features

  • 01Kotlin DSL for declaring modules and dependencies
  • 02JSR-330 style annotations via Koin Annotations
  • 03Compile-time dependency graph validation with the Koin Compiler Plugin
  • 04Works across Kotlin and Kotlin Multiplatform targets

Use cases

  • Wiring dependencies in an Android app built with Kotlin
  • Sharing dependency injection code across KMP targets
  • Building Ktor backends with structured service injection
  • Catching missing bindings before runtime in larger Kotlin projects

Quick start

  1. 1

    Follow the setup page on insert-koin.io to add Koin to your project

Topics

FAQ

What is koin?
A lightweight dependency injection framework for Kotlin and Kotlin Multiplatform, offering a Kotlin DSL and JSR-330 annotations. Koin is a dependency injection framework for Kotlin developers. It lets you declare how objects are created and wired together, either through a concise Kotlin DSL or through Koin Annotations based on JSR-330. It targets Kotlin and Kotlin Multiplatform projects.
Is koin free to use? What license does it have?
koin is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
Is koin still maintained?
Actively maintained. The last commit to koin was on Oct 21, 2026.
What can I use koin for?
Wiring dependencies in an Android app built with Kotlin Sharing dependency injection code across KMP targets Building Ktor backends with structured service injection Catching missing bindings before runtime in larger Kotlin projects
How do I install koin?
Follow the setup page on insert-koin.io to add Koin to your project
Where can I get koin?
The source code and installation instructions are on GitHub: https://github.com/InsertKoinIO/koin

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects