10 Best JavaScript Dependency Injection Libraries

List hand-picked by Openbase Experts
Learn More

inversify

A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.

641K
9.3K
Built-in
MIT
typ

Dependency injection for TypeScript.

210K
Built-in
MIT
tsyringe

Lightweight dependency injection container for JavaScript/TypeScript

160K
3.8K
Built-in
MIT
aurelia-dependency-injection

A lightweight, extensible dependency injection container for JavaScript.

13.3K
158
Built-in
MIT
ksm

Modular Microframework for create minimalistic web application or REST API

49
0
No support
GPL-3.0-or-later
dio

A very opinionated inversion of control (IoC) container and dependency injector for Typescript, Node.js or browser apps.

350
63
Built-in
MIT
ksd

Design Patterns Library: contains a group elements of reusable Object Oriented Software. It is an attempt to combine implementations of: Gang of Four (GoF), GRASP, IoC.

9
2
No support
GPL-3.0-or-later
did

Dependency Injection for JavaScript

56.2K
61
Built-in
MIT
@foal/core

Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.

3.1K
1.7K
Built-in
MIT
ij

Dependency injection library for JavaScript and TypeScript in 5.1K. It is an extraction of the Angular's ReflectiveInjector which means that it's well designed, feature complete, fast, reliable and well tested.

472K
1.1K
Built-in
MIT
@lerna/bootstrap

🐉 Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.

1.3M
34.2K
No support
MIT
rew

The right way to mock dependencies in Node.js or webpack environment.

77.7K
429
Built-in
MIT
bot

A powerful dependency injection micro container for JavaScript applications

34.8K
1.2K
Built-in
MIT
ndi

The NodeDependencyInjection component allows you to standarize and centralize the way objects are constructed in your application.

3.9K
208
Built-in
MIT
ti

A Lightweight annotation-based dependency injection container for typescript.

9.3K
496
Built-in
MIT
con

Minimalistic Dependency Injection (DI) for ES5/ES6/ES7

7K
133
No support
ISC
dit

Powerful dependency injection container for building modular apps.

55
60
Built-in
MIT
kontainer-di

A simple Javascript dependency injection container

370
70
No support
ISC
td

Framework Agnostic, Zero Dependency, Isomorphic & Minimalistic Dependency Injection Container for TypeScript and JavaScript projects

253
27
Built-in
MIT
ndi

A Node Dependency Injection middleware for Express

104
8
No support
MIT
container-ioc

Inversion of Control container & Dependency Injection for Javascript and Node.js apps powered by Typescript.

66
93
Built-in
ISC
dm

Javascript Dependency Injection Manager

52
108
No support
MIT
@umberware/the-way

TheWay is a framework to enhance the development with NodeJs and Typescript, promoting agility, simplicity and intelligibility.

50
7
Built-in
MIT
di4

The di4js module is dependency injection implementation in JavaScript.

48
79
No support
jim

Express as dependency injection container.

46
8
Built-in
MIT
inf

Infectiously simple dependency injection for any JavaScript project

38
146
No support
MIT
ed

Dependency injection for Express applications

20
161
No support
MIT
@restyjs/core

A Node.js framework

18
19
Built-in
MIT
ed

Dependency injection for Express applications

17
59
No support
MIT
ed

Dependency Injection for Express

17
6
No support
MIT
dl

Ultra light dependency injection container in Javascript

16
102
DefinitelyTyped
riv

A clean, no frills Flux alternative for Vue.js 2.x.

13
0
No support
MIT
di

Dependency Injection container for ES6 modules (works for browsers & nodejs).

9
7
No support
Apache-2.0
edi

Dependency injector for Express controllers using di.js

8
4
No support
MIT
@mindjs/core

Minimalistic, pure Node.js framework superpowered with Dependency Injection 💡 💻 🚀

6
15
No support
MIT
Description
Author
License
Type Definitions
ESM Support
Tree Shakeable
Popularity
Downloads/wk
GitHub Stars
Reviews
User Rating
Voted Good Docs
Voted Easy of Use
Voted Performant
Top Positive Review
Top Negative Review
Issues
Total Issues
Open Issues
Avg Time to Close
Pull Requests
Total Pull Requests
Open Pull Requests
Avg Time to Merge
Community
Maintainers
Contributors
Contributors with 3+ commits
Top Committers
GitHub Forks
Versions
# of Versions
Latest
Next
Beta
Newest
Oldest
Major Every
Minor Every
Patch Every
Dependencies
Dependencies
Dev Dependencies
Links
More Info
README
Tutorials
Install Command
There's Nothing Here
No packages are selected.
Select a few packages to compare.