# Brandi: 4.7 out of 10

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

Brandi is a small, well-typed TypeScript DI container that needs no decorators. It has optional React bindings. Development has nearly stopped: after a three-year gap, the only release was a React 19 update in January 2026. Very few projects use it. It works, but Awilix or InversifyJS is a safer pick for new work.

**Best for:** Small TypeScript or React projects that want type-safe DI without decorators or reflect-metadata, and that can live with a dormant upstream.

## Scores

- **Overall: 4.7** (likely 3.7 to 5.8)
  - Claude Opus 5.5 (4.0): Brandi is a neat, type-safe, decorator-free container that works today. But it has one maintainer, it was dormant for years, few people use it, and nobody independent vouches for it. Awilix offers decorator-free DI with active maintenance, and InversifyJS and TSyringe have far larger ecosystems. Keep it where it already runs, but most new projects should pick a peer.
  - GPT-6.2 Sol (5.4): Brandi is a reasonable choice when typed tokens, explicit wiring, and a small footprint are priorities. For most new Node.js projects that need a container, Awilix has stronger maintenance and built-in resource cleanup. Brandi's sporadic releases and limited evidence of current use make its long-term ranking uncertain.
- **Needed by many: 3.8** (likely 2.8 to 4.9)
  - Claude Opus 5.5 (3.5): DI containers are a niche in JavaScript and TypeScript. Most apps pass dependencies by hand or use a framework's built-in injector, as NestJS and Angular do. Brandi's decorator-free, typed-token approach suits TypeScript users on any runtime, and its React bindings widen that a little.
  - GPT-6.2 Sol (4.1): Brandi can wire services in browser and server apps across frameworks. A standalone container is most useful when an app has enough services, lifetimes, or interchangeable implementations to justify it. The State of JavaScript survey shows broad TypeScript use, but demand for standalone containers is harder to estimate.
- **Helps a lot: 6.4** (likely 5.4 to 7.5)
  - Claude Opus 5.5 (6.0): The design is clean: typed tokens, an injected() registration, scopes, hierarchical containers and test snapshots, all with strong type inference and no reflection. Its limits are constructor-only injection, awkward factories with arguments or async factories, and a few typing edge cases that are still open in the issues. The docs are decent, but the small user base means AI agents often guess its API wrong.
  - GPT-6.2 Sol (6.8): Version 5.1.0 provides typed bindings, four lifetimes, child containers, and a compact API with worked examples. Explicit registrations give coding agents a clear pattern for ordinary wiring, though there is little direct evidence on how well they handle larger graphs. Async factories require manual calls, and a user reported that initialization errors can lose their original cause. A benchmark from another DI library found a small bundle and fast singleton resolution, but it covers limited scenarios.
- **Holds up over time: 3.4** (likely 2.3 to 4.9)
  - Claude Opus 5.5 (3.0): The project has one maintainer and no visible funding. Between June 2023 and January 2026 there were no commits. The January 2026 commits only added React 19 support. Issues from 2022 to 2023 are unanswered, and Scorecard rates Maintained at 0. Peers such as Awilix are far more active.
  - GPT-6.2 Sol (3.8): The repository recorded four commits in the past year, and npm received one core release in January 2026. The same month brought React 19 support for the companion package, but GitHub release notes still stop at 5.0.0 and several reports remain open from 2023. Awilix and Needle DI show more recent activity, and Brandi's future release cadence is uncertain.
- **Used widely: 2.2** (likely 1.1 to 3.3)
  - Claude Opus 5.5 (2.0): About 70k downloads in 4 weeks, up 2.2x from a year ago. That is well below the 4.1x median, so it is losing ground. Ecosyste.ms finds only 12 dependent repos, against thousands for InversifyJS, TSyringe and Awilix. Needle DI, a newer peer, now has more downloads.
  - GPT-6.2 Sol (2.3): Brandi recorded about 69,600 installs in four weeks, up 2.24 times year over year. That trails the catalog's 4.1 times baseline and Needle DI's 11.7 times growth. The 12 indexed repositories and 12 indexed packages point to a small direct user base beside established peers, with incomplete coverage and some installs potentially coming through other packages. GitHub's 228 stars cover the core and React packages, and the supplied Hacker News and Bluesky samples show little public attention.
- **Vouched for: 2.4** (likely 1.2 to 3.8)
  - Claude Opus 5.5 (1.5): I found no independent reviews, benchmarks, survey entries or well-known production users. It has no Hacker News stories and no Bluesky posts. Independent DI comparisons, such as LogRocket's top-5 list and the XWiki team's evaluation, leave it out; the only write-up is the author's own dev.to tutorial.
  - GPT-6.2 Sol (3.2): Kong's 2023 Mesh GUI notices list Brandi 5.0.0, which documents historical use in a shipped product. NovaDI's benchmark provides outside evidence on bundle size and simple resolution, and user reports describe concrete wiring and debugging problems. Evidence of current production use and developer satisfaction is thin.
- **Safe: 6.3** (likely 5.2 to 7.7)
  - Claude Opus 5.5 (6.0): It has zero dependencies, no known advisories and a permissive ISC licence, so the attack surface is small. The risks come from the process: an OpenSSF Scorecard of 2.6, no branch protection, no security policy, and one person who publishes releases.
  - GPT-6.2 Sol (6.6): The core package has zero runtime dependencies, uses the permissive ISC license, and has no advisories in the supplied OSV data. Its OpenSSF Scorecard is 2.6, with weak code review and zero scores for branch protection and security policy. The small dependency footprint helps, but publishing safeguards and the project's response to a future advisory are hard to assess.

## Good

- Typed tokens give compile-time checked resolution without decorators, reflect-metadata or tsconfig flags.
- No runtime dependencies and a tiny footprint, so it runs in browsers and on servers.
- Official brandi-react bindings, with hooks and a container provider, now support React 19.
- Covers the needed DI features: scopes, hierarchical containers, optional dependencies, and capture/restore for tests.

## Bad

- One maintainer, with 4 commits in the last year and only one release since February 2023.
- Old issues stay open, including a TypeScript 4.9 compile error and limits on factories with arguments and async factories.
- Very small user base (12 dependent repos), so there are few answers online and AI agents know its API poorly.
- Supports constructor injection only, by design; there is no property or method injection.

## The numbers

- Downloads, 4 weeks: 70k
- In a year: ×2.2
- GitHub stars: 228
- Commits, 12 months: 4
- Last npm release: Jan 2026
- Advisories, 24 months: 0
- Licence: ISC
- GitHub: https://github.com/vovaspace/brandi
- npm: https://www.npmjs.com/package/brandi

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.
