koin README

README проекта с github.com/InsertKoinIO/koin. Одним файлом markdown: 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 🛠️

Koin Skills — for AI Coding Agents

Official Koin skills teach your coding agent to set up Koin, write Koin code, migrate from Hilt, Dagger, Toothpick, Kodein, Metro or older Koin, and diagnose Koin apps, following the Koin Compiler Plugin rules.

# Claude Code
/plugin marketplace add InsertKoinIO/koin-skills
/plugin install koin@koin-skills

# Cursor, Codex, Copilot and other agents
npx skills add InsertKoinIO/koin-skills

Both commands install from the koin-skills repository on GitHub (npx skills needs Node.js 22+). See AI Agents and Koin Skills.

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)

Ищем в базе…

Что это такое?Koin — это практичная и лёгкая библиотека внедрения зависимостей для Kotlin-разработчиков, с поддержкой Kotlin Multiplatform. Её развивает Kotzilla и участники открытого сообщества.
Это библиотека, которую я добавляю в свой код, или отдельный инструмент, который работает рядом с приложением?Это фреймворк, который вы подключаете как обычную зависимость в Kotlin-проекте: зависимости объявляются прямо в Kotlin-коде через лаконичный и идиоматичный DSL от Koin, без лишнего шаблонного кода.
Как добавить его в свой проект?Следуйте отдельной странице настройки на сайте Koin — там описано, как настроить проект, и перечислены актуальные версии Koin.
Если я неправильно настрою зависимость, я узнаю об этом только когда приложение упадёт во время работы?С Koin Compiler Plugin граф зависимостей проверяется ещё на этапе компиляции: компилятор сам укажет на отсутствующие привязки, сломанные объявления и неправильно настроенные модули, так что приложение не упадёт во время работы.
Это только для Android или работает и на iOS и на других платформах?Не только для Android — Koin ориентирован на Kotlin Multiplatform, а в README описана полная отчётность о сбоях на Android, iOS и всех KMP-платформах.
Мне нужна платформа Kotzilla или платный тариф, чтобы пользоваться Koin?Нет. Сам Koin — открытый проект, плагин для IDE бесплатен на JetBrains Marketplace, а помощь сообщества доступна в канале #koin в Kotlin Slack, на Stack Overflow и в issues на GitHub. Платформа наблюдаемости Kotzilla и корпоративная поддержка Koin LTS — это отдельные продукты, которые подключаются по желанию.
Что Koin LTS даёт командам в продакшене?Это корпоративный уровень поддержки от Kotzilla: обновления со SLA и гарантированным временем ответа, долгосрочное сопровождение стабилизированных версий вроде Koin 3.5 LTS, патчи безопасности и соответствия требованиям, приоритетное исправление багов и прямой контакт с командой, которая делает Koin.
Koin — это зрелый и активно развиваемый проект?Да. Проект развивается с 2017 года, у него около 10 000 звёзд на GitHub, а в репозитории настроены непрерывные сборка, тесты, релизы и еженедельные CI-процессах. Релизы и анонсы публикуются в блоге Koin.
Какие есть похожие проекты?kotlin, ARouter, komi-store, ab-download-manager, kivy, MaterialDrawer, AppIntro, gkd
Автор
InsertKoinIO
Размер
43.4 MB
Звёзды
10K
Возраст
9 г
Коммиты · 90 дней