Skip to main content

Koin

The pragmatic Kotlin dependency injection framework

Making your Kotlin development easy and productive

Koin is a smart Kotlin dependency injection library to keep you focused on your app, not on your tools.

Koin gives you simple tools and API to let you build, assemble Kotlin related technologies into your application and let you scale your business with easyness.

// Given some classes
class MyRepository()
// Inject via constructor
class MyPresenterr(val repository : MyRepository)


// just declare it
val myModule = module {
singleOf(::MyPresenterr)
singleOf(::MyRepository)
}

Ready for Android

Thanks to the Kotlin language, Koin extends the Android platform and provides new features as part of the original platform.

Koin provides easy and powerfull API to retrieve your dependencies anywhere in Android components, with just using by inject() or by viewModel()

Powering Kotlin Multiplatform

Sharing code between mobile platforms is one of the major Kotlin Multiplatform use cases. With Kotlin Multiplatform Mobile, you can build cross-platform mobile applications and share common code between Android and iOS.

Koin provides multiplatform dependency injection and help build your components accross your native mobile applications, and web/backend applications.

Performances and Productivity

Koin is a pure Kotlin framework, designed to be straight forward in terms of usage and execution. It easy to use and doesn't impact your compilation time, nor require any extra plugin configuration.

Talks and Videos

You can follow the latest news from the Koin project team on Twitter, to follow conferences and talks.

Take a tour on the Kotzilla Blog to read latest news and videos about Koin project.

Open Source and Community Driven, Supported by Kotzilla

Arnaud Giuliani created and released Koin in 2017 and is still maintaining it.

In 2018, Koin is one of the most trending Kotlin framework . Today, the project is supported by contributions from individuals and companies around the world.

In 2022, Arnaud Giuliani and Michael Montoya are cofounding the Kotzilla company, to support and push Koin technologies.

Thanks to our Sponsors ❤️