# facebookarchive/inject

Package inject provides a reflect based injector.

Repository: https://github.com/facebookarchive/inject
Canonical: https://ross.abutalabs.com/products/facebookarchive-inject
Homepage: https://godoc.org/github.com/facebookgo/inject
Language: Go
License: MIT
License Family: permissive
Archived: true
Last push: 2019-01-14T04:05:17+00:00

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

## Adoption (not part of the score)
Stars 1406, forks 137 (observed 2026-08-28T04:04:38.292643+00:00)

## What it is
A Go library providing reflection-based dependency injection. It builds and wires object graphs automatically using struct tags, supporting singletons, named and private instances.

## Use cases
- wire dependencies in a large Go application automatically
- build an object graph with dependency injection in Go
- avoid manual singleton wiring in Go services
- inject dependencies via struct tags in Go

## When to avoid
- you prefer compile-time or code-generated dependency injection
- you need an actively maintained library - the repo is archived since 2019

## Facets
- artifact type: library
- maturity: abandoned
- function: middleware
- domain: developer-tools
- platform: go
- tags: dependency-injection, reflection, object-graph, struct-tags, facebook-archive

## Member repositories
- facebookarchive/inject (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:38.292643+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-30T04:38:42.136218+00:00, confidence not recorded.
  - readme: https://github.com/facebookarchive/inject (fetched 2026-08-28T04:04:38.292643+00:00, sha 6429399c15e5)
  - homepage: https://godoc.org/github.com/facebookgo/inject (fetched 2026-08-29T11:52:20.269193+00:00, sha 13f4d69de446)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T11:52:20.280916+00:00, sha 757852027879)
  - site_page: https://pkg.go.dev/github.com/facebookgo/inject (fetched 2026-08-29T11:52:20.278837+00:00, sha c0980e2f3092)
  - site_page: https://go.dev/project (fetched 2026-08-29T11:52:20.282836+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
