# Guice

> Google's lightweight dependency injection framework for Java

Source: https://talira.ai/catalog/guice-ctn65c1s
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Framework
- Categories: [libraries / dependency injection](https://talira.ai/categories/libraries/dependency-injection)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^3]

Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 11 and later from Google, which has used it in mission-critical applications since 2006. It removes most of the need for factories and `new` in your code (its makers call `@Inject` the new `new`), embraces Java's type safety, keeps its feature set small, and avoids surprises and magic so code stays understandable. Version 6.0.0 supports `javax.inject`, servlet and persistence, and 7.0.0 the `jakarta` equivalents; they're otherwise the same. It's Apache 2.0 licensed, with a user guide in its wiki and Javadocs per release.

## Links

- GitHub: https://github.com/google/guice
- Docs: https://github.com/google/guice/wiki/Motivation

## Problems it solves

- I want dependency injection in my Java app without a full framework like Spring
- I need to stop wiring objects together with factories in Java
- I want type-safe dependency injection for a Java library

## Features

- Dependency injection with @Inject
- Type-safe bindings in Java code
- Small, deliberately limited feature set
- javax (6.0.0) and jakarta (7.0.0) releases
- User guide and Javadocs

## Trust

Overall: 0.55 out of 1.
Signals: maintenance 0.46, adoption 0.82, momentum 0.58, community 0.84, backing 0.55, extensibility 0.00.

- last commit 30 days ago
- 2 commits in the last 90 days
- latest release 7.0.0 3.6 years ago
- 12.7k GitHub stars
- 122 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

## Alternatives

- [Dagger](https://talira.ai/catalog/dagger-bpve3vgz.md): A fast dependency injector for Android and Java
- [Weld](https://talira.ai/catalog/weld-nsdbsgfg.md): The reference implementation of Jakarta CDI
- [Koin](https://talira.ai/catalog/koin-4fbkxvtn.md): Pragmatic dependency injection for Kotlin and Kotlin Multiplatform

## Sources

[^1]: https://github.com/google/guice/blob/master/README.md (checked 30 Nov 2026)
[^2]: https://github.com/google/guice/blob/master/COPYING (checked 30 Nov 2026)
[^3]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
