# jeffijoe/awilix

Extremely powerful Inversion of Control (IoC) container for Node.JS

Repository: https://github.com/jeffijoe/awilix
Canonical: https://ross.abutalabs.com/products/awilix
Language: TypeScript
License: MIT
License Family: permissive
Topics: dependency-injection, awilix, ioc, lifetime-management, nodejs, javascript
Last push: 2026-08-26T12:09:03+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 3844, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4222, forks 148 (observed 2026-08-28T04:08:39.324955+00:00)

## What it is
Awilix is a powerful, performant dependency injection (IoC) container for JavaScript/Node.js, written in TypeScript. It enables composable, testable code through annotation-free dependency injection with lifetime management, scopes, and module auto-loading.

## Use cases
- manage dependencies in a node.js application
- dependency injection without decorators or annotations
- create scoped instances per request
- make services testable with injected dependencies
- auto-load and register modules from a directory
- replace a service locator with a proper DI container

## When to choose
- building Node.js or TypeScript apps wanting clean decoupling from DI mechanics
- you need lifetime management like singletons, transients, and request scopes
- you prefer plain functions/classes over annotation-heavy frameworks

## When to avoid
- working outside the JavaScript/Node.js ecosystem
- you want a full application framework with DI built in (e.g., NestJS)
- very small scripts where manual wiring is simpler

## Facets
- artifact type: library
- maturity: stable
- function: middleware, developer-tools
- domain: backend, developer-tools
- platform: -
- tags: dependency-injection, ioc-container, service-locator, lifetime-management, di-container, nodejs, javascript, typescript

## Member repositories
- jeffijoe/awilix (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:39.324955+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:22:23.979816+00:00, confidence not recorded.
  - readme: https://github.com/jeffijoe/awilix (fetched 2026-08-28T04:08:39.324955+00:00, sha 4f08d61c4e19)
  - registry_npm: https://registry.npmjs.org/awilix (fetched 2026-08-29T09:12:36.405401+00:00, sha 354c1da8a858)
- Data as of 2026-08-30T08:39:29.467469+00:00.
