A cross-platform app store that lets you discover and install apps released on GitHub, Codeberg and other Forgejo or Gitea forges.
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
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
An open-source, ad-free, minimalist class timetable app for Chinese university students, with timetable import from academic affairs systems.
An offline-first, privacy-focused reader for PDF, EPUB, comics and other documents on Android, Linux and Windows, built with Kotlin Multiplatform.
An HTTP client for the JVM, Android, and GraalVM that reuses connections, supports HTTP/2, and caches responses by default.
The Kotlin programming language and its compiler, standard library, and build tooling, developed by JetBrains for multiplatform development.
A TODO app sample by Google, implemented in several branches to compare Android architecture patterns, tools and testing approaches.