proomt

Search

Search posts, papers, and topics

All posts

Mozilla Automation TeamWill Lachance2 min readintermediate

Glean Dictionary + DuckDB

Summary

A short post describing how the Mozilla Glean Dictionary JSON can be exported into a DuckDB file via a simple ETL script, enabling SQL queries and notebook‑driven analysis of metric types and growth over time.

  • Exporting static JSON docs to DuckDB is a one‑step ETL that produces a portable, queryable data product.
  • SQL queries can quickly surface metric type counts (e.g., 20k counters, 7k events).
  • A Marimo notebook can track metric count trends, showing a notable jump in 2024 when Firefox Desktop adopted Glean.

Treating documentation as data lets teams can reuse the same source for dashboards, analytics, or custom UI without re‑parsing JSON each time, leveraging DuckDB’s low‑overhead, server‑less SQL engine.

5/10

Related reading

  1. Article: Your Next DSL Author Is a Language Model

    Typed Domain Grounding (TDG) embeds a DSL inside a mainstream language the LLM already knows (e.g., Kotlin) and uses the host compiler as an oracle. The author describes five building blocks—embedding, choosing a host language with high training‑data frequency, compiler‑driven type safety, a generate‑compile‑repair loop, and an on‑demand teaching tool—and shows measured results from kUML, a Kotli…

    InfoQinfoq.com18 min