TypeDI
Keep, but not for new work. 7th of 7 dependency injection.
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
Overall3.1
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 2.5, likely 1.5 to 3.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.
- npm latestPublishedAt: No release since January 2021
- peers Awilix / InversifyJS latestPublishedAt: Both released in November 2026
- github.com/finwo/typedi: Original typedi is dormant
- npm-compare.com/awilix,inversify,tsyringe,typedi: Points new projects to awilix or tsyringe
GPT-6.2 Sol: 3.7, likely 2.6 to 4.8
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.
- npm latestPublishedAt, github commitsLastYear, peers Awilix: TypeDI last published in 2021. Awilix had 68 commits in the past year and published in November 2026.
- github.com/jeffijoe/awilix: Documents decorator-free registration, scopes, and disposal.
- typegraphql.com/docs/dependency-injection.html: An established integration still gives TypeDI a clear use case.
Needed by many4.0
How many developers need a tool for this job?
Claude Opus 5.5: 4.0, likely 3.0 to 5.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.
- TypeScript decorators: TypeDI depends on experimentalDecorators and emitDecoratorMetadata
- npm-compare.com/awilix,inversify,tsyringe,typedi: Recommended mainly for teams already in the TypeORM or NestJS ecosystems
GPT-6.2 Sol: 4.0, likely 2.8 to 5.3
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.
- 2025.stateofjs.com/en-US/libraries/back-end-frameworks: Backend framework usage gives context for the audience.
- docs.nestjs.com/providers: NestJS provides its own dependency injection.
- github.com/typestack/typedi/blob/develop/docs/javascript/01-getting-started.md: Plain JavaScript use has a smaller feature set.
Helps a lot4.7
How well does it do the job for those who need it?
Claude Opus 5.5: 4.0, likely 3.0 to 5.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.
- npm-compare.com/awilix,inversify,tsyringe,typedi: Lists its features; notes decorator overhead and reflection metadata setup
- github.com/finwo/typedi: Fixes were merged into develop but never released
- npm hasTypes: Ships its own types
GPT-6.2 Sol: 5.4, likely 4.2 to 6.6
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.
- docs.typestack.community/typedi/01-getting-started: Documents automatic injection and the legacy compiler setup.
- raw.githubusercontent.com/typestack/typedi/v0.10.0/src/container-instance.class.ts: Released code supports typed lookups and named container instances.
- raw.githubusercontent.com/typestack/typedi/v0.10.0/src/error/service-not-found.error.ts: The error identifies the service and suggests registration.
- github.com/typestack/typedi/issues/1084: Open reports of constructor injection failures in test setups.
- inferdi.com/guide/performance: A competitor's benchmark compares TypeDI 0.10 directly with several peers.
Holds up over time1.8
Will it still be a good choice in two years?
Claude Opus 5.5: 1.5, likely 0.5 to 2.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.
- github commitsLastYear / releasesLastYear: 0 commits and 0 releases in the last year
- npm latestPublishedAt: 2021-01-15
- github.com/finwo/typedi: Says only bots have been active on the original
- socket.dev/npm/package/@n8n/di/overview/0.14.0: n8n forked it because typedi is no longer officially maintained
- scorecard Maintained: Score 0
GPT-6.2 Sol: 2.1, likely 1.0 to 3.3
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.
- github commitsLastYear, releasesLastYear, archived: Zero commits and releases over the past year. The repo remains unarchived.
- raw.githubusercontent.com/typestack/typedi/v0.10.0/CHANGELOG.md: The January 2021 release changed removal and reset behavior.
- github.com/typestack/typedi/issues/1178: The standard decorator support request has been open since 2023.
- github.com/typestack/typedi/pulls: Documentation and typing contributions have sat open for years.
- github.com/n8n-io/n8n/blob/master/packages/@n8n/di/README.md: n8n cites maintenance and future compatibility in its decision to switch.
Used widely3.9
How many use it, and is that growing?
Claude Opus 5.5: 4.0, likely 3.0 to 5.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.
- npm downloadsLast4Weeks: 3,171,373, up from 1,309,597 a year ago (ratio 2.4)
- medianDownloadsRatio: 4.1, so TypeDI is losing share
- dependents: 2,751 repos and 668 packages, against 17,579 repos for InversifyJS
- bluesky posts / hackerNews stories: 0 and 0
GPT-6.2 Sol: 3.8, likely 2.7 to 5.1
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.
- dependents repos, packages: 2,751 indexed repositories and 668 npm packages.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Installs grew 2.42× year over year against a 4.1× median.
- peers dependentRepos, github stars, bluesky posts, hackerNews stories: 4,241 stars, mid-pack indexed use, and zero matched posts or stories.
Vouched for3.1
Who stands behind it being good?
Claude Opus 5.5: 2.5, likely 1.5 to 4.0
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.
- socket.dev/npm/package/@n8n/di/overview/0.14.0: A large production user moved to its own fork
- npm-compare.com/awilix,inversify,tsyringe,typedi: Advises checking maintenance status before adopting
- hackerNews / bluesky: No current discussion
GPT-6.2 Sol: 3.6, likely 2.4 to 4.9
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.
- typegraphql.com/docs/dependency-injection.html: Shows how to use TypeDI for resolvers and request scopes.
- github.com/typestack/routing-controllers#using-di-container: Documents integration within the TypeStack ecosystem.
- github.com/n8n-io/n8n/blob/master/packages/@n8n/di/README.md: A former production user now maintains its own fork.
- github.com/typeorm/typeorm/blob/master/docs/blog/v1-release/typeorm-v1-release.md: TypeORM 1.0 removed its external container integration.
Safe5.4
How safe is it to depend on?
Claude Opus 5.5: 5.0, likely 4.0 to 6.5
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.
- npm dependencies: 0 dependencies
- advisories total: No known advisories
- scorecard score: 3.8; Maintained 0, Security-Policy 0, Token-Permissions 0
- github license: MIT
GPT-6.2 Sol: 5.8, likely 4.5 to 7.1
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.
- npm dependencies, license, latestPublishedAt: Zero declared dependencies, MIT license, and a January 2021 publish date.
- advisories total, scorecard score, checks: Zero OSV advisories and a 3.8 Scorecard with multiple weak checks.
- github.com/typestack/typedi/security/policy: GitHub detects no published security policy.
- npmjs.com/package/typedi: The listing shows one named collaborator and a release bot.
- docs.typestack.community/typedi/01-getting-started: Decorator setup adds reflect-metadata separately.
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
- npm downloads, 4 weeks
- 3.2M ×2.4 in a year
- GitHub stars
- 4.2k
- Commits, 12 months
- 0
- npm version
- 0.10.0 Jan 2021
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 3.8 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (typestack/typedi), npm (typedi), OSV and the OpenSSF Scorecard.