Automic VaultAutomic Vault

brew

Install xmq with Homebrew

Tool and language to work with xml/html/json. Version 4.2.0 via Homebrew; verified 2026-05-24.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install xmq

local Homebrew formula metadata

overview

Package summary

Tool and language to work with xml/html/json

Commands and aliases

  • xmq

history

Project history and usage

XMQ is both a command-line tool and a compact markup syntax for working with XML, HTML, JSON, and related transforms. Its niche is making tree-shaped markup readable, editable, pretty-printable, and pipe-friendly without giving up round-tripping back to XML/HTML or JSON.

Project history

The GitHub repository was created in 2019 and describes XMQ as a converter between XML/HTML and a more human-readable XMQ/HTMQ form, with JSON support, syntax highlighting, pretty printing, a pager, HTML and TeX rendering, and Invisible XML grammar support.

The project documentation and 2025 PDF by Fredrik Ohrstrom frame the design as a response to XML's editing pain: closing tags, significant whitespace, comments, attributes, entities, and transforms are represented in a syntax intended to remain visibly structured and always pretty-printable.

Adoption history

XMQ is a modern niche tool rather than a broad standard. Its public adoption signal is mostly package-manager availability, GitHub activity, and command-line discussion among users who want XML/HTML/JSON inspection to feel more like jq-era terminal work.

The tool's practical appeal grew as it added more than one format conversion. The homepage examples show pretty-printing XML, HTML, and JSON; using an internal pager; deleting nodes with XPath; converting between xmq/xml/htmq/html/json; applying XSLT/XSLQ-style transforms; rendering to HTML or TeX; and parsing arbitrary input with ixml grammars.

How it is used

Typical xmq usage starts as a pretty-printer: run xmq pom.xml, xmq data.json, cat rss.xml | xmq, or pipe a web page through deletion and pager commands to inspect the structure. The same executable can convert back out with commands such as to-xml, to-html, and to-json.

Its more package-nerd use is as a bridge between tree formats and Unix text workflows. XMQ's compact form and clines-style output make it easier to grep, diff, store, or log structured markup while still keeping enough structure to reconstruct the original document.

Why package nerds care

XMQ is interesting because it treats XML not as obsolete, but as a powerful tree model with bad ergonomics. The package gives terminal users a reversible shorthand plus tools around XPath, transforms, paging, and rendering.

It also sits near a family of command-line format shims such as jq, yq, xq, xmlstarlet, and pup, but takes a different route: instead of only querying a source format, it introduces an alternate readable surface syntax for markup.

Timeline

  • 2019-09-02: The libxmq/xmq GitHub repository is created.
  • 2020s: The tool expands around XML, HTML, JSON, syntax highlighting, paging, conversion, XSLT/XSLQ transforms, and ixml parsing.
  • 2025-08-04: The XMQ/HTMQ PDF presents the rationale and compact specification for the syntax.
  • 2026: The project is packaged in Homebrew and documented at libxmq.org as a standalone xmq tool plus embeddable C source.

Related projects

  • jq is the obvious JSON-side comparison for command-line structured-data inspection.
  • xmlstarlet and xq are adjacent XML command-line tools, though they query or transform existing formats rather than introducing XMQ as a reversible syntax.
  • Invisible XML is supported by xmq for parsing non-XML input through grammars.
  • libxml2 and libxslt are related XML infrastructure used throughout the broader XML tooling ecosystem.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
xmqcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version4.2.0
manager updated2026-05-24
local dataok
upstreamcurrent
latest detected4.2.0

https://github.com/libxmq/xmq

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:xmq
Version4.2.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/xmq
Homepagehttps://libxmq.org
Repositoryhttps://github.com/libxmq/xmq
Upstream docshttps://libxmq.org/
LicenseMIT
Source archivehttps://github.com/libxmq/xmq/archive/refs/tags/4.2.0.tar.gz
Last updated2026-05-24T18:54:31Z
Pulseupdated
Build dependenciespkgconf
Uses from macOSlibxml2, libxslt
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namexmq
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment