InversifyJS
A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript. (by inversify)
tsyringe
Lightweight dependency injection container for JavaScript/TypeScript (by microsoft)

SurveyJS - JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Add the SurveyJS white-label form builder to your JavaScript app (React/Angular/Vue3). Build complex JSON forms without coding. Fully customizable, works with any backend, perfect for data-heavy apps. Learn more.
surveyjs.io
featured
InversifyJS | tsyringe | |
---|---|---|
32 | 28 | |
11,706 | 5,428 | |
0.8% | 1.5% | |
9.3 | 7.2 | |
4 days ago | 27 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
InversifyJS
Posts with mentions or reviews of InversifyJS.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-02-02.
-
InversifyJS VS vorarbeiter - a user suggested alternative
2 projects | 2 Feb 20252 projects | 2 Feb 2025
-
vorarbeiter VS InversifyJS - a user suggested alternative
2 projects | 2 Feb 2025
Vorarbeiter Service Container is about 10 times lighter then InversifyJS. It has simpler API and works faster.
-
Mastering the Dependency Inversion Principle: Best Practices for Clean Code with DI
One of the most popular libraries in JavaScript for implementing the Inversion of Control (IoC) pattern is InversifyJS. It provides a robust and flexible framework for managing dependencies in a clean, modular way. However, InversifyJS has some drawbacks. One major limitation is the amount of boilerplate code required to set up and manage dependencies. Additionally, it often requires structuring your application in a specific way, which may not suit every project.
-
How to Apply SOLID with Testing JS/TS Class Methods
Take a class for which we are tasked to write a unit test. This class may have a dozen methods and a dozen more attributes. In my environment we were already using inversify to dependency inject into this class, and using container snapshot and restore as setup and teardown operators, in our jest test file. But it began getting out of control even after refactoring into test cases and test runners.
-
VulcanSQL: open-source data API framework. Empowering you to construct APIs exclusively with SQL.
Inversify (https://inversify.io/) for IoC.
-
SOLID explicado com TypeScript
Alguns frameworks trabalham desta forma por padrão, como é o caso do Angular, quando este não é o padrão do framework que utilizamos podemos usar alguma biblioteca, como a Inversify ou tsyringe da Microsoft.
-
Using modern decorators in TypeScript
Using decorators required setting an --experimentalDecorators experimental compiler flag. Several popular TypeScript libraries, such as type-graphql and inversify, rely on this implementation.
-
Typesafe, (almost) Zero Cost Dependency Injection in TypeScript
inversify
- InversifyJS has reached 100,000,000 downloads on npm
tsyringe
Posts with mentions or reviews of tsyringe.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-05-02.
-
Stop Spaghetti Code! How Clean Architecture Saves Next.js Projects
For connecting layers we uses DI(dependency-injection) by tsyringe.
- Framework-Level DI Even for student Node.js Developers
-
tsyringe VS vorarbeiter - a user suggested alternative
2 projects | 2 Feb 20252 projects | 2 Feb 2025
-
TSyringe and Dependency Injection in TypeScript
TSyringe is a lightweight dependency injection container for TypeScript/JavaScript applications. Maintained by Microsoft on their GitHub (https://github.com/microsoft/tsyringe), it uses decorators to do Constructor injection. Then, it uses an Inversion of Control container to store the dependencies based on a token that you can exchange for an instance or a value.
-
SOLID explicado com TypeScript
Alguns frameworks trabalham desta forma por padrão, como é o caso do Angular, quando este não é o padrão do framework que utilizamos podemos usar alguma biblioteca, como a Inversify ou tsyringe da Microsoft.
-
Approach to applying DI container to an existing codebase?
We are writing a backend application that handles a data stream and provides REST and GraphQL endpoints to query and manage these data. We are using TypeScript with Express.js and TSyringe for our DI container.
-
Announcing TypeScript 5.0 Beta
This is exciting but also make be a bit nervous as my projects make extensive use of https://github.com/microsoft/tsyringe and the decorator changes are not going to play nice.
-
Typesafe, (almost) Zero Cost Dependency Injection in TypeScript
tsyringe
-
Has anyone successfully created a Dependency Injection using typescript decorators?
If you don’t want to tie yourself to a full web framework like Nest, there are a few DI-only frameworks that work with decorators, like TypeDI, TSyringe, or Typed Inject.
What are some alternatives?
When comparing InversifyJS and tsyringe you can also consider the following projects:
awilix - Extremely powerful Inversion of Control (IoC) container for Node.JS
typedi - Simple yet powerful dependency injection tool for JavaScript and TypeScript.
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
DefinitelyTyped - The repository for high quality TypeScript type definitions.
mixitup - A high-performance, dependency-free library for animated filtering, sorting, insertion, removal and more

SurveyJS - JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Add the SurveyJS white-label form builder to your JavaScript app (React/Angular/Vue3). Build complex JSON forms without coding. Fully customizable, works with any backend, perfect for data-heavy apps. Learn more.
surveyjs.io
featured