mgechev/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. observed · 2026-08-28
Health v2 · maintenance only
54/100
- Activity 48
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3509
- days_rel: n/a
- days_push: 315
- n_releases_24m: 0
Adoption not part of the score
1378 stars · 68 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A dependency injection library for JavaScript and TypeScript, extracted from Angular's ReflectiveInjector. It provides a fast, well-tested DI container for use outside of Angular in Node.js, Vue, React, or vanilla JS applications.
Use cases
- add dependency injection to a node.js application
- use DI in a typescript project without angular
- manage service dependencies in a react or vue app
- resolve and inject classes with decorators
- create child injectors with scoped dependencies
When to choose
- you need runtime dependency injection outside of Angular
- you want a small, fast, well-tested DI container
- you use TypeScript decorators or ES6 classes
When to avoid
- you are inside Angular 5+ where StaticInjector is preferred
- you cannot add a Reflect API polyfill in ES5 environments
Facets
library · maturity stable
developer-tools developer-tools web-development backend cross-platform dependency-injection typescript decorators reflective-injector angular-extraction nodejs javascript
2 sources
- readme: https://github.com/mgechev/injection-js · fetched 2026-08-28 · ec5257729e85
- registry_npm: https://registry.npmjs.org/injection-js · fetched 2026-08-29 · c36193b9df22
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mgechev/injection-js | main | 54 |
For agents
markdown · JSON · MCP: product_card(name="mgechev/injection-js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem