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/johncarl81/transfuse
:syringe: Transfuse - A Dependency Injection and Integration framework for Google Android
android android-architecture annotation-processor dependency-injection framework java
Last synced: 05 Apr 2025
https://github.com/deliveryhero/whetstone
Whetstone is a dependency injection framework for Android that greatly simplifies working with Dagger 2 using all the powers of Anvil
android anvil dagger2 dependency-injection kotlin
Last synced: 14 Jan 2026
https://github.com/awmleer/reto
Flexible and efficient React Store with hooks.
dependency-injection hooks react reactjs redux state-management store
Last synced: 09 Aug 2025
https://github.com/volt-software/ichor
C++20 Microservice Bootstrapping Framework
beast boost boost-beast cmake coroutine coroutines cpp20 cpp20-library dependency-injection event-loops realtime thread-confinement thread-safety threads
Last synced: 04 Apr 2025
https://github.com/yuzd/autofac.annotation
DI容器,依赖注入,AOP,动态代理等用注解来load autofac 摆脱代码或者xml配置和java的spring的注解注入一样的体验
attributes autofac autofac-spring configuration dependency-injection ioc-container spring spring-expression
Last synced: 12 Apr 2025
https://github.com/yuzd/Autofac.Annotation
DI容器,依赖注入,AOP,动态代理等用注解来load autofac 摆脱代码或者xml配置和java的spring的注解注入一样的体验
attributes autofac autofac-spring configuration dependency-injection ioc-container spring spring-expression
Last synced: 04 May 2025
https://github.com/modern-python/that-depends
Simple Dependency injection framework for Python
dependency-injection di ioc ioc-container mocks python
Last synced: 15 May 2025
https://github.com/wojciech-kulik/swift-mvvmc-demo
Sample iOS application in Swift presenting MVVM-C architecture
coordinators dependency-injection ios mvvm mvvmc rxswift swift
Last synced: 08 Apr 2025
https://github.com/vovaspace/brandi
The dependency injection container powered by TypeScript.
container dependency-injection dependency-injection-container dependency-inversion di-container inversion-of-control inversion-of-control-container ioc-container typescript
Last synced: 01 Apr 2025
https://github.com/autofac/autofac.extensions.dependencyinjection
Autofac implementation of the interfaces in Microsoft.Extensions.DependencyInjection.Abstractions, the .NET Core dependency injection abstraction.
autofac dependency-injection netcore
Last synced: 07 Apr 2025
https://github.com/insertkoinio/koin-annotations
Koin Annotations - About Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform insert-koin.io
android dependency-injection kotlin kotlin-multiplatform ksp
Last synced: 12 Apr 2025
https://github.com/ray-di/Ray.Di
A dependency injection framework for PHP
annotations aop autowire dependency-injection di guice
Last synced: 01 May 2025
https://github.com/elliotchance/dingo
🐺 Easy, fast and type-safe dependency injection for Go.
dependency-injection factories golang mocking
Last synced: 20 Jun 2025
https://github.com/go-kod/kod
A generics based dependency injection application framework for Go, supporting aspect oriented programming based on interceptors
aop application code-generation dependency-injection dependency-management di do framework fx generics go golang interceptor microservice opentelemetry reflection spring spring-boot wire
Last synced: 16 May 2025
https://github.com/yiisoft/di
PSR-11 compatible DI container and injector
autowiring container dependency-injection di di-container hacktoberfest injector psr-11 yii3
Last synced: 15 May 2025
https://github.com/i-love-flamingo/dingo
Go Dependency Injection Framework
dependency-injection flamingo-module golang golang-package hacktoberfest
Last synced: 09 Apr 2025
https://github.com/neuecc/MicroResolver
Extremely Fast Dependency Injection Library.
csharp dependency-injection ioc-container service-locator
Last synced: 04 May 2025
https://github.com/hidevopsio/hiboot
hiboot is a high performance web and cli application framework with dependency injection support
application autoconfiguration cli cloudnative command command-line-tool container dependency-injection di golang ioc mvc web webapp
Last synced: 18 Feb 2026
https://github.com/Neoteroi/rodi
Implementation of dependency injection for Python 3
Last synced: 24 Mar 2025
https://github.com/dfed/safedi
Compile-time-safe dependency injection in Swift
dependency-injection dependency-management swift
Last synced: 02 May 2026
https://github.com/dry-rb/dry-auto_inject
Container-agnostic constructor injection mixin
dependency-injection dry-rb ioc ruby
Last synced: 14 May 2025
https://github.com/kukkimonsuta/inversify-react
Components and decorators to connect react with inversify.
decorators dependency-injection inversify react
Last synced: 15 May 2025
https://github.com/etorreborre/registry
Components as records of functions for Haskell
dependency-injection haskell modules
Last synced: 04 Apr 2025
https://github.com/rcaos/TVToday
iOS TV Shows app with TMDb Api. Combine, MVVM + Coordinator. Modular Architecture. Swift Package Manager
clean-architecture combine combine-framework coordinator coordinator-pattern dependency-injection ios ios-app modular-architecture mvvm spm swift swift-package-manager swift5 themoviedb themoviedb-api tmdb tmdb-api
Last synced: 12 May 2025
https://github.com/deprecated-packages/package-builder
Speed up your package DI containers integration and console apps to Symfony and Nette
console dependency-injection php71 symfony
Last synced: 03 Oct 2025
https://github.com/agileago/vue3-oop
使用类和依赖注入写vue组件
decorators dependency-injection ioc vue3
Last synced: 16 May 2025
https://github.com/wix-incubator/repluggable
Pluggable micro frontends in React+Redux apps
dependency-injection framework frontend inversion-of-control micro-frontends typescript
Last synced: 20 Aug 2025
https://github.com/teamwork/android-clean-architecture
Showcasing a Clean Architecture approach from our Android applications framework!
android clean-architecture clean-code dagger2 dependency-injection gradle java kotlin layered-architecture modules
Last synced: 27 Apr 2025
https://github.com/dhaspden/nestjs-stripe
Provides an injectable Stripe client to nestjs modules
dependency-injection nestjs nodejs payment payment-processing stripe typescript
Last synced: 30 Dec 2025
https://github.com/laminas/laminas-servicemanager
Factory-Driven Dependency Injection Container
Last synced: 02 Jul 2025
https://github.com/corbella83/PopKorn
DI can be simple. Forget about modules and components. Just use it!
android dependency-injection injection java kotlin kotlin-dependency-injection kotlin-library kotlin-multiplatform multiplatform
Last synced: 16 Mar 2025
https://github.com/chickensoft-games/AutoInject
Node-based dependency injection for C# Godot scripts at build-time, including utilities for automatic node-binding, additional lifecycle hooks, and .net-inspired notification callbacks.
autoinject dependency-injection dotnet godot
Last synced: 04 Sep 2025
https://github.com/elias8/last_fm
A simple app to demonstrate a testable, maintainable, and scalable architecture for flutter. flutter_bloc, get_it, hive, and REST API are some of the tech stacks used in this project.
bloc clean-architecture dart dependency-injection flutter hive lastfm layered-architecture music rest-api test
Last synced: 12 Sep 2025
https://github.com/molszanski/iti
~1kB Dependency Injection Library for Typescript and React with a unique support of async flow
dependency-injection dependency-inversion di ioc ioc-container react type-safety typescript
Last synced: 19 Jun 2025
https://github.com/PatilShreyas/Covid19-Notifier-IN
A sample Android App which notifies about COVID19 cases in 🇮🇳India after every 1 hour.
android android-app android-architecture-components coroutines dependency-injection flow hacktoberfest koin-kotlin kotlin workmanager workmanager-kotlin
Last synced: 20 Feb 2026
https://github.com/patilshreyas/covid19-notifier-in
A sample Android App which notifies about COVID19 cases in 🇮🇳India after every 1 hour.
android android-app android-architecture-components coroutines dependency-injection flow hacktoberfest koin-kotlin kotlin workmanager workmanager-kotlin
Last synced: 25 Sep 2025
https://github.com/wppunk/wpplugin
Boilerplate for WordPress plugin using autoload, coding standard, webpack, PHP/JS tests, etc.
autoload dependency-injection gh-actions gh-templates js-tests php-tests phpcs phpcs-checked wordpress
Last synced: 14 Jul 2025
https://github.com/z4kn4fein/stashbox
A lightweight, fast, and portable dependency injection framework for .NET-based solutions.
dependency-injection dependency-injection-container dependency-injection-framework di inversion-of-control ioc net-standard stashbox
Last synced: 15 May 2025
https://github.com/artberri/diod
A very opinionated inversion of control (IoC) container and dependency injector for Typescript, Node.js or browser apps.
dependency-injection di hacktoberfest inversion-of-control ioc javascript ts typescript
Last synced: 09 Apr 2025
https://github.com/bitExpert/disco
PSR-11 compatible Dependency Injection Container for PHP.
container-interop dependency-injection dependency-injection-container disco php psr-11
Last synced: 15 Apr 2025
https://github.com/mackysoft/navigathena
Scene management framework for Unity. Provides a new generation of scene management.
csharp dependency-injection scenemanagment unity
Last synced: 11 Jun 2025
https://github.com/bitexpert/disco
PSR-11 compatible Dependency Injection Container for PHP.
container-interop dependency-injection dependency-injection-container disco php psr-11
Last synced: 06 Apr 2025
https://github.com/shipengqi/sactive-web
:rocket: A dependency injection web framework for Node.js.
dependency-injection koa koa-router koa2 webframework
Last synced: 20 Aug 2025
https://github.com/rockname/sword
🗡️ A compile time dependency injection library for Swift
Last synced: 21 Oct 2025
https://github.com/albertogasparin/react-magnetic-di
Dependency injection and replacement for Javascript and React components/hooks
dependency-injection react-context reactjs storybook testing
Last synced: 16 May 2025
https://github.com/kawoou/deli
Deli is an easy-to-use Dependency Injection(DI).
automatically command-line dependency-injection di inversion-of-control swift
Last synced: 23 Mar 2025
https://github.com/kawoou/Deli
Deli is an easy-to-use Dependency Injection(DI).
automatically command-line dependency-injection di inversion-of-control swift
Last synced: 25 Mar 2025
https://github.com/joist-framework/joist
A small (~2kb) library to help with the creation of web components and web component based applications
customelements dependency-injection typescript webcomponents
Last synced: 22 Feb 2026
https://github.com/paralleltask/dinoloop
Rest API framework built on top of expressjs powered by Typescript.
dependency-injection expressjs inversifyjs moq nodejs oops rest-api solid-principles typescript
Last synced: 07 Apr 2025
https://github.com/ParallelTask/dinoloop
Rest API framework built on top of expressjs powered by Typescript.
dependency-injection expressjs inversifyjs moq nodejs oops rest-api solid-principles typescript
Last synced: 22 Jul 2025
https://github.com/chickensoft-games/autoinject
Node-based dependency injection for C# Godot scripts at build-time, including utilities for automatic node-binding, additional lifecycle hooks, and .net-inspired notification callbacks.
autoinject dependency-injection dotnet godot
Last synced: 14 May 2026
https://github.com/gone-io/gone
🚀 Gone - A Lightweight Dependency Injection Framework for Go | Tag-based Auto Injection | Supports Config Center/Lifecycle Management | Provides Rich Ecosystem Components and Scaffolding Tool
dependency-injection di dig golang gone gone-io goner wire
Last synced: 17 Mar 2026
https://github.com/cheivin/di
一个简易版本的Go依赖注入实现
dependency-injection go golang
Last synced: 14 May 2025
https://github.com/jeffijoe/awilix-koa
Awilix helpers/middleware for Koa 2
awilix awilix-helpers dependency-injection koa middleware
Last synced: 09 Apr 2025
https://github.com/matt-goldman/Maui.Plugins.PageResolver
A simple and lightweight page resolver for use in .NET MAUI projects
dependency-injection dotnet dotnetmaui source-generator
Last synced: 02 May 2025
https://github.com/coding-parrot/youtube-projects
These are project resources for the live YouTube lectures. Includes dependency injection, git internals, code reviews and the system design contest.
dependency-injection git system-design
Last synced: 27 Jul 2025
https://github.com/sujeet-agrahari/node-express-modular-architecture
🚀 A modular folder structure for developing highly scalable and maintainable APIs in nodejs using express.
api boilerplate clean-architecture dependency-injection express hapi jwt nodejs orm rest-api sequelize swagger
Last synced: 02 Aug 2025
https://github.com/agentframework/agentframework
An elegant & efficient TypeScript metaprogramming API to build software agents
agent-oriented-programming aop aspect-oriented-framework dependency-injection es6 interceptor metadata proxy reflection serverless typescript
Last synced: 20 Nov 2025
https://github.com/oronbz/rxgithub
An example of MVVM using RxSwift and Swinject (DI)
dependency-injection firebase github-api ios mvvm rxswift swift swinject
Last synced: 01 Jul 2025
https://github.com/wix-incubator/obsidian
Dependency injection library for React and React Native applications
dagger dagger-hilt dependency-injection dependency-inversion hilt ioc ioc-container react react-native swc typescript
Last synced: 03 May 2026
https://github.com/hashicorp/go-argmapper
A runtime dependency-injection library for Go that supports automatically chaining conversion functions to reach desired input and output types.
dependency-injection go golang reflection
Last synced: 16 May 2025
https://github.com/alphacloud/autofac.extras.quartz
Autofac integration for Quartz.Net
autofac c-sharp dependency-injection job-registration quartz schedule scheduler
Last synced: 12 Apr 2025
https://github.com/TAKETODAY/today-infrastructure
:sparkles: A Java library for applications software infrastructure
aop bean dependency-injection framework high-performance ioc java lightweight netty
Last synced: 12 May 2025
https://github.com/oronbz/RxGithub
An example of MVVM using RxSwift and Swinject (DI)
dependency-injection firebase github-api ios mvvm rxswift swift swinject
Last synced: 07 May 2025
https://github.com/michaelrocks/lightsaber
Compile time dependency injection framework for JVM languages. Especially for Kotlin.
android dependency-injection di java kotlin
Last synced: 14 Jan 2026
https://github.com/shihabmridha/nodejs-repository-pattern-and-ioc
WIP: 🛠 This is a boilerplate for Node.JS, Express.JS, and MongoDB based web application that takes advantage of repository pattern and dependency injection.
dependency-injection expressjs inversifyjs ioc mongoose nodejs repository-pattern typescript
Last synced: 05 Apr 2025
https://github.com/haavamoa/xaml-code-experiences
A collection of the experiences I have collected during days of Xamarin and Wpf, while following the MVVM design pattern.
architecture clean-code dependency-injection dotnet learning mvvm mvvm-architecture refactoring wpf xamarin xamarin-android xamarin-forms xamarin-ios xaml
Last synced: 29 Apr 2025
https://github.com/jkolb/fierycrucible
A minimalist type safe Swift dependency injection library
carthage cocoapods-support dependency-injection linux setter-injection swift swift4
Last synced: 09 Aug 2025
https://github.com/xamantra/momentum
MVC pattern for flutter. Works as state management, dependency injection and service locator.
dependency-injection flexible flutter momentum mvc mvc-architecture mvc-pattern package state-management
Last synced: 16 Mar 2025
https://github.com/roo-oliv/injectable
Python Dependency Injection for Humans™
autowired autowiring circular-dependencies dependency-injection for-humans injection ioc lazy-evaluation micro-framework python
Last synced: 06 Apr 2025
https://github.com/friendsofbehat/servicecontainerextension
:radio: Allows to declare own services inside Behat container without writing an extension.
behat behat-extension dependency-injection php
Last synced: 12 Jun 2026
https://github.com/yezz123/fastapi-class
provides a class-based View decorator to help reduce the amount of boilerplate necessary when developing related routes. ✨🚀
class decorators dependency-injection fastapi fastapi-template pydantic python python3
Last synced: 12 Apr 2025
https://github.com/jeffijoe/awilix-express
Awilix helpers/middleware for Express
awilix dependency-injection di express inversion-of-control
Last synced: 08 Feb 2026
https://github.com/emandm/ts-mock-imports
Intuitive mocking library for Typescript class imports
dependency-injection es6-classes es6-import fake mock mock-class mock-functions mock-imports sinon sinon-stub stub testing-tools tests typescript typescript-library typescript2 typescript3
Last synced: 16 May 2025
https://github.com/stephanos/rewire
Dependency injection for Elixir. Zero code changes required.
dependency-injection elixir mocking
Last synced: 21 Oct 2025
https://github.com/ivianuu/injekt
Next gen dependency injection library for Kotlin [WIP]
compile-time-dependency-injection compiler-plugin dependency-injection kotlin kotlin-compiler-plugin
Last synced: 05 Apr 2025
https://github.com/EmandM/ts-mock-imports
Intuitive mocking library for Typescript class imports
dependency-injection es6-classes es6-import fake mock mock-class mock-functions mock-imports sinon sinon-stub stub testing-tools tests typescript typescript-library typescript2 typescript3
Last synced: 18 Jul 2025
https://github.com/agitrubard/java-spring-best-practices
A repository dedicated to showcasing best practices in Java and Spring through concise code snippets.
best-practices clean-code code-practice code-snippets dependency-injection explanations factory-design-pattern java java21 maven open-source spring spring-boot strategy-design-pattern
Last synced: 11 Oct 2025
https://github.com/kawser2133/clean-structured-project
Clean structured ASP.NET Core web project, follows the Clean Architecture principles, SOLID design principles, and implements the Dependency Injection, Repository, and Unit of Work design pattern, and utilizes Entity Framework Core for data access.
asp-net-core clean-architecture clean-code crud-application crud-operation dependency-injection entity-framework-core microservices repository-pattern solid solid-principles unit-testing unitofwork-pattern
Last synced: 11 Apr 2025
https://github.com/carlossalasamper/react-native-clean-architecture
🧅 A React Native scaffold with a clean architecture that is easy to understand.
clean-architechture clean-code ddd ddd-architecture dependency-injection dependency-inversion expo inversify inversifyjs mobile-development mobx mobx-react react react-native scaffold
Last synced: 06 Apr 2025
https://github.com/Liftric/DIKit
Dependency Injection Framework for Swift, inspired by KOIN.
application-context carthage cocoapods dependency dependency-injection dependency-injection-container helper injection injection-container injection-dependency injection-framework ios koin service-locator swift swift-package-manager swift5 swiftpm
Last synced: 25 Mar 2025
https://github.com/liftric/dikit
Dependency Injection Framework for Swift, inspired by KOIN.
application-context carthage cocoapods dependency dependency-injection dependency-injection-container helper injection injection-container injection-dependency injection-framework ios koin service-locator swift swift-package-manager swift5 swiftpm
Last synced: 07 Apr 2025
https://github.com/ditsmod/ditsmod
Ditsmod is a Node.js-based web framework designed for building highly extensible and fast applications. Has native modules for REST and tRPC.
dependency-injection ditsmod http-server modularity module-pattern nestjs nodejs nodejs-framework trpc trpc-server
Last synced: 05 May 2026
https://github.com/typesoft/container-ioc
Inversion of Control container & Dependency Injection for Javascript and Node.js apps powered by Typescript.
container dependency dependency-injection dependency-manager di es2015 es2016 es2017 es6 factory inject injection injector inversion-of-control ioc lifetime service-locator typescript
Last synced: 12 Feb 2026
https://github.com/softindex/datakernel
Alternative Java platform, built from the ground up - with its own async I/O core and DI. Ultra high-performance, simple and minimalistic - redefines server-side programming, web-development and highload!
async bytecode crdt dependency-injection highload java lsmt microservice ot promise rpc serialization web-server
Last synced: 20 Feb 2026
https://github.com/jukylin/esim
微服务应用框架
cola ddd dependency-injection distributed microservice mock
Last synced: 02 May 2025
https://github.com/nikku/didi
Dependency Injection for JavaScript
dependency-injection ioc javascript nodejs
Last synced: 16 May 2025
https://github.com/taketoday/today-infrastructure
:sparkles: A Java library for applications software infrastructure
aop bean dependency-injection framework high-performance ioc java lightweight netty
Last synced: 26 Feb 2025
https://github.com/exuanbo/di-wise
🧙♀️ Lightweight and flexible dependency injection library for JavaScript and TypeScript, w/wo ECMAScript decorators.
container dependency-injection di ecmascript ecmascript-decorator injector ioc typescript
Last synced: 05 Apr 2025
https://github.com/ivan-borovets/fastapi-clean-example
Framework-agnostic backend example using FastAPI. Implements Clean Architecture and CQRS with DDD-inspired patterns, featuring DIP (low coupling), DI (no globals), hierarchical RBAC with permissions, and session-based authentication (cookies)
alembic api architecture clean-architecture cqrs crud dependency-injection fastapi fastapi-auth fastapi-crud fastapi-example fastapi-template hexagonal-architecture onion-architecture python python-clean-architecture restful-api sqlalchemy unit-of-work uv
Last synced: 07 Apr 2025
https://github.com/keboo/autodi
Dependency injection made simple.
dependency-injection dependency-resolution di-container fody hacktoberfest ilweaving
Last synced: 16 Mar 2025
https://github.com/Keboo/AutoDI
Dependency injection made simple.
dependency-injection dependency-resolution di-container fody hacktoberfest ilweaving
Last synced: 16 Mar 2025
https://github.com/exelord/solid-services
Solid.js library adding a services layer for global shared state.
dependency-injection javascript solidjs
Last synced: 30 Apr 2025
https://github.com/mnasyrov/ditox
Dependency injection for modular web applications
container dependency dependency-container dependency-injection di injection ioc javascript module typescript
Last synced: 10 Apr 2025
https://github.com/expressive-tea/expresive-tea
A Simple, Clean, Flexible and Modulable web framework project, based on Express and Typescript
dependency-injection descriptive-decorators expressjs middlewares rest-api restful-api typescript
Last synced: 25 Feb 2026
https://github.com/jonsamwell/flutter_simple_dependency_injection
A super simple dependency injection implementation for flutter that behaviours like any normal IOC container and does not rely on mirrors
dart dependency-injection flutter flutter-plugin
Last synced: 14 Apr 2025
https://github.com/slimovich/Realworld-fastapi-gino-template
Real world Fast-API application template using gino(Async ORM) based on hexagonal architecture
async async-orm dependency-injection docker fastapi fastapi-template flake8 gino hexagonal-architecture jenkins pgadmin4 postgresql python3 python38 realworld realworld-application sonarqube swagger tutorial
Last synced: 09 Apr 2025
https://github.com/mehdihadeli/go-vertical-slice-template
A Golang boilerplate template, based on Vertical Slice Architecture and CQRS pattern with using Echo, Gorm, Zap, Viper, Go-MediatR for CQRS and Dig for Dependency Injection.
boilerplate boilerplate-template clean-architecture dependency-injection dependency-injections dependency-inversion example go golang template vertical-slice-architecture
Last synced: 31 Jul 2025
https://github.com/danzuep/MailKitSimplified
Send and receive emails easily, fluently, with one line of code for each operation.
asynchronous csharp dependency-injection devops-enabled email email-reader email-receiver email-sender fluent imap imap-client mail mailer smtp smtp-client unit-tested
Last synced: 16 Nov 2025