# TypeDI: 3.1 out of 10

Keep, but not for new work. 7th of 7 in [Dependency injection](https://elestia.ai/opensource/di/index.md).

TypeDI is a small decorator-based dependency injection container from the TypeStack group. Its last release, 0.10.0, came out in January 2021, and since then only bots have been active in the repository. It still works where it already runs, but new projects should pick an actively maintained container such as InversifyJS, TSyringe or Awilix.

**Best for:** Teams that already run TypeDI, for example alongside routing-controllers or TypeORM, and only need to keep it working.

## Scores

- **Overall: 3.1** (likely 2.1 to 4.2)
  - Claude Opus 5.5 (2.5): TypeDI is simple and still runs, but it has had no release since 2021, and well-known users such as n8n have forked away from it. InversifyJS, TSyringe and Awilix do the same job and are still maintained or released, and Awilix and InversifyJS have far more recent activity. Keep it where it already runs, but do not start a new project with it.
  - GPT-6.2 Sol (3.7): TypeDI still does routine injection with little boilerplate, so keeping it in an existing app can make sense. For a new Node.js app, Awilix offers active releases, scoped lifetimes, and wiring without decorators. The long release gap makes TypeDI hard to recommend broadly, although its documented TypeGraphQL integration still has value for teams already using legacy decorators.
- **Needed by many: 4.0** (likely 2.9 to 5.2)
  - Claude Opus 5.5 (4.0): DI containers are a clear niche in JavaScript and TypeScript, used mostly in larger backend codebases built around classes. TypeDI also needs TypeScript's legacy decorators and reflect-metadata, which narrows its audience further. The range is moderate because how many people need DI is hard to measure.
  - GPT-6.2 Sol (4.0): TypeDI fits class-heavy apps that need a container to assemble services or manage their lifetimes. Smaller apps can wire services directly, and frameworks such as NestJS already provide a container. TypeDI can also be used from plain JavaScript with fewer features, and survey data gives little basis for estimating demand for this particular approach.
- **Helps a lot: 4.7** (likely 3.6 to 5.8)
  - Claude Opus 5.5 (4.0): It covers the basics well: constructor and property injection, scopes, and multiple containers. But it has a global container, no support for stage-3 decorators, and known fixes that were never released. InversifyJS has far more features, and Awilix works without decorators, so both do the job better today.
  - GPT-6.2 Sol (5.4): Version 0.10.0 covers the basics with constructor and property injection, typed tokens, and named containers. Its missing-service error names the dependency and suggests how to register it. The examples give coding agents a clear starting point, and reported test-runner failures show why metadata setup still needs verification. A competing library's benchmark found slower cached lookups than Awilix and InversifyJS, with unclear impact on whole apps.
- **Holds up over time: 1.8** (likely 0.8 to 2.9)
  - Claude Opus 5.5 (1.5): There have been no commits or releases in the last year, and the last release was in January 2021. A fork reports that only bots have been active, and n8n left because the library is no longer officially maintained. The repository is not archived, but nothing suggests the work will restart.
  - GPT-6.2 Sol (2.1): The latest release shipped in January 2021, and the repository recorded zero commits in the past year. Standard decorator support remains an open request, and the last release changed container APIs. The repository remains open to contributions, but years-old pull requests and n8n's move to its own fork give little reason to expect timely compatibility fixes.
- **Used widely: 3.9** (likely 2.9 to 5.1)
  - Claude Opus 5.5 (4.0): It has about 3.2M downloads in 4 weeks and 2,751 dependent repositories. Downloads grew 2.4x over the year, well below the 4.1 median, so it is losing ground. Many of those installs likely come from older codebases and from packages that pull it in, not from new choices. On dependent repositories it trails InversifyJS, injection-js and TSyringe.
  - GPT-6.2 Sol (3.8): ecosyste.ms found 2,751 repositories and 668 packages that depend on TypeDI. Its repository count is ahead of Awilix and trails TSyringe and InversifyJS by a wide margin. Four-week installs rose from 1.31 million to 3.17 million, about 2.42× against the catalog's 4.1× median, which points to falling relative reach. The index covers only part of GitHub, and install totals blur fresh choices with repeat and indirect installs.
- **Vouched for: 3.1** (likely 2.0 to 4.5)
  - Claude Opus 5.5 (2.5): TypeStack libraries such as routing-controllers have historically paired with it, and n8n once ran it in production. n8n has now replaced it with its own fork, which counts against it. Independent comparisons now tell readers to check its maintenance status or pick another library, and there is no recent survey or community attention.
  - GPT-6.2 Sol (3.6): TypeGraphQL still documents TypeDI as an optional container, and routing-controllers provides a working integration pattern. n8n moved to its own fork, and TypeORM 1.0 removed external container integration. These sources establish real use, but current production endorsements and direct satisfaction data are sparse.
- **Safe: 5.4** (likely 4.3 to 6.8)
  - Claude Opus 5.5 (5.0): It has no runtime dependencies, no known advisories and an MIT licence, so the attack surface is small. But the OpenSSF Scorecard is 3.8, with zero for Maintained, Security-Policy and Token-Permissions. With no active maintainers, any future issue would likely stay unfixed.
  - GPT-6.2 Sol (5.8): The MIT license, zero declared dependencies, and zero recorded OSV advisories keep the known risk modest. The usual decorator setup adds reflect-metadata separately. OpenSSF scored the project 3.8 out of 10, with weak workflow token permissions and no security policy, fuzzing, or static security analysis detected. The release gap and the narrow list of npm collaborators leave patch response and release safeguards uncertain.

## Good

- Simple API: mark a class with @Service() and get it with Container.get().
- No runtime dependencies, and types ship in the package.
- Supports constructor and property injection, singleton and transient scopes, and more than one container.
- MIT licence and no known security advisories.

## Bad

- No release since v0.10.0 in January 2021. Fixes merged into the develop branch were never published.
- Needs legacy experimentalDecorators and reflect-metadata, with no support for standard stage-3 decorators.
- Depends on a global container, so state builds up and tests are harder to keep apart.
- Notable users are leaving it: n8n forked it into @n8n/di because it is no longer officially maintained.

## The numbers

- Downloads, 4 weeks: 3.2M
- In a year: ×2.4
- GitHub stars: 4.2k
- Commits, 12 months: 0
- Last npm release: Jan 2021
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/typestack/typedi
- npm: https://www.npmjs.com/package/typedi

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
