10 Best Vanilla JavaScript Dependency Injection Libraries

List hand-picked by Openbase Experts
Learn More

typedi

Simple yet powerful dependency injection tool for JavaScript and TypeScript.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
2
Top Feedback
1Easy to Use
GitHub Stars
3K
Weekly Downloads
105K
Last Commit
2mos ago

tsyringe

Lightweight dependency injection container for JavaScript/TypeScript

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.0/ 5
2
Top Feedback
N/A
GitHub Stars
3K
Weekly Downloads
97K
Last Commit
2mos ago

aurelia-dependency-injection

A lightweight, extensible dependency injection container for JavaScript.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
2
Top Feedback
N/A
GitHub Stars
157
Weekly Downloads
13K
Last Commit
2yrs ago
bot

bottlejs

A powerful dependency injection micro container for JavaScript applications

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
1K
Weekly Downloads
26K
Last Commit
3mos ago

@proc7ts/context-values

IoC context values provider

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
262
Last Commit
1mo ago
did

didi

Dependency Injection for JavaScript

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
36
Weekly Downloads
34K
Last Commit
2mos ago
ij

injection-js

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.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
1K
Weekly Downloads
354K
Last Commit
5mos ago
dit

ditox

Powerful dependency injection container for building modular apps.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
45
Weekly Downloads
20
Last Commit
2mos ago
ti

typescript-ioc

A Lightweight annotation-based dependency injection container for typescript.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
479
Weekly Downloads
10K
Last Commit
2yrs ago
con

constitute

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

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
133
Weekly Downloads
8K
Last Commit
6yrs ago
td

true-di

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
1Great Documentation
1Easy to Use
GitHub Stars
26
Weekly Downloads
137
Last Commit
9mos ago

kontainer-di

A simple Javascript dependency injection container

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
70
Weekly Downloads
2K
Last Commit
6yrs ago

container-ioc

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

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
91
Weekly Downloads
279
Last Commit
4yrs ago
di4

di4js

The di4js module is dependency injection implementation in JavaScript.

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
76
Weekly Downloads
98
Last Commit
2yrs ago
inf

infect

Infectiously simple dependency injection for any JavaScript project

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
146
Weekly Downloads
21
Last Commit
7yrs ago
dm

dm

Javascript Dependency Injection Manager

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
108
Weekly Downloads
9
Last Commit
6yrs ago
dl

di-lite

Ultra light dependency injection container in Javascript

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
103
Weekly Downloads
7
Last Commit
4yrs ago