microsoft/tsyringe
Lightweight dependency injection container for JavaScript/TypeScript observed · 2026-08-28
Health v2 · maintenance only
51/100
- Activity 63
- Release rhythm 8
- Longevity 100
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: 3212
- days_rel: n/a
- days_push: 224
- n_releases_24m: 0
Adoption not part of the score
5993 stars · 183 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
TSyringe is a lightweight dependency injection container for TypeScript and JavaScript supporting constructor injection via decorators. It provides singleton, scoped, and transient registrations, child containers, and injection tokens.
Use cases
- manage dependencies in a typescript app
- ioc container for nodejs
- constructor injection with decorators
- decouple services with dependency injection
- register singletons and scoped services
- resolve interfaces without direct imports
When to choose
- you want a small, decorator-based DI container for TypeScript
- you need child containers and scoped lifecycles
- you prefer minimal setup over a full framework like Angular or NestJS
When to avoid
- you need a full application framework with built-in routing and modules
- you cannot enable experimental decorators or add a Reflect polyfill
- you need DI without decorators or metadata in plain JavaScript
Facets
library · maturity stable
middleware developer-tools developer-tools web-development backend cross-platform dependency-injection ioc-container decorators constructor-injection reflect-metadata nodejs typescript
2 sources
- readme: https://github.com/microsoft/tsyringe · fetched 2026-08-28 · dae6a0765d22
- registry_npm: https://registry.npmjs.org/tsyringe · fetched 2026-08-29 · db2c2fff2cdc
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| microsoft/tsyringe | main | 51 |
For agents
markdown · JSON · MCP: product_card(name="microsoft/tsyringe")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem