A collection of extensions on top of Metro DI to help reduce boilerplate with dependency injection on Kotlin Multiplatform.
- Assisted Factory — bind a user-defined factory interface to an
@AssistedInjectclass with a single annotation.
Metro is implemented as a Kotlin compiler plugin and does not expose a public FIR/IR extension API. Its only documented third-party integration point is KSP — KSP processors run before Metro's plugin, so any Metro-annotated code they generate is picked up natively, and @dev.zacsweers.metro.Origin keeps contribution-merging exclusions aligned with the source type. The extensions in this repository are KSP processors that emit Metro-annotated code on your behalf.
See the documentation for setup and usage.