# Weld

> The reference implementation of Jakarta CDI

Source: https://talira.ai/catalog/weld-nsdbsgfg
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / dependency injection](https://talira.ai/categories/libraries/dependency-injection), [languages / java](https://talira.ai/categories/languages/java)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Supports: [CDI](https://talira.ai/standards/jakarta-cdi.md)[^2]
- Backed by: [Weld](https://talira.ai/orgs/weld-project.md), [Commonhaus Foundation](https://talira.ai/orgs/commonhaus-foundation.md)

Weld is the reference implementation of Jakarta CDI (Contexts and Dependency Injection), the Jakarta EE standard for dependency injection and contextual lifecycle management in Java. It is built into the WildFly, Eclipse GlassFish and Open Liberty application servers, runs in servlet containers such as Apache Tomcat and Eclipse Jetty, and works standalone in Java SE with no container. It also has JUnit extensions for testing CDI beans and OSGi bundle support, and is a Commonhaus Foundation project.

## Links

- Website: https://weld.cdi-spec.org/
- GitHub: https://github.com/weld/core
- Docs: https://weld.cdi-spec.org/documentation/

## Problems it solves

- use standard Jakarta dependency injection in a plain Java SE app without an application server
- add CDI beans and scopes to a web app running on Tomcat or Jetty
- test my CDI beans in a real container from JUnit

## Features

- reference implementation of Jakarta CDI
- built into WildFly, GlassFish and Open Liberty
- runs in Tomcat and Jetty
- standalone Java SE support
- CDI Lite extension translator for Build Compatible Extensions
- JUnit extensions for CDI testing
- OSGi bundle support

## Trust

Overall: 0.60 out of 1.
Signals: maintenance 1.00, adoption 0.52, momentum 0.15, community 0.85, backing 0.30, extensibility 0.00.

- last commit 5 days ago
- 71 commits in the last 90 days
- latest release 7.0.0.Final 2 months ago
- 420 GitHub stars
- 134 contributors
- backed by Weld and Commonhaus Foundation

## Alternatives

- [Guice](https://talira.ai/catalog/guice-ctn65c1s.md): Google's lightweight dependency injection framework for Java
- [Dagger](https://talira.ai/catalog/dagger-bpve3vgz.md): A fast dependency injector for Android and Java

## Sources

[^1]: https://github.com/weld/core/blob/main/LICENSE (checked 27 Nov 2026)
[^2]: https://weld.cdi-spec.org/ (checked 27 Nov 2026)
