The Glean SDKs are available for several programming languages and development environments.
Finally, each SDK may also be1 accompanied by
glean_parser, a Python command line utility
that provides a list of useful development tools for developers instrumenting a project using Glean.
Some SDKs are not bundled with
glean_parser and it is left to the user to install it separately.
The code for the Rust Core-based SDKs is available on the
These group of SDKs were previously referred to as "language bindings" i.e. "the Kotlin language bindings" or "the Python language bindings".
The Glean Rust SDK can be used with any Rust application. It can serve a wide variety of usage patterns, such as short-lived CLI applications as well as longer-running desktop or server applications. It can optionally send builtin pings at startup. It does not assume an interaction model and the integrating application is responsible to connect the respective hooks.
It is available as the
glean crate on crates.io.
The Glean Kotlin SDK is primarily used for integration with Android applications. It assumes a common interaction model for mobile applications. It sends builtin pings at startup of the integrating application.
The Kotlin SDK can also be used from Java.
See Android for more on integrating Glean on Android.
The Glean Swift SDK is primarily used for integration with iOS applications. It assumes a common interaction model for mobile applications. It sends builtin pings at startup of the integrating application.
The Glean Python SDK allows integration with any Python application. It can serve a wide variety of usage patterns, such as short-lived CLI applications as well as longer-running desktop or server applications.
It is available as
glean-sdk on PyPI.
This collection of SDKs is commonly referred to as Glean.js.
It is available as
@mozilla/glean on npm.
This package has different entry points to access the different SDKs.
@mozilla/glean/webgives access to the websites SDK
@mozilla/glean/webextgives access to the web extension SDK
@mozilla/glean/nodegives access to the Node.js SDK
The Glean QML SDK allows integration with Qt/QML applications and libraries.
It is available as a compressed file attached to each new Glean.js release and may be downloaded from the project GitHub releases page.