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/wszgrcy/static-injector
Angular 依赖注入独立版本;Angular dependency injection standalone version
angular dependency-injection node static-dependency-injection typescript
Last synced: 25 Jun 2025
https://github.com/needle-di/core
A lightweight, type-safe Dependency Injection (DI) library for JavaScript and TypeScript projects
dependency-injection typescript
Last synced: 20 Oct 2025
https://github.com/jviau/durabletask-hosting
A Microsoft.Extensions.Hosting wrapper around the Microsoft.Azure.DurableTask framework.
azure dependency-injection durabletask hosting orchestrations
Last synced: 19 Apr 2025
https://github.com/diego-d5000/inversify-koa-utils
inversify-koa-utils is a module based on inversify-express-utils. This module has utilities for koa 2 applications development using decorators and IoC Dependency Injection (with inversify)
dependency-injection inversify inversion-of-control javascript koa koa2 typescript
Last synced: 14 Jun 2025
https://github.com/athellboy/sampleproject-fightinggame
Sample project to show my coding approaches and knowledge, also some architectures (and patterns) which I've used in Unity3D.
2d-game architectures clean-code csharp dependency-injection fighting-game game-development gamedev messagepipe patterns pooling sample-code sample-project samplecode scriptableobject state-machine unity unity3d vcontainer
Last synced: 30 Apr 2025
https://github.com/muir/nject
Golang type-safe dependency injection
dependency-injection go golang golang-library
Last synced: 12 Jan 2026
https://github.com/elbruno/elbruno.localembeddings
.NET library for local embedding generation using ONNX and Microsoft.Extensions.AI
cosine-similarity csharp dependency-injection dotnet embeddings huggingface kernel-memory local-ai machine-learning microsoft-extensions-ai nuget onnx onnx-runtime rag semantic-search text-embeddings vector-embeddings
Last synced: 23 May 2026
https://github.com/maou-shonen/hono-simple-di
A small, type-safe DI library optimized for hono.js.
dependency-injection hono honojs inversion-of-control ioc typescript
Last synced: 07 May 2025
https://github.com/boot-go/boot
Configuration and dependency injection
dependency-injection go golang microservices
Last synced: 14 Mar 2025
https://github.com/neckerfree/advancedwebapi
Minimal Web API to advanced data retrieval using pagination, filtering, searching, sorting
c-sharp dependency-injection filtering minimal-api net-core paging repository-pattern scaffolding searching sorting unitofwork-pattern
Last synced: 19 Apr 2025
https://github.com/lonng/yue
simple demo for nex(https://github.com/lonnng/nex)
dependency-injection golang json microservice web webservice
Last synced: 13 Apr 2025
https://github.com/ZeeLyn/Uragano
Uragano, A simple, high performance RPC library. Support load balancing, circuit breaker, fallback, caching, intercepting.
asp-net-core circuit-breaker consul core csharp dependency-injection dotnetcore dotnetty dynamicproxy microservice polly redis-cache rpc service-discovery
Last synced: 04 May 2025
https://github.com/zeelyn/uragano
Uragano, A simple, high performance RPC library. Support load balancing, circuit breaker, fallback, caching, intercepting.
asp-net-core circuit-breaker consul core csharp dependency-injection dotnetcore dotnetty dynamicproxy microservice polly redis-cache rpc service-discovery
Last synced: 30 Apr 2025
https://github.com/ivandotv/pumpit
PumpIt is a small (<2KB) dependency injection container without the decorators, suitable for the browser.
dependency-injection dependency-injection-container dependency-inversion ioc ioc-container
Last synced: 15 Mar 2026
https://github.com/pksol/pytest-fastapi-deps
A fixture which allows easy replacement of fastapi dependencies for testing
dependency-injection fastapi pytest python
Last synced: 07 Oct 2025
https://github.com/wisnuwiry/flutter-starter
A boilerplate project was created in flutter using Clean Architecture & TDD.
boilerplate boilerplate-template clean-architecture clean-code dart dependency-injection dio flutter flutter-bloc injector state-management
Last synced: 23 Mar 2025
https://github.com/jasononeil/dodrugs
A macro-powered dependency injector for Haxe
dependency-injection haxe injector macros
Last synced: 07 Jan 2026
https://github.com/s4cha/plug
🔌 Plug implementation details for a cleaner Architecture on iOS
actions clean-architecture decoupling dependency-injection dependency-inversion di-container inversion-of-control ioc plug swift swinject use-case
Last synced: 13 Apr 2025
https://github.com/fionicholas/Football-App
:soccer: Football App using MVVM, LiveData, RxJava2, DI, Room, Repository Patern
dependency-injection football-app kotlin mvvm repository-pattern room-database rxjava2
Last synced: 11 May 2025
https://github.com/restyjs/resty
A Node.js framework
decorators dependency-injection express hacktoberfest nodejs simple typedi typescript
Last synced: 17 Mar 2026
https://github.com/alexandregama/cdi-guide-tutorials
CDI Guide And Tutorials - Many examples of how to use CDI and CDI 2.0 like Qualifiers, Interceptors, Decorators, Lazy Initialization an much more!
cdi cdi-decorator cdi-extension cdi-injection cdi-interceptor cdi-spec dependency-injection dependency-injection-framework hacking-cdi hacking-code hackingcode java java-cdi java-spec java-tutorial learn-to-code learning learning-by-doing weld
Last synced: 22 Apr 2025
https://github.com/andyjessop/pivot
A front-end state management framework for highly decoupled and long-lived code.
architecture dependency-injection framework
Last synced: 01 Apr 2026
https://github.com/buraksenyurt/effective-engine
Haftasonu sıkılan .Net geliştiricisi için eğlencelik bir Web API kodlaması. Aslında temel amaç dependency injection mekanizmasını etkin bir şekilde kullanmak.
csharp dependency-injection dotnet-core entity-framework-core self-learning
Last synced: 23 Mar 2025
https://github.com/bkase/swift-di-explorations
Functional DI explorations in Swift
dependency-injection di functional swift typesafe
Last synced: 24 Oct 2025
https://github.com/devteam/ioccontainer
Expressions based Inversion of Control container for .NET
asp-net-core blazor dependency-injection dotnet dotnet-core dotnet-standard dotnetcore entity-framework-core expression-tree framework interception inversion-of-control ioc ioc-container ioc-framework
Last synced: 10 Apr 2025
https://github.com/point72/ccflow
ccflow is a collection of tools for workflow configuration, orchestration, and dependency injection
configuration dependency-injection hydra omegaconf pydantic python
Last synced: 28 Jun 2025
https://github.com/wookieb/alpha-dic
Powerful dependency injection container for node.js
alpha-packages dependency-injection dependency-injection-container ioc ioc-container javascript nodejs
Last synced: 10 Apr 2025
https://github.com/hypergonial/hikari-arc
A command handler for hikari with a focus on type-safety and correctness.
dependency-injection discord discord-bot discord-bot-framework discord-command-handler hikari hikari-arc hikari-py slash-commands
Last synced: 03 Feb 2026
https://github.com/wroud/foundation
Tools for modern js
dependency-injection ioc javascript js typescript
Last synced: 16 Apr 2026
https://github.com/nevermorewd/asyncnavigation
A lightweight asynchronous navigation framework based on Microsoft.Extensions.DependencyInjection
async avalonia dependency-injection ioc mvvm navigation prism showdialog wpf
Last synced: 01 Apr 2026
https://github.com/nicosnicolaou16/pokedex_compose
A modern Pokédex app for Android built with the latest technologies recommended by Google. This project showcases a clean, scalable architecture and a fluid user interface using Jetpack Compose.
android android-application coil dependency-injection dto-entity-mapper hilt-dependency-injection jetpack-compose koltin-flow kotlin-android kotlin-coroutines ksp navigation-type-safety pokedex pokemon pokemon-api repository-pattern retrofit2 shared-element-transition shared-element-transition-api viewmodel
Last synced: 06 Mar 2026
https://github.com/jasonsturges/sqlite-dotnet-core
.NET 8.0 Console Application using SQLite with Entity Framework and Dependency Injection
console-application database dependency-injection dotnet dotnet-core entity-framework sqlite
Last synced: 07 Mar 2026
https://github.com/notorious-cyborg/jerseyhub_e-commerce_go-gin-framework_clean_arch_rest-api
This is an e-commerce REST API written in Go using Gin framework by following Clean Architecture
aws-s3 clean-architecture dependency-injection docker docker-compose ecommerce-application gin gin-gonic go golang gorm jwt postgresql razorpay-api refresh-token swagger-ui twilio unit-testing viper wire
Last synced: 12 Apr 2025
https://github.com/mo7amedaliEbaid/quran
Flutter Quran app to read or listen to the holly quran.
audio-background audio-player bloc bookmarks clean-architecture cubit dart dependency-injection dio flutter flutter-ui islami islamic pdf-viewer quran quran-api quran-audio
Last synced: 01 Feb 2026
https://github.com/mo7amedaliebaid/quran
Flutter Quran app to read or listen to the holly quran.
audio-background audio-player bloc bookmarks clean-architecture cubit dart dependency-injection dio flutter flutter-ui islami islamic pdf-viewer quran quran-api quran-audio
Last synced: 12 Apr 2025
https://github.com/lulusir/clean-js
一个包含状态库、IOC容器的辅助库,帮助你在在react和vue中管理状态, 简单, 轻量, 方便测试;
clean-architecture dependency-injection ioc-container presenter react state-management typescript vue
Last synced: 14 Apr 2025
https://github.com/inversify/inversify-logger-middleware
A basic logger middleware for InversifyJS
dependency-injection express inversifyjs inversifyjs-devtools inversifyjs-middleware logger-middleware logging nodejs
Last synced: 28 Jun 2025
https://github.com/dipscope/typemanager.ts
Transform JSON strings or plain objects into JS class instances.
class-transformer decorators dependency-injection deserialization helper javascript json json-parser reflection serialization type-manager type-mapping typescript
Last synced: 09 Apr 2025
https://github.com/charkour/zustand-di
dependency injection for zustand with react context. initialize stores with component props. <400 bytes
context dependency-injection react
Last synced: 14 Apr 2025
https://github.com/2devs-team/reactter
A light, powerful and quick Reactive State Management, Dependency Injection and Event Handler.
dart dependency-injection easy-to-use event-handler event-management flutter hooks lightweight powerful reactive reactter state-management
Last synced: 23 Apr 2025
https://github.com/tiennampham23/nodejs-angular-typescript-boilerplate
NodeJS Typescript, Angular, Bolierplate, DI, GenericRepository, Inversifyjs, Inversifyjs-express-utils, tailwindcss, ng-zorro...
boilerplate dependency-injection generic-repository inversifyjs ioc ng-zorro nodejs tailwindcss typeo typescript
Last synced: 12 Jul 2025
https://github.com/quinvit/microcore
.NET Core framework for inter-service communication
asynchronous cloud container dependency-injection discovery distributed-computing docker microservices
Last synced: 06 Mar 2026
https://github.com/dotnet-labs/windowsservicedemo
Windows Service in ASP.NET Core
aspnetcore dependency-injection dotnet dotnetcore file-watcher filewatcher netcore windows-service windowsservice
Last synced: 05 Sep 2025
https://github.com/eBay/oja
Lightweight Dependency Injection Framework for Node.JS Apps - Structure your application business logic
dependency-injection discovery-service javascript logic middleware nodejs structure
Last synced: 31 Mar 2025
https://github.com/stampit-org/stamp
Stamps - better OOP model
dependency-injection oop stamp
Last synced: 26 Aug 2025
https://github.com/go-mojito/mojito
Code your next Go web project with (a) Mojito! Mojito is a super-modular, fast, opinion-less framework to bootstrap your next Go web project.
api cache dependency-injection go golang logger logging template-engine website
Last synced: 17 Jan 2026
https://github.com/strojure/fitter
System component management library for Clojure.
clojure components dependency-injection inversion-of-control system-automation
Last synced: 15 Aug 2025
https://github.com/phelps-sg/jabm
Java Agent Based Modelling toolkit
agent-based-modeling agent-based-simulation dependency-injection evolutionary-algorithms java multi-agent-simulation multi-agent-systems reinforcement-learning simulation
Last synced: 16 Jan 2026
https://github.com/viniciusaro/swiftresolver
Dependency injection framework for Swift
Last synced: 21 Jul 2025
https://github.com/lenguyenthanh/snowball
Android Clean Code Sample Project
android-application architecture dependency-injection mvp
Last synced: 13 Apr 2025
https://github.com/steinfletcher/func-dependency-injection-go
Dependency injection example using higher order functions
dependency-injection functional go golang higher-order-functions
Last synced: 22 Jul 2025
https://github.com/sciactive/requirephp
An implementation of dependency injection/service location (like RequireJS) in PHP.
Last synced: 09 Mar 2026
https://github.com/deprecated-packages/controllerautowire
[DEPRECATED] Use Controller autowiring by default since Symfony 3.3
autowiring controller dependency-injection php php71 symfony symplify
Last synced: 09 Apr 2025
https://github.com/saineshwar/customrolemanager
Creating Custom Role Manager In ASP.NET MVC 5
asp-net-mvc automapper csharp dependency-injection mssqlserver mvc5 unity
Last synced: 30 Oct 2025
https://github.com/vilicvane/entrance-decorator
A minimal solution of dependency injection for projects that scale.
Last synced: 29 Jul 2025
https://github.com/hamedmasafi/qinjection
A simple dependency injection lib for Qt5
dependency dependency-injection dependency-manager dependencyinjection insert macros pool qt qt5 slot
Last synced: 09 Jul 2025
https://github.com/vesselize/vesselize
:sailboat: A JavaScript IoC container that works seamlessly with Vue.js and React.
composition composition-api dependency-injection di injection inversion-of-control ioc ioc-container react react-hooks vue vue-composition-api
Last synced: 12 Aug 2025
https://github.com/jiripospisil/ashley
Ashley is a dependency injection container for JavaScript.
dependency-injection ioc ioc-container javascript nodejs
Last synced: 18 Jul 2025
https://github.com/pcafstockf/async-injection
A robust lightweight dependency injection library for TypeScript.
async dependency-injection di ioc typescript
Last synced: 11 Mar 2026
https://github.com/iamageo/flutter_mvvm_template
✅ MVVM template with GetX based on Repository Patter 🔥
android dart dependency-injection di flutter freezed get getx http ios json-serializable mobile mvvm repository-pattern state state-management
Last synced: 13 Apr 2025
https://github.com/fasterspeeding/alluka
A Python 3.11+ dependency injection framework.
anyio asyncio dependency-injection framework hacktoberfest python trio
Last synced: 17 Mar 2025
https://github.com/cursed-solutions/alluka
A Python 3.11+ dependency injection framework.
anyio asyncio dependency-injection framework hacktoberfest python trio
Last synced: 11 Sep 2025
https://github.com/makesource/viewmodelbindable
⚡️Super easy way to bind ViewModel
dependency-injection mvvm-architecture reactive swift
Last synced: 17 Mar 2025
https://github.com/leonoel/injure
A dependency injector for Clojure and Clojurescript
clojure clojurescript dependency-injection
Last synced: 05 Jul 2025
https://github.com/IvanProdaiko94/hekdi
Dependency Injection for node.js integrated with KOA.js
dependency dependency-injection di injection injector koa koa-router koa2 koajs
Last synced: 24 Mar 2025
https://github.com/tbertuzzi/dotnetdynamicinjector
💉 Dynamically reference external dlls without the need to add them to the project. Leave your project with low dependency and allowing specific dlls according to your business rule or database parameters.
csharp dependency-injection microsoft net netcore netstandard
Last synced: 19 Apr 2025
https://github.com/3timeslazy/anti-dig
🚀 Blazingly fast getting rid of uber-dig in your code
anti-di dependency-injection go golang
Last synced: 10 Apr 2025
https://github.com/matzefriedrich/parsley
An easy-to-use reflection-based dependency injection package that fits into any Go application.
dependency-injection go golang inversion-of-control reflection service-factory service-locator
Last synced: 25 Jul 2025
https://github.com/bobbylite/telephone-ts
Telephone-ts: The "Event Emitter-less" TypeScript Event Architecture.
autowiring dependency-injection event-emitter eventbus events inversifyjs inversion-of-control message message-bus message-queue oop-principles telephone typescript
Last synced: 28 Apr 2025
https://github.com/zeldan/your-own-dependency-injection-framework
lightweight dependency injection framework example in java
dependency-injection dependency-injection-framework java java-tutorial tutorial-code
Last synced: 10 Apr 2025
https://github.com/lastzero/test-tools
Improves PHPUnit testing productivity by adding a service container and self-initializing fakes
dependency-injection fixtures initializing-fixtures mocks php phpunit symfony test-driven-development testtools unittestcase
Last synced: 16 Sep 2025
https://github.com/fadeddexofan/koa-typeorm-starter
Starter project for using koa with TS and TypeORM
dependency-injection help-wanted javascript jwt koa koajs nodejs rest-api routing-controllers starter-project typedi typeorm typescript
Last synced: 08 Oct 2025
https://github.com/dentelezhkin/ariadne
Elegant and extensible routing framework in Swift
carthage cocoapods dependency-injection navigation router routing swift swiftgen uiviewcontroller xcode
Last synced: 14 Apr 2025
https://github.com/ivanprodaiko94/hekdi
Dependency Injection for node.js integrated with KOA.js
dependency dependency-injection di injection injector koa koa-router koa2 koajs
Last synced: 12 Apr 2025
https://github.com/rwnx/hardwire
A compile-time, non-intrusive dependency injection system.
crystal dependency-injection hacktoberfest macros
Last synced: 08 Apr 2026
https://github.com/eddieowens/axon
A simple, lightweight, and lazy-loaded DI (really just a singleton management) library.
dependency-injection generics go golang
Last synced: 25 Jan 2026
https://github.com/ashleydavis/fusion
A simple automated dependency injection library for TypeScript, supporting React class and functional components.
dependency-injection injection ioc react typescript
Last synced: 28 Jul 2025
https://github.com/aryaxt/swiftinjection
Dependency Injection framework for Swift
dependency-injection ioc ioc-container swift
Last synced: 04 Oct 2025
https://github.com/insolar/component-manager
component framework and dependency injection for golang
component-architecture dependency-injection golang
Last synced: 07 Aug 2025
https://github.com/nkaewam/taskw
Go route generation + dependency injection framework based on Fiber + Wire + Swag + Taskfile
codegen dependency-injection fiber golang wire
Last synced: 29 Sep 2025
https://github.com/cifkao/confugue
Hierarchical configuration framework for Python
configuration configuration-management configurations deep-learning dependency-injection hierarchical-configuration python scientific-experiment
Last synced: 15 Apr 2025
https://github.com/rasheedsulayman/duplicatecontactsremover
📒 A simple app to optimize your address book and remove duplicate contacts.
androidx architecture-components contacts-manager dependency-injection duplicates kotlin material-design mvvm
Last synced: 14 Oct 2025
https://github.com/giiita/refuel
Lightweight dependency injection engine and DI-driven tools.
compile-time dependency-injection di-container injection json json-parser macro scala
Last synced: 02 Aug 2025
https://github.com/react-declarative/react-pocketbase-crm
The most advanced starter kit for CRM system build with Pocketbase. It includes Kanban board, JSON form layout engine, feature model support, field visibility flags, grid component with fulltext search and modal filters.
declarative-programming dependency-injection functional-programming kanban kanban-application kanban-board mobx mui pocketbase pocketbase-realtime react react-declarative react-hooks realtime rxjs solid websocket
Last synced: 14 May 2025
https://github.com/Superbition/Polyel-Framework
⚡️ Voltis Core: A PHP framework based on Swoole from the ground up
async asynchronous concurrency connection-pool controller coroutines csrf-protection dependency-injection http http-server middleware model-view-controller mvc php php-framework router view-engine web-app web-framework xss-filter
Last synced: 04 May 2025
https://github.com/vardius/gocontainer
Simple Dependency Injection Container
container-registry dependency-injection go golang
Last synced: 18 Oct 2025
https://github.com/emarifer/gocms
goCMS is a headless CMS (Content Management System) written in Golang using Gin framework + </>Htmx & A-H Templ, designed to be fast, efficient, and easily extensible. It allows you to create a website or blog, with any template you like, in only a few commands.
clean-architecture cms dependency-injection error-middleware gin-framework gin-gonic go golang hateoas headless-cms htmx layered-architecture response-caching server-side-rendering templ
Last synced: 24 Jul 2025
https://github.com/havendv/mvvm.navigation
Provides platform independent navigation at the MVVM level and a Source Generator that automatically binds view and view models and registers this in your DI container
binding csharp dependency-injection di dotnet generator mvvm net6 net7 source source-generator view viewmodel
Last synced: 19 Apr 2025
https://github.com/sungam3r/steroidsdi
Advanced Dependency Injection to use every day.
defer dependency-injection factory steroids
Last synced: 12 Apr 2025
https://github.com/fiseni/pozitron.diconfiguration
Extensions to .NET Core's built-in DI container, providing the ability for dynamic configuration.
configuration dependency-injection dotnetcore ioc pozitron
Last synced: 27 Mar 2026
https://github.com/smpl/mydi
moved to https://github.com/cekta/di
container dependency-injection di php psr-11
Last synced: 16 Aug 2025
https://github.com/illescasdaniel/inject-swift
Easy dependency injection for swift with nice scalability
autowired dependency-injection di inject injection singleton swift
Last synced: 01 Jul 2025
https://github.com/sepehrtabeian/flutter-news-demo
This is a sample project about bloc and service locator
bloc dependency-injection news sample-code servicelocator statemanagement
Last synced: 19 Jan 2026
https://github.com/imaxs/easyjection
💉 EasyJection is an easy-to-use Dependency Injection (DI) Framework for Unity Engine and beyond.
csharp dependency-injection easy-to-use easyjection inversion-of-control ioc ioc-container ioc-framework unity unity-game-engine unity3d
Last synced: 24 Oct 2025
https://github.com/slince/di
:sheep: A flexible dependency injection container; It is an implementation of PSR-11
container dependency-injection di injection ioc-container php psr-11
Last synced: 27 Jun 2025
https://github.com/reinfi/zf-dependency-injection
Advanced dependency injection for laminas framework
annotations autowire dependency-injection laminas yaml zend-framework
Last synced: 03 May 2025
https://github.com/cowwoc/pouch
Inversion of Control that's designed for ease of use and debugging
dependency-injection inversion-of-control java service-locator variable-scope
Last synced: 13 Sep 2025
https://github.com/apleshkov/saber
Dependency injection (DI) & Inversion of Control (IoC) command line tool for Swift based on code generation
dependency-injection inversion-of-control saber swift
Last synced: 27 Oct 2025