{"id":13536807,"url":"https://github.com/mori-atsushi/koject","last_synced_at":"2025-04-02T03:31:14.122Z","repository":{"id":76755032,"uuid":"605139896","full_name":"mori-atsushi/koject","owner":"mori-atsushi","description":"DI Container library for Kotlin Multiplatform.","archived":false,"fork":false,"pushed_at":"2025-02-26T18:36:42.000Z","size":5642,"stargazers_count":122,"open_issues_count":17,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-26T19:34:35.207Z","etag":null,"topics":["android","di-container","kotlin","kotlin-js","kotlin-multiplatform","kotlin-native"],"latest_commit_sha":null,"homepage":"https://mori-atsushi.github.io/koject/","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mori-atsushi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-22T14:30:38.000Z","updated_at":"2024-08-03T02:18:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"d869499e-c935-41d9-9b20-70d6a4eaeeb9","html_url":"https://github.com/mori-atsushi/koject","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mori-atsushi%2Fkoject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mori-atsushi%2Fkoject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mori-atsushi%2Fkoject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mori-atsushi%2Fkoject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mori-atsushi","download_url":"https://codeload.github.com/mori-atsushi/koject/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246751075,"owners_count":20827831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","di-container","kotlin","kotlin-js","kotlin-multiplatform","kotlin-native"],"created_at":"2024-08-01T09:00:49.835Z","updated_at":"2025-04-02T03:31:11.015Z","avatar_url":"https://github.com/mori-atsushi.png","language":"Kotlin","readme":"# Koject\n[![](https://img.shields.io/badge/Kotlin-Multiplatform-%237f52ff?logo=kotlin)](https://kotlinlang.org/docs/multiplatform.html)\n[![](https://img.shields.io/maven-central/v/com.moriatsushi.koject/koject-core)](https://mvnrepository.com/artifact/com.moriatsushi.koject/koject-core)\n[![](https://img.shields.io/github/license/mori-atsushi/koject)](https://github.com/Mori-Atsushi/koject/blob/main/LICENSE)\n\nKoject is a DI Container Library for Kolin Multiplatform using KSP.\n\n```kotlin\nfun main() {\n    Koject.start()\n\n    val controller = inject\u003cController\u003e()\n}\n\n@Singleton\n@Provides\nclass Api\n\n@Singleton\n@Provides\nfun provideDB(): DB {\n    return DB.create()\n}\n\n@Binds\n@Singleton\n@Provides\nclass RepositoryImpl(\n    private val api: Api,\n    private val db: DB,\n): Repository\n\ninterface Repository\n\n@Provides\nclass Controller(\n    private val repository: Repository\n)\n```\n\n## Features\n* Support [Kotlin Multiplatform](https://kotlinlang.org/docs/multiplatform.html)\n* Easy provide with annotations\n* Check dependency graph at compile time\n* Code generation with [KSP](https://github.com/google/ksp)\n* Support multi-module project\n\n## Documents\n* [Setup](https://mori-atsushi.github.io/koject/docs/setup)\n* [Core](https://mori-atsushi.github.io/koject/docs/core)\n  * [Start Koject](https://mori-atsushi.github.io/koject/docs/core/basic)\n  * [Qualifier](https://mori-atsushi.github.io/koject/docs/core/qualifier)\n  * [Binds](https://mori-atsushi.github.io/koject/docs/core/binds)\n* [Test](https://mori-atsushi.github.io/koject/docs/test)\n* [Android](https://mori-atsushi.github.io/koject/docs/android)\n* [iOS (KMM)](https://mori-atsushi.github.io/koject/docs/ios)\n* [Compose](https://mori-atsushi.github.io/koject/docs/compose)\n\n## Examples\n* [Koject TODO (KMM)](https://github.com/Mori-Atsushi/koject/tree/main/examples/kmm)\n* [Now in Android App with Koject (Android)](https://github.com/mori-atsushi/nowinandroid)\n\n## Related libraries\nKoject is inspired by the following libraries.\n\n* [google/dagger](https://github.com/google/dagger)\n* [InsertKoinIO/koin](https://github.com/InsertKoinIO/koin)\n* [evant/kotlin-inject](https://github.com/evant/kotlin-inject)\n* [mars885/hilt-binder](https://github.com/mars885/hilt-binder)\n","funding_links":[],"categories":["Libraries","IoC"],"sub_categories":["DI","Spring Cloud框架","💉 Dependency Injection"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmori-atsushi%2Fkoject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmori-atsushi%2Fkoject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmori-atsushi%2Fkoject/lists"}