koin README

The project's README from github.com/InsertKoinIO/koin. As one markdown file: README.md.

logo

Kotlin Github Actions Apache 2 License Slack channel

What is KOIN? ✨

Koin is a pragmatic, lightweight dependency injection framework for Kotlin developers, developed by Kotzilla and open-source contributors.

The pragmatic Kotlin & Kotlin Multiplatform Dependency Injection framework
- Simple, Powerful and now Compile-Safe -

Compile-Safe Dependency Injection 🛡️

Koin is now compile-safe thanks to the Koin Compiler Plugin. Your dependency graph is verified at compile time — missing bindings, broken definitions, and misconfigured modules are caught by the compiler instead of crashing at runtime.

Get started with the Koin Compiler Plugin.

Setup & Current Version 📦

Follow the dedicated setup page to setup Koin for your project. Here are the currently available Koin versions:

Developer Tools & Observability 🛠️

Kotzilla Platform — KMP Crash Reporting & Observability

Free signup on Kotzilla

The full observability platform for Kotlin Multiplatform apps:

  • Full KMP Crash Reporting — complete crash reports across Android, iOS and all KMP targets
  • Screen Rendering Impact — understand how each screen affects rendering and user experience
  • Performance Monitoring — track runtime performance, memory metrics, and Koin module behavior

A console-based suite with connected cloud services that visualizes your Koin module structure, provides advanced debugging and tracing, and seamlessly integrates with Kotlin Multiplatform projects.

Koin IDE Plugin — Your Koin Developer Assistant

Freely available on the JetBrains Marketplace

The perfect Koin developer assistant: native support for IntelliJ IDEA and Android Studio, with navigation, inspections, and productivity features dedicated to Koin across Kotlin and Kotlin Multiplatform projects.

Community & Enterprise Support 💬

Koin is backed by an active open-source community and by Kotzilla for teams that need guaranteed, enterprise-grade support.

Community Support 🌱

Free, open-source support from the Koin community:

Enterprise-Grade Support with Koin LTS 🏢

For teams with production and compliance requirements, Koin LTS delivers enterprise-grade support backed by Kotzilla:

👉 Learn more and opt in at kotzilla.io/koin-lts.

Latest News & Resources 🌐

Contributing 🛠

Want to help or share a proposal about Koin? Problem with a specific feature?

Additional readings about basic setup: https://github.com/InsertKoinIO/koin/blob/master/CONTRIBUTING.adoc

Contributors

Thank you all for your work! ❤️

OpenCollective - Sponsorship ❤️

Support this project by becoming a sponsor and be displayed on the offcial website. [Help us and Become a sponsor!]

koin (InsertKoinIO/koin)

Searching Database…

10K ·GitHub
这是什么?Koin 是一个面向 Kotlin 开发者的实用、轻量级依赖注入框架,支持 Kotlin Multiplatform,由 Kotzilla 和开源贡献者共同开发。
它是我加到自己代码里的库,还是和我的应用一起运行的独立工具?它是一个框架,作为普通依赖嵌入 Kotlin 项目:你通过 Koin 简洁、符合 Kotlin 习惯的 DSL 在 Kotlin 代码中声明依赖,不需要额外的样板代码。
我怎么把它添加到我的项目里?按照 Koin 网站上的专门设置页面操作——里面介绍了项目的设置方法,并列出了当前可用的各个 Koin 版本。
如果我把某个依赖配置错了,是不是只有等应用在运行时崩溃了才会发现?使用 Koin Compiler Plugin 的话,依赖图会在编译期得到校验:缺失的绑定、损坏的定义和配置错误的模块都会被编译器发现,而不是等到运行时才崩溃。
它只支持 Android 吗,还是也能在 iOS 和其他平台上用?不只是 Android——它面向 Kotlin Multiplatform,README 里描述了覆盖 Android、iOS 和所有 KMP 目标平台的完整崩溃上报功能。
使用 Koin 需要 Kotzilla 的平台或付费方案吗?不需要。Koin 本身是开源的,IDE 插件在 JetBrains Marketplace 上免费提供,社区支持则通过 Kotlin Slack 的 #koin 频道、Stack Overflow 和 GitHub issues 提供。Kotzilla 可观测性平台和 Koin LTS 企业支持是另外可选的付费服务。
Koin LTS 为生产环境团队额外提供了什么?它是 Kotzilla 的企业支持套餐:有 SLA 保障、响应时间有承诺的更新,对 Koin 3.5 LTS 这类稳定版本提供长期维护,还包括安全和合规补丁、优先的 bug 修复,以及与 Koin 背后团队的直接沟通渠道。
Koin 是一个成熟、仍在积极维护的项目吗?是的。该项目从 2017 年开始开发,在 GitHub 上有大约 10000 颗星,仓库里运行着持续的构建、测试、发布和每周 CI 工作流。版本发布和公告都会发布在 Koin 博客上。
Size
43.2 MB
Stars
10K
Age
9y
Commits · 90 Days