InsertKoinIO/koin ? reverse-engineered prompt

Reverse engineered prompt

Build me a lightweight dependency injection library for Kotlin and Kotlin Multiplatform that feels simple to use but still catches bad wiring early.

I want a clean setup where I can define modules, register singletons and factories, and inject dependencies with a small, friendly API. It should support Android and other Kotlin Multiplatform targets, and it should fail fast at compile time when something is missing or configured wrong.

Please include a few realistic examples and basic documentation so it’s easy to understand how to start using it. If you need to check current Kotlin or multiplatform best practices, look up the latest docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab