Skip to content
JS
Comparison

tsyringe vs injection-js

TypeScript toolingPackage data 25 Sept 2026
tsyringev4.10.0, 16 Apr 2025

Lightweight dependency injection container for JavaScript/TypeScript

$ npm install tsyringe
injection-jsv2.6.1, 22 Oct 2025

Dependency Injection library for JavaScript and TypeScript

$ npm install injection-js
Metrictsyringeinjection-jsDifference
Weekly downloads8,698,792936,451tsyringe 9.3x higher
12-month download growth+910%+21%tsyringe +890 pts
Gzip size---
Minified size---
Dependencies11Same
Unpacked size145 kB326 kBtsyringe 2.2x smaller
Latest release4.10.0, 16 Apr 20252.6.1, 22 Oct 2025injection-js 6 months more recent
Releases, last 12 months02injection-js 2 more
First published14 Feb 201823 Jan 2017injection-js 13 months earlier
GitHub stars6,0011,378tsyringe 4.4x higher
Open issues632tsyringe 61 more
Open pull requests204tsyringe 16 more
Contributors---
Commits, last 52 weeks15injection-js 5.0x higher
TypeScript typesBundledBundledSame
Module formatESM + CommonJSESM + CommonJSSame
Runtimes---
LicenseMITMITSame

Green marks the smaller size or the more recent release. Bold marks the higher count, with no judgement implied. Sizes are for the whole package per Bundlephobia. Growth compares the average of the last 4 weeks with the first 4 weeks of the 52-week series.

tsyringe8.8m latest weekinjection-js936.5k latest week
Week of 23 Sept 2025Week of 15 Sept 2026
Weekly npm downloads, 52 weeks. Y axis starts at zero. Values are not smoothed.

tsyringe

Major versions
  1. 1.0.014 Feb 2018
  2. 2.0.021 Feb 2018
  3. 3.0.026 Dec 2018
  4. 4.0.02 Nov 2019
Last 5 releases
  1. 4.10.016 Apr 2025
  2. 4.9.13 Apr 2025
  3. 4.8.020 Jun 2023
  4. 4.7.027 May 2022
  5. 4.6.07 Jul 2021
26 releases in total, 0 in the last 12 months

injection-js

Major versions
  1. 1.0.023 Jan 2017
  2. 2.0.024 Mar 2017
Last 5 releases
  1. 2.6.122 Oct 2025
  2. 2.6.016 Oct 2025
  3. 2.5.022 Apr 2025
  4. 2.4.07 Nov 2020
  5. 2.3.229 Oct 2020
18 releases in total, 2 in the last 12 months
tsyringe

-

injection-js

-

tsyringe

-

injection-js

-

  • Module formatBoth ESM + CommonJS
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirementtsyringe: >= 6.0.0; injection-js: none declared (engines field in package.json)
  • Need the more recent releaseinjection-js (2.6.1 on 22 Oct 2025 vs 4.10.0 on 16 Apr 2025)
  • Higher weekly npm downloadstsyringe (8.7m vs 936.5k)

Each line is generated from the data above.

tsyringe: tsyringe npm registry, tsyringe npm downloads, tsyringe GitHub. Data fetched 25 Sept 2026.

Indexability: Indexed.