{"library":"tsyringe","type":"library","category":null,"description":"TSyringe is a lightweight dependency injection (DI) container for JavaScript and TypeScript, primarily focusing on constructor injection. Currently at stable version 4.10.0, it is actively maintained and backed by Microsoft. Its release cadence appears to be feature-driven, with recent updates (v4.4.0) adding interception and transformation capabilities. Key differentiators include its strong integration with TypeScript decorators (`@injectable`, `@singleton`, `@inject`), its ability to handle complex dependency graphs including circular dependencies with a `delay` helper, and its provision for both class-based and interface-based injection using tokens. It requires `reflect-metadata` for decorator-based type reflection and specific `tsconfig.json` settings.","language":"javascript","status":"active","version":"4.10.0","tags":["javascript","dependency injection","dependency","injection","ioc","container","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install tsyringe","imports":["import { injectable } from 'tsyringe';","import { container } from 'tsyringe';","import { singleton } from 'tsyringe';","import { inject } from 'tsyringe';"]},{"cmd":"yarn add tsyringe","imports":[]},{"cmd":"pnpm add tsyringe","imports":[]}],"homepage":null,"github":"https://github.com/Microsoft/tsyringe","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tsyringe","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/tsyringe/compatibility"}}