Elestia Open Source Ratings

Dependency injection

Build an app’s objects and give each one the services it needs. We rate 7; Awilix leads with 7.5 out of 10.

7.5AwilixNode.js backend teams that want per-request scoped dependency injection without decorators, reflect-metadata or compiler settings.4.47.97.24.56.56.7
7.4InversifyJSTeams building large class-based TypeScript apps that want a full-featured container with scopes, contextual bindings, async resolution and an optional HTTP framework.4.27.67.16.26.36.8
6.3Needle DITypeScript or JavaScript projects that want Angular-style inject() with native decorators and no reflect-metadata, and that accept a young, single-maintainer library.4.36.95.63.13.97.7
5.2injection-jsDevelopers who know Angular and want the same provider-and-injector model in a small Node or browser app.3.86.24.14.74.86.8
5.2TSyringeExisting TypeScript codebases that already use experimentalDecorators and want a minimal constructor-injection container.4.16.13.45.85.47.2
4.7BrandiSmall TypeScript or React projects that want type-safe DI without decorators or reflect-metadata, and that can live with a dormant upstream.3.86.43.42.22.46.3
3.1TypeDITeams that already run TypeDI, for example alongside routing-controllers or TypeORM, and only need to keep it working.4.04.71.83.93.15.4

The numbers

Read from GitHub, npm and the OSV advisory database on 21 November 2026. Downloads also count build servers and installs by other tools, and they grow for almost every package: for the median project we rate, they are ×4.1 of a year before.

ProjectDownloads, 4 weeksIn a yearGitHub starsCommits, 12 monthsLast npm releaseAdvisories, 24 months
Awilix3.6M×3.34.2k68Nov 20260
InversifyJS14M×2.012k0Nov 20260
Needle DI105k×1214220Sept 20260
injection-js7.1M+82%1.4k0Oct 20250
TSyringe92M×206k1Apr 20250
Brandi70k×2.22284Jan 20260
TypeDI3.2M×2.44.2k0Jan 20210