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.

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

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

@lerna/bootstrap

🐉 A tool for managing JavaScript projects with multiple packages.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Not Found
User RatingN/A
Top Feedback
N/A
GitHub Stars
31K
Weekly Downloads
1M
Last Commit
8mos ago

@foal/core

Elegant and fully-featured Node.Js web framework based on TypeScript. 🚀.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
1K
Weekly Downloads
3K
Last Commit
1mo 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

@restyjs/core

A Node.js framework

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

@adr-express-ts/core

This package is a dependency injection for express with typescript using decorators and the Action–Domain–Responder pattern.

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

node-dependency-injection

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
164
Weekly Downloads
2K
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
rew

rewiremock

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

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

jimpex

Express as dependency injection container.

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

@teqfw/di

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

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: Not Found
User RatingN/A
Top Feedback
N/A
GitHub Stars
7
Weekly Downloads
18
Last Commit
3mos 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

@umberware/the-way

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
7
Weekly Downloads
8
Last Commit
3mos 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
de

depinj-express

Depinj integration with express

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
15
Last Commit
4mos 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

node-kissdi

Simple Dependency Injection for NodeJS

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
611
Last Commit
7yrs 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
ndi

node-dependency-injection-express-middleware

A Node Dependency Injection middleware for Express

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
8
Weekly Downloads
267
Last Commit
2yrs 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

middleware-container

Middleware Chaining & Dependency Resolution

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
71
Last Commit
2yrs ago
nu

natural-utility

natural-utility is a simple helper tool to get easily your work as a module loader, route middleware, plugin middleware and flash message.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
4
Weekly Downloads
1
Last Commit
8mos ago
thr

thresh

Decorative implementation of Express with TypeScript and dependency injection

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
0
Last Commit
6mos ago
ed

express-di

Dependency injection for Express applications

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
161
Weekly Downloads
34
Last Commit
5yrs ago
ed

express-dependencies

Dependency Injection for Express

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
6
Weekly Downloads
25
Last Commit
1yr ago
de

dino-express

DinO enabled REST framework based on express

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
25
Last Commit
N/A
nod

nodeflare

A framework built on [Express](https://expressjs.com/) with built in JWT authentication, Dependency Injection, and Eventing.

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
21
Last Commit
N/A
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
ins

inserve

Wrapper around Express for dependency injection

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

express-dependency-injection

An annotated framework to easily build routes around express library

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

clever-injector

Dependency Injection for NodeJS, used in CleverStack but designed to work with anything!

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

@mindjs/core

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Not Found
User RatingN/A
Top Feedback
N/A
GitHub Stars
14
Weekly Downloads
9
Last Commit
2yrs 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
5yrs ago
noj

nojector

A small realtively simple way to do parameter injection in node

License Icon
License: BSD-2-Clause
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
8
Last Commit
7yrs 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
ed

express-dinja

Dependency injection for Express applications

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
59
Weekly Downloads
6
Last Commit
4yrs ago
hp

hydra-promoted

A package to be used along with hydra-express to provide middlewares and controllers with string notation and provide dependency injection capabilties

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

cerise

Intuitive and lightweight Dependency Injection library for Node.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
4
Last Commit
3yrs ago
dob

dobbs

routes loader for express

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

restorator

REST controller/route and dependency injection decorators for Express-based REST applications

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

mioserv

🚀 High level wrapper of Inversify for TypeScript/JavaScript application

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
0
Last Commit
4yrs ago
nod

nodetastic

Will be a mirror of https://bitbucket.org/ralphv/nodetastic/

License Icon
License: BSD-3-Clause
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
1
Last Commit
5yrs ago
dj

di-javascript

A dependency injection framework

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
1
Last Commit
N/A