uber-go/dig
A reflection based dependency injection toolkit for Go. observed · 2026-08-28
Health v2 · maintenance only
39/100
- Activity 21
- Release rhythm 28
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 35.0
- age_days: 3452
- days_rel: 477
- days_push: 477
- n_releases_24m: 3
Adoption not part of the score
4497 stars · 228 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
dig is a reflection-based dependency injection toolkit for Go that resolves object graphs at process startup. It is designed to power application frameworks like Uber's Fx rather than serve as a runtime service locator.
Use cases
- wire up dependencies in a Go application
- resolve an object graph at startup
- build an application framework on top of DI
- manage constructor dependencies in Go services
- avoid manual dependency wiring in large Go codebases
When to choose
- you need startup-time dependency injection in Go
- you're building or using an application framework like Fx
- you want a stable, SemVer-guaranteed v1 library
When to avoid
- you need to resolve dependencies after the process has started
- you want a full application framework rather than a DI toolkit
- you plan to expose the container to user-land code as a service locator
Facets
library · maturity stable
developer-tools plugin-system developer-tools backend apis go cross-platform dependency-injection reflection object-graph uber service-locator-alternative
2 sources
- readme: https://github.com/uber-go/dig · fetched 2026-08-28 · 9a1f2bdb2d65
- homepage: https://go.uber.org/dig · fetched 2026-08-29 · 4aad7164c395
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| uber-go/dig | main | 39 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem