typestack/typedi
Simple yet powerful dependency injection tool for JavaScript and TypeScript. observed · 2026-08-28
Health v2 · maintenance only
45/100
- Activity 49
- 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-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3991
- days_rel: n/a
- days_push: 308
- n_releases_24m: 0
Adoption not part of the score
4243 stars · 166 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
TypeDI is a dependency injection library for TypeScript and JavaScript that manages service registration, resolution, and lifecycle via decorators and containers. It supports constructor and property injection, singleton and transient services, and multiple or scoped containers.
Use cases
- add dependency injection to a TypeScript Node.js app
- inject services with decorators instead of manual wiring
- swap fake dependencies in unit tests
- manage singleton and transient service lifecycles
- use multiple or scoped DI containers
- structure a large codebase with inversion of control
When to choose
- you use TypeScript with decorators and want decorator-based DI
- you want a lightweight, well-tested DI container for Node or browser
- you need named services, factories, or scoped containers
- you want easily testable classes with injectable dependencies
When to avoid
- you want zero-config DI without reflect-metadata and tsconfig changes
- you prefer functional composition over class-based patterns
- you need DI features like interface-only binding without tokens
- your project is plain JavaScript and needs full decorator ergonomics
Facets
library · maturity stable
middleware developer-tools developer-tools backend web-development browser cross-platform dependency-injection inversion-of-control ioc-container decorators service-locator singleton testability nodejs typescript
4 sources
- readme: https://github.com/typestack/typedi · fetched 2026-08-28 · 64f78ed1a343
- homepage: https://docs.typestack.community/typedi/v/develop/01-getting-started · fetched 2026-08-29 · 7e762fc84e67
- site_page: https://docs.typestack.community/typedi/develop · fetched 2026-08-29 · 18fcde69b743
- site_page: https://docs.typestack.community/typedi/develop/usage-without-typescript/01-getting-started · fetched 2026-08-29 · e9164237a0ed
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| typestack/typedi | main | 45 |
For agents
markdown · JSON · MCP: product_card(name="typestack/typedi")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem