Dependency injection
Dependency injection (DI) is an implementation of the dependency inversion principle with the aim of separation of concerns by separating the depndency’s implementation from the class that’s using it. That kind of abstraction makes it possible to have different implementations with the same public methods so the class using it, doesn’t need to care which of the implementations is used. This is also especially useful for unit testing.
There are different types of dependency injection:
- GitHub: https://github.com/topics/dependency-injection
- Wikipedia: https://en.wikipedia.org/wiki/Dependency_injection
- Created by: Martin Fowler
- Released: January 23, 2004
- Related Topics: separation-of-concerns, loose-coupling, dependency-inversion-principle, inversion-of-control, constructor-injection, service-locator-pattern, dependency-injection-container,
- Aliases: dependency-injection-pattern,
- Last updated: 2026-06-15 00:08:08 UTC
- JSON Representation
https://github.com/fasterspeeding/tanjun
A flexible command framework designed to extend the Hikari experience
dependency-injection discord discord-api discord-bot discord-bot-framework hacktoberfest hikari slash-commands tanjun
Last synced: 20 Mar 2025
https://github.com/simpleboilerplates/ios
A sample project demonstrating MVVM, RxSwift, Coordinator Pattern, Dependency Injection
coordinator-pattern dependency-injection ios moya mvvm rxswift swift swinject
Last synced: 19 Jun 2025
https://github.com/cursed-solutions/tanjun
A flexible command framework designed to extend the Hikari experience
dependency-injection discord discord-api discord-bot discord-bot-framework hacktoberfest hikari slash-commands tanjun
Last synced: 06 Apr 2025
https://github.com/0xleif/appstate
🧠 Effortless State Management and Dependency Injection for Swift 6 Applications
apple dependency-injection ios linux macos observable property-wrapper published sendable state state-management swift swift-on-server swiftui tvos ubuntu visionos watchos windows
Last synced: 07 Apr 2025
https://github.com/mohak1712/mvpandroid
Sample app to demonstrate MVP (Model - View - Presenter) architecture in android
android android-application androidapp dagger2 dependency-injection espresso mockito mvp mvp-android mvp-architecture mvp-pattern rxandroid rxjava
Last synced: 03 Mar 2026
https://github.com/Finistere/antidote
Dependency injection for Python
dependency dependency-injection injection python
Last synced: 24 Mar 2025
https://github.com/kaushalvasava/xphotogram
It is a XPhotogram app using Jetpack compose. I used dependency Injection, Retrofit2, Viewpager, MVVM architecture, Flow, bottom-navigation, navigation graph, and animations.
android bottom-navigation compose dagger-hilt dependency-injection flow jetpack jetpack-android jetpack-compose jetpack-compose-navigation jetpackcompose kotlin restapi retrofit2 ui-components ui-design uikit viewmodel viewpager
Last synced: 30 Apr 2025
https://github.com/rbusarow/tangle
Android injection using the Anvil compiler plugin
android anvil dagger2 dependency-injection kotlin
Last synced: 17 Oct 2025
https://github.com/zihantype/rudi
Rudi - an out-of-the-box dependency injection framework for Rust -- Rudi,一个开箱即用的 Rust 依赖注入框架
dependency dependency-injection di ioc
Last synced: 04 Apr 2025
https://github.com/rodion-m/chatgpt_api_dotnet
OpenAI, Azure OpenAI and OpenRouter Chat Completions (ChatGPT) .NET integration with DI, persistence and streaming support
api-client aspnetcore azure azureopenai chatgpt chatgpt-api csharp dependency-injection entity-framework-core gpt-3 gpt-4 openai openrouter
Last synced: 09 Apr 2025
https://github.com/suned/serum
Dependency injection framework for Python 3.6
configuration convenience dependency-injection pycharm python solid
Last synced: 29 Sep 2025
https://github.com/kawser2133/web-api-project
Explore a meticulously crafted ASP.NET Core Web API, featuring Security Identity, JWT, Unit Testing, and API Versioning. This repository embodies best coding practices, delivering a clean, efficient, and scalable solution.
asp-net-core asp-net-core-web-api clean-architecture clean-code crud-api crud-operation dependency-injection jwt rest-api solid-design-principles web-api
Last synced: 01 Jul 2025
https://github.com/0xLeif/AppState
🧠 Effortless State Management and Dependency Injection for Swift 6 Applications
apple dependency-injection ios linux macos observable property-wrapper published sendable state state-management swift swift-on-server swiftui tvos ubuntu visionos watchos windows
Last synced: 11 Mar 2025
https://github.com/jbee/purejin
java dependency injection through code
configuration-by-code dependency-injection java
Last synced: 28 Jun 2025
https://github.com/mehrankmlf/easycrypto
Clean Architecture and MVVM + Coordinator and Combine
api apimanager architecture clean-architecture combine coredata coredata-swiftui dependency-injection ios ios-app ios-open-source mvvm-architecture swift swift5 swiftui swiftui-example swiftui-learning unit-testing viewmodel
Last synced: 04 Sep 2025
https://github.com/lsm/alfa
Effortless React State Management.
alfa dependency-injection functional react state subscription
Last synced: 12 Mar 2026
https://github.com/apkd/Medicine
Code-driven component injection toolkit for Unity.
dependency-injection hacktoberfest prototyping-tool unity unity3d unity3d-framework
Last synced: 25 Apr 2025
https://github.com/ckgrafico/inversify-props
Wrapper of Inversify to inject your dependencies in the components, made with TypeScript and compatible with Vue, React and other component libraries.
component dependency-injection injection lit-element polymer react vue
Last synced: 26 Oct 2025
https://github.com/aliencube/azurefunctions.extensions
This provides some useful extensions for Azure Functions.
azure-functions dependency-injection extensions hacktoberfest ioc-container open-api swagger swagger-ui
Last synced: 11 Apr 2025
https://github.com/wessberg/DI-compiler
A Custom Transformer for Typescript that enables compile-time Dependency Injection
custom-transformer dependency-injection di inversion ioc reflection service-container singleton transient typescript
Last synced: 12 Jul 2025
https://github.com/wessberg/di-compiler
A Custom Transformer for Typescript that enables compile-time Dependency Injection
custom-transformer dependency-injection di inversion ioc reflection service-container singleton transient typescript
Last synced: 20 Jun 2025
https://github.com/tranngoclam/movie-booking
An example for booking movie seat, combined of Android Data Binding, State Design Pattern and Multibinding + Autofactory. iOS version is: https://github.com/lizhiquan/MovieBooking
android android-ui architecture booking clean-code dagger2 data-binding dependency-injection design-pattern factory film movie multibinding recyclerview state
Last synced: 03 Jul 2025
https://github.com/kaushikgopal/playground-android
Opinionated Android app starter template. I pick the best choice(s) of libraries & solutions (imo) and keep it ready for forking off and building your next Android app.
android android-app anvil compose-navigation compose-ui dependency-injection edge-to-edge gradle gradle-plugin kotlin kotlin-inject multi-module shared-build-tool usf
Last synced: 09 Apr 2025
https://github.com/mehrankmlf/EasyCrypto
Clean Architecture and MVVM + Coordinator and Combine
api apimanager architecture clean-architecture combine coredata coredata-swiftui dependency-injection ios ios-app ios-open-source mvvm-architecture swift swift5 swiftui swiftui-example swiftui-learning unit-testing viewmodel
Last synced: 03 May 2025
https://github.com/ByteWelder/Spork
Annotation processing and dependency injection for Java/Android
android annotation-processing dependency-injection java
Last synced: 13 Mar 2026
https://github.com/andreluizsecco/unitofwork.bookstore
Example of implementation of the Unit of Work Pattern
aspnetcore dapper dependency-injection efcore repository-pattern unit-of-work unit-of-work-pattern
Last synced: 07 Sep 2025
https://github.com/mnapoli/fluent-symfony
Fluent configuration for Symfony
dependency-injection php symfony
Last synced: 20 Aug 2025
https://github.com/wzhudev/redi
💉 A dependency injection library for TypeScript & JavaScript, along with a binding for React.
dependency-injection ioc react typescript
Last synced: 17 Mar 2025
https://github.com/disjukr/bunja
State Lifetime Manager
dependency-injection jotai lifetime raii
Last synced: 20 Jan 2026
https://github.com/kocsismate/php-di-container-benchmarks
Benchmark for some popular PHP Dependency Injection Containers.
benchmark dependency-injection di-containers php
Last synced: 15 Mar 2025
https://github.com/harmittaa/KoinExample
Basic example of setting up Koin 2.0.1 with AndroidX
android androidx dependency-injection koin
Last synced: 08 Mar 2026
https://github.com/cekta/di
psr/container implementation for humans
container dependency-injection di php psr-11
Last synced: 05 Apr 2025
https://github.com/Rick-van-Dam/Singularity
A extremely fast ioc container for high performance applications
csharp dependency-injection dependency-injection-container di di-container dotnet duality inversion-of-control inversionofcontrol ioc ioc-container ioc-framework net netcore netstandard singularity
Last synced: 08 May 2025
https://github.com/BrianSpace/Android-App-Architecture-MVVM-Databinding
A simple but complete project (in both Java & Kotlin) to demonstrate the Android application architecture with MVVM pattern, a client app for The Movie DB Web API. Dagger2 is used for dependency injection and RxJava is used for RFP (Reactive Functional Programming).
android android-application-architecture android-development application-architecture dagger2 databinding dependency-injection kotlin kotlin-android-extensions mockito mockito-kotlin mvvm retrofit2-rxjava2 rfp room-persistence-library rx-android rxjava2
Last synced: 28 Mar 2025
https://github.com/orsinium-labs/eff
Python library to work with algebraic effects
algebraic-effects dependency-injection effects python side-effects
Last synced: 04 Aug 2025
https://github.com/fjorgemota/jimple
Just a dependency injection container to NodeJS and to the browser using new ES6 features
dependency-injection inversion-of-control nodejs pimple
Last synced: 09 Jul 2025
https://github.com/mbierlee/poodinis
Dependency injection framework for D with support for autowiring.
d dependency-injection dlang dub injection ioc ioc-container poodinis
Last synced: 11 Jan 2026
https://github.com/Hotell/rea-di
Dependency injection for React done right. Hierarchical injection on both component and service layer powered by injection-js (Angular DI framework) 🖖
angular dependency-injection react typescript
Last synced: 24 Apr 2025
https://github.com/joesdu/easilynet
tools, mongo, webapi and more
dependency-injection dotnetcore eventbus mongodb rabbitmq tools
Last synced: 08 Apr 2026
https://github.com/hotell/rea-di
Dependency injection for React done right. Hierarchical injection on both component and service layer powered by injection-js (Angular DI framework) 🖖
angular dependency-injection react typescript
Last synced: 19 Apr 2025
https://github.com/container-interop/service-provider
[EXPERIMENTAL] Promoting container/framework interoperability through standard service providers
dependency-injection php psr service-provider
Last synced: 27 Jan 2026
https://github.com/patrickklaeren/AutoRegisterInject
C# Source Generator to automatically register dependencies in Microsoft Dependency Injection Service Collection
csharp dependency-injection microsoft source-generator
Last synced: 17 Apr 2025
https://github.com/xljiulang/webapiclient.extensions
WebApiClient项目的第三方扩展:Autofac、DependencyInjection、HttpClientFactory、SteeltoeOSS.Discovery、MessagePack、Protobuf、Json-Rpc
autofac dependency-injection discoveryclient httpclientfactory json-rpc messagepack protobuf webapiclient
Last synced: 30 Apr 2025
https://github.com/xljiulang/WebApiClient.Extensions
WebApiClient项目的第三方扩展:Autofac、DependencyInjection、HttpClientFactory、SteeltoeOSS.Discovery、MessagePack、Protobuf、Json-Rpc
autofac dependency-injection discoveryclient httpclientfactory json-rpc messagepack protobuf webapiclient
Last synced: 04 May 2025
https://github.com/racc/typesafeconfig-guice
Allows Guice Injection of configuration values from Typesafe Config
dependency-injection guice hocon typesafe-config
Last synced: 14 Jan 2026
https://github.com/BoostIO/tachijs
Highly testable dead simple web server written in Typescript :rocket:
decorators dependency-injection expressjs inversifyjs nestjs typescript
Last synced: 18 Jul 2025
https://github.com/boostio/tachijs
Highly testable dead simple web server written in Typescript :rocket:
decorators dependency-injection expressjs inversifyjs nestjs typescript
Last synced: 09 Jan 2026
https://github.com/dealloc/vuec
A simple IoC container for VueJS 2
dependency-injection plugin vue
Last synced: 22 Apr 2025
https://github.com/zechcodes/bevy
A dependency injection framework for Python! Bevy's primary goal is to help you write amazing code with less effort.
dependency-injection python python3
Last synced: 05 Apr 2025
https://github.com/zhming0/sai
A minimal IoC/DI framework for Rust.
async dependency-injection inversion-of-control rust
Last synced: 03 May 2025
https://github.com/orakaro/pure-swift-dependency-injection
Dependency Injection in Pure Swift
cake-pattern dependency-injection swift
Last synced: 12 Apr 2025
https://github.com/illuin-tech/opyoid
Dependency injection library for Python
dependency-injection injection python
Last synced: 04 Apr 2025
https://github.com/daugeldauge/kinzhal
Compile-time dependency injection for Kotlin Multiplatform
dependency-injection kotlin multiplatform-kotlin-library
Last synced: 07 May 2025
https://github.com/opensumi/di
A Dependency Injection Library for JavaScript. Support AOP.
browser dependency-injection ioc nodejs
Last synced: 09 Apr 2025
https://github.com/umplify/xunit-dependency-injection
:fire: A small library to help .NET developers leverage Microsoft's dependency injection framework in their Xunit-powered test projects
c-sharp csharp csharp-lib csharp-library dependency-injection dependencyinjection dotnet dotnet-core dotnetcore microsoft-dependency-injection test testing xunit xunit-framework xunit-frameworks xunit-runner xunit-test xunit-tests
Last synced: 20 Feb 2026
https://github.com/real-serious-games/factory
Factory for object creation and dependency injection. Works with normal C# apps or under Unity3d
dependency-injection factory game-development inversion-of-control unity unity3d
Last synced: 21 Aug 2025
https://github.com/codergogoi/node.js-clean-architecture
This repository is a representation of Clean Architecture practical implementation in Node.JS. We have two videos that is explain the core concept of Clean Architecture and how it solves the problem that we facing in traditional approach while building a backend service.
clean-architecture clean-code dependency-injection inversion-of-control solid-principles
Last synced: 13 Apr 2025
https://github.com/misfitlabsdev/kotlin-guice
Guice DSL extensions for Kotlin
dependency-injection guice kotlin
Last synced: 13 Jun 2025
https://github.com/radzserg/rsdi
Dependency Injection Container
dependency-injection javascript typescript
Last synced: 26 Jan 2026
https://github.com/di-ninja/di-ninja
The Dependency Injection Framework for JavaScript NodeJS and Browser - really made for Composition Root
babel best-practices composition-root decorator dependency dependency-injection dependency-injection-container di dic factory framework injection inversion-of-control ioc node oop react-native strategy webpack
Last synced: 23 Aug 2025
https://github.com/nvidia/gontainer
Simple but powerful dependency injection container for Go projects!
dependency-injection golang service-container
Last synced: 18 Apr 2026
https://github.com/appsquickly/pilgrim
Dependency injection for Swift (iOS, OSX, Linux). Strongly typed, pure Swift successor to Typhoon.
appsquickly dependency-injection di inversion-of-control ioc ioc-container ios objective-c pilgrim swift typhoon
Last synced: 02 Aug 2025
https://github.com/pablothedolphin/Scriptable-Framework
A Unity Framework for modular app creation based on ScriptableObject architecture, data oriented design and event driven programming to help programmers and designers adhere to the 5 SOLID programming principals.
dependency-injection framework modularity unity
Last synced: 25 Apr 2025
https://github.com/catalinghita8/android-mvvm-rxjava2-dagger2
This repository contains a detailed sample application that uses MVVM as its presentation layer pattern. Essential dependencies are Dagger2 with Dagger-android, RxJava2 with RxAndroid, Room, Retrofit and Espresso.
android-development dagger-android dagger2 dependency-injection kotlin mvvm mvvm-pattern room-persistence-library rxjava2 rxjava2-dagger2-retrofit2 viewmodel
Last synced: 10 Apr 2025
https://github.com/wttech/slice
Slice - a framework which simplifies Sling/AEM development by using dependency injection pattern and mapping Sling resources into Java objects
aem apache-sling dependency-injection google-guice guice htl java sightly sling
Last synced: 12 Apr 2025
https://github.com/tfc/nix_cmake_example
An example with nix: How to automatically and reproducibly build and integration-test a database C++ app in 60 different build-configurations (library exchange/compiler exchange/static-nonstatic)
build-automation build-configuration c-plus-plus dependency-injection dependency-manager docker docker-image integration-testing nix python reproducible-builds virtualization workflow
Last synced: 19 Jul 2025
https://github.com/melbournedeveloper/ioc_container
A lightweight, flexible, and high-performance dependency injection and service location library for Dart and Flutter
dart dependency-injection flutter mobiledevelopment
Last synced: 16 Mar 2025
https://github.com/cathive/fx-guice
Google Guice integration for FXML-based JavaFX applications
dependency-injection fxml guice javafx
Last synced: 26 Oct 2025
https://github.com/javierpe/artgallery
Server Driven UI with Jetpack Compose and Hilt
android compose-navigation compose-testing dependency-injection dynamic-views hilt hilt-android jetpack-android jetpack-compose kotlin ksp macrobenchmark sdui server-driven-ui
Last synced: 15 Oct 2025
https://github.com/pereviader/manualdi
Fast and extensible C# dependency injection library without reflection. Works seamlessly in both Unity3d and plain C# projects
csharp dependency-injection dependency-injection-container dotnet ioc ioc-container unity3d unity3d-plugin
Last synced: 01 Mar 2026
https://github.com/alexanderlarsen/saneject
Dependency injection the Unity way
dependency-injection di saneject serialized-interfaces unity unity-editor unity-inspector unity-tools unity3d
Last synced: 04 May 2026
https://github.com/filip-drabinski/fluentish.godot.dependencyinjection
Lightweight and easy-to-use dependency injection framework for the Godot game engine
dependency-injection godot godot-engine godot-game-engine godotengine
Last synced: 23 Apr 2025
https://github.com/amanjeetsingh150/dagger-track
Gradle plugin to add clock trackings to your dagger components and subcomponents
cpu dagger dagger-android dagger-hilt dagger2 dependency-injection logging performance
Last synced: 26 Mar 2025
https://github.com/stevenleep/electron-ipc
⚡ electron-ipc system is a decorator-based IPC (Inter-Process Communication) management framework designed to simplify communication between Electron processes through the use of TypeScript decorators and dependency injection patterns.
container decorators dependency-injection di electron electron-ipc
Last synced: 17 Apr 2026
https://github.com/phs/sauce
A C++98 Dependency Injection Framework MOVED TO GITLAB
c-plus-plus dependency-injection
Last synced: 13 Jul 2025
https://github.com/Filip-Drabinski/Fluentish.Godot.DependencyInjection
Lightweight and easy-to-use dependency injection framework for the Godot game engine
dependency-injection godot godot-engine godot-game-engine godotengine
Last synced: 01 Jul 2025
https://github.com/jveverka/java-11-examples
JDK 11 examples and demo projects.
akka avro blockchain clustering dagger dependency-injection google-guice grpc hazelcast hibernate java11 jetty jni kafka mongodb mongodb-database rxjava ssh ssh-server testcontainers
Last synced: 03 Oct 2025
https://github.com/symentis/corridor
A Coreader-like Dependency Injection μFramework
coreader dependency-injection functional-programming ios swift swift-4 swift-framework
Last synced: 11 Oct 2025
https://github.com/symentis/Corridor
A Coreader-like Dependency Injection μFramework
coreader dependency-injection functional-programming ios swift swift-4 swift-framework
Last synced: 25 Mar 2025
https://github.com/Iamstanlee/expense_bud
An app to keep of track your expenses and stay on top of your game with detailed insights, built with clean architecture and MVVM pattern 🚀
android clean-architecture dart dependency-injection flutter flutter-apps flutter-examples mvvm
Last synced: 01 May 2025
https://github.com/woltapp/magic-di
Dependency Injector with minimal boilerplate code, built-in support for FastAPI and Celery, and seamless integration to basically anything.
asyncio celery dependecy-container dependency-injection fastapi python
Last synced: 25 Jun 2025
https://github.com/lucatume/di52
The dependency injection container for streamlined WordPress development. Easily manage and inject dependencies for efficient and hassle-free app creation.
dependency-injection php wordpress
Last synced: 06 Apr 2025
https://github.com/freshgum-bubbles/typedi
Elegant Dependency Injection in TypeScript and JavaScript.
dependency-injection javascript javascript-library typedi typescript typescript-decorators typescript-definitions typescript-library
Last synced: 08 Apr 2026
https://github.com/gnodi/danf
Danf is a Node.js full-stack isomorphic OOP framework allowing to code the same way on both client and server sides. It helps you to make deep architectures and handle asynchronous flows in order to help in producing scalable, maintainable, testable and performant applications.
architecture asynchronous danf dependency-injection event framework isomorphic nodejs oop universal
Last synced: 23 Apr 2025
https://github.com/mars-amn/Social-Note
Social Note - Note-taking, sharing, time & location reminder
android androidarchitecturecomponets androidx cloudfunctions dependency-injection firebase firebaseauth firebasemessaging firebasestorage firestore koin-kotlin kotlin lottie-android mvvm-architecture push-notifications room rxandroid2 rxjava2 viewmodel workmanager-kotlin
Last synced: 11 May 2025
https://github.com/alyelhaddad/thunderboltioc
One of the very first IoC frameworks for .Net that has no reflection. An IoC that casts its services before thunder casts its bolts.
c-sharp csharp dependency-injection dotnet inversion-of-control ioc ioc-container roslyn roslyn-generator source-generation source-generators
Last synced: 07 May 2025
https://github.com/prosumma/Guise
An elegant, flexible, type-safe dependency resolution framework for Swift
dependency-injection dependency-resolution service-locator swift unit-testing
Last synced: 03 Aug 2025
https://github.com/ourcade/ecs-dependency-injection
Showcasing the decoupling powers of ECS and DI in game dev
dependency-injection entity-component-system experiment game-development gamedev typescript
Last synced: 15 Mar 2026
https://github.com/prosumma/guise
An elegant, flexible, type-safe dependency resolution framework for Swift
dependency-injection dependency-resolution service-locator swift unit-testing
Last synced: 25 Jul 2025
https://github.com/ferdinand-beyer/init
Dependency injection a la carte
clojure dependency-injection initialization
Last synced: 21 Oct 2025
https://github.com/onebeyond/systemic
📦 A minimal dependency injection framework.
Last synced: 12 Apr 2025
https://github.com/sunary/ank
Python data pipeline
ank chain dependency-injection distributed-systems docker microservices python-microservices queue schedule
Last synced: 28 Apr 2025
https://github.com/notypecheck/aioinject
Async-first python dependency injection library
asyncio dependency-injection di python
Last synced: 06 Apr 2026
https://github.com/vanillasource/jaywire
JayWire Dependency Injection
dependency-injection di java jaywire-dependency-injection
Last synced: 11 Jan 2026
https://github.com/pbissonho/koin.dart
A pragmatic lightweight dependency injection library. This is a port of Koin for Dart projects.
Last synced: 08 Jul 2025
https://github.com/dreamescaper/servicescan.sourcegenerator
Assembly scanning source generator for Microsoft.Extensions.DependencyInjection
assembly-scanning dependency-injection dotnet source-generator
Last synced: 13 Apr 2025
https://github.com/Dreamescaper/ServiceScan.SourceGenerator
Assembly scanning source generator for Microsoft.Extensions.DependencyInjection
assembly-scanning dependency-injection dotnet source-generator
Last synced: 17 Apr 2025
https://github.com/jechol/definject
Unobtrusive Dependency Injector for Elixir
dependency-injection di elixir hacktoberfest mock unobtrusive
Last synced: 01 Apr 2026
https://github.com/h2non/siringa
Minimalist dependency injection library for Python that embraces type annotations syntax
dependency dependency-injection dependency-injection-container injection-container inversion-of-control pattern-matching
Last synced: 07 Jan 2026
https://github.com/enisn/dotnurseinjector
Simple, lightweight & useful Dependency Injector for dotnet.
attribute-injection csharp dependency-injection dependency-injector dotnet dotnet-core injector ioc
Last synced: 23 Mar 2025