# uber-go/fx

A dependency injection based application framework for Go.

Repository: https://github.com/uber-go/fx
Canonical: https://ross.abutalabs.com/products/uber-go-fx
Homepage: https://uber-go.github.io/fx/
Language: Go
License: MIT
License Family: permissive
Topics: golang, go, framework, service, app-framework, dependency-injection
Last push: 2025-12-27T14:09:36+00:00

## Health v2 (maintenance only)
Score: 49/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 59, release rhythm 8, longevity 100
- inputs: {"age_days": 3598, "days_push": 249, "days_rel": 477, "gap_med": 214, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7645, forks 349 (observed 2026-08-28T04:10:02.167384+00:00)

## What it is
Fx is a dependency injection based application framework for Go, developed and battle-tested at Uber. It manages application lifecycles, eliminates global state, and automatically wires the dependency graph of components.

## Use cases
- wire dependencies in a Go service without globals
- manage application startup and shutdown lifecycle in Go
- build reusable modules shared across Go microservices
- reduce boilerplate setup code in Go backends
- structure a large Go codebase with loosely-coupled components

## When to choose
- you are building Go backend services with complex dependency graphs
- you want to eliminate init() functions and global variables
- your team shares components across multiple Go services
- you want a mature, SemVer-stable DI framework backed by production use at Uber

## When to avoid
- you are writing a small script or simple CLI with few dependencies
- you prefer explicit manual wiring over reflection-based injection
- your project is not written in Go

## Facets
- artifact type: framework
- maturity: stable
- function: middleware, developer-tools, configuration-management
- domain: developer-tools, backend, web-development
- platform: go, windows, cross-platform
- tags: dependency-injection, application-framework, lifecycle-management, microservices, uber, linux, macos

## Member repositories
- uber-go/fx (main) score 49

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:02.167384+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-29T17:36:46.188973+00:00, confidence not recorded.
  - readme: https://github.com/uber-go/fx (fetched 2026-08-28T04:10:02.167384+00:00, sha a8f4e9d26d43)
  - homepage: https://uber-go.github.io/fx/ (fetched 2026-08-29T08:31:51.974441+00:00, sha 46490a6f67af)
- Data as of 2026-08-30T08:39:29.467469+00:00.
