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.
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.
| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
|---|---|---|---|---|---|---|
| Awilix | 3.6M | ×3.3 | 4.2k | 68 | Nov 2026 | 0 |
| InversifyJS | 14M | ×2.0 | 12k | 0 | Nov 2026 | 0 |
| Needle DI | 105k | ×12 | 142 | 20 | Sept 2026 | 0 |
| injection-js | 7.1M | +82% | 1.4k | 0 | Oct 2025 | 0 |
| TSyringe | 92M | ×20 | 6k | 1 | Apr 2025 | 0 |
| Brandi | 70k | ×2.2 | 228 | 4 | Jan 2026 | 0 |
| TypeDI | 3.2M | ×2.4 | 4.2k | 0 | Jan 2021 | 0 |