# google/guice

Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 11 and above, brought to you by Google.

Repository: https://github.com/google/guice
Canonical: https://ross.abutalabs.com/products/guice
Homepage: https://github.com/google/guice
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2026-08-21T18:52:02+00:00

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

## Adoption (not part of the score)
Stars 12732, forks 1680 (observed 2026-08-28T04:10:59.691214+00:00)

## What it is
Guice is a lightweight dependency injection framework for Java 11+, developed by Google. It eliminates the need for manual factories and 'new' calls by wiring dependencies via type-safe @Inject annotations.

## Use cases
- inject dependencies into java classes without factories
- make java code easier to unit test with mockable dependencies
- wire up services in a large java application
- replace manual singleton and factory patterns with annotation-based DI
- manage javax vs jakarta injection annotations across java versions

## When to choose
- you want a mature, battle-tested DI framework for Java with Google backing
- your project uses javax.inject or jakarta.inject annotations
- you prefer type-safe, annotation-driven wiring over XML configuration
- you need helpful error messages and extensibility in a DI container

## When to avoid
- you are using Spring and want its full ecosystem (web, data, security) rather than just DI
- you need compile-time dependency injection like Dagger for Android or GraalVM native images
- your project targets Java versions below 11
- you want CDI-compliant enterprise dependency injection

## Facets
- artifact type: framework
- maturity: stable
- function: middleware, developer-tools, testing
- domain: developer-tools, backend, web-development
- platform: jvm, cross-platform
- tags: dependency-injection, java, google, ioc, jakarta, javax

## Member repositories
- google/guice (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:59.691214+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:13:50.018445+00:00, confidence not recorded.
  - readme: https://github.com/google/guice (fetched 2026-08-28T04:10:59.691214+00:00, sha 24bd0bd854af)
  - homepage: https://github.com/google/guice (fetched 2026-08-29T08:09:59.740608+00:00, sha af01d97b605b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
