# google/wire

Compile-time Dependency Injection for Go

Repository: https://github.com/google/wire
Canonical: https://ross.abutalabs.com/products/google-wire
Language: Go
License: Apache-2.0
License Family: permissive
Topics: go, golang, dependency-injection, codegen, initialization
Archived: true
Last push: 2025-08-22T13:56:56+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 38, release rhythm 12, longevity 100
- inputs: {"age_days": 2835, "days_push": 376, "days_rel": 376, "gap_med": null, "n_releases_24m": 1}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 14407, forks 747 (observed 2026-08-28T04:11:06.943524+00:00)

## What it is
Wire is a compile-time dependency injection code generation tool for Go. It generates initialization code from provider functions without runtime state or reflection.

## Use cases
- generate dependency injection wiring in Go
- avoid global variables with explicit initialization
- compile-time DI without reflection
- auto-generate Go initialization code
- wire together service components in Go

## When to choose
- you want dependency injection in Go without runtime reflection overhead
- you prefer explicit, generated initialization code
- you want a feature-complete, simple DI codegen tool

## When to avoid
- you need active maintenance or new features, as the project is no longer maintained
- you prefer runtime DI frameworks with dynamic configuration
- you are not using Go

## Facets
- artifact type: cli-tool
- maturity: abandoned
- function: build-tool, developer-tools
- domain: developer-tools, backend
- platform: go, cli, cross-platform
- tags: dependency-injection, code-generation, golang

## Member repositories
- google/wire (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:06.943524+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:12:35.815340+00:00, confidence not recorded.
  - readme: https://github.com/google/wire (fetched 2026-08-28T04:11:06.943524+00:00, sha af7b066a032b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
