---
title: "Why I Don't Use a DI Container"
url: https://daily.dev/posts/why-i-don-t-use-a-di-container-6agbrdfuf
source_url: https://khalilstemmler.com/articles/software-design-architecture/coding-without-di-container
type: article
source: "Khalil Stemmler"
published: 2026-06-17T11:25:52.438Z
updated: 2026-06-17T11:29:11.216Z
tags: ["architecture", "nodejs", "typescript", "dependency-injection"]
reading_time: 11
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Why I Don't Use a DI Container

**[Khalil Stemmler](https://daily.dev/sources/khalilstemmler)** · 11 min read · 0 upvotes · 0 comments

## Summary

A Node.js/TypeScript developer explains why they avoid DI containers like InversifyJS or Awilix in a 150K+ line codebase. Instead, they use 'Package by Component' from Clean Architecture, organizing code around use cases and actors. Dependencies are manually composed and exported via index.ts files using consistent naming conventions. The approach reduces complexity, avoids circular dependencies, eliminates decorator noise, and forces better understanding of software composition. The main tradeoff is that teams must follow the style guide consistently, which can be harder without a framework enforcing conventions.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://khalilstemmler.com/articles/software-design-architecture/coding-without-di-container>

## Similar posts on daily.dev

- [Build a Dependency Injection Container in Vanilla JavaScript](https://daily.dev/posts/build-a-dependency-injection-container-in-vanilla-javascript-9lfm4wjy6) · JS Dev Space · 3 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#nodejs](https://daily.dev/tags/nodejs), [#typescript](https://daily.dev/tags/typescript), [#dependency-injection](https://daily.dev/tags/dependency-injection)

[View this post on daily.dev](https://daily.dev/posts/why-i-don-t-use-a-di-container-6agbrdfuf)
