# sibprogrammer/xq

Command-line XML and HTML beautifier and content extractor

Repository: https://github.com/sibprogrammer/xq
Canonical: https://ross.abutalabs.com/products/xq
Language: Go
License: MIT
License Family: permissive
Topics: terminal, xml, syntax-highlighting, xpath, html, formatter, cli, golang
Last push: 2026-08-24T06:49:01+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 75, longevity 100
- inputs: {"age_days": 1761, "days_push": 9, "days_rel": 10, "gap_med": 165, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1142, forks 34 (observed 2026-08-28T04:03:44.873749+00:00)

## What it is
xq is a command-line XML and HTML beautifier and content extractor written in Go. It formats and syntax-highlights markup, supports XPath and CSS selector queries for content extraction, and can convert XML to JSON.

## Use cases
- pretty-print and syntax-highlight xml files in the terminal
- extract values from xml using xpath queries
- extract html elements with css selectors
- convert xml to json from the command line
- format html pulled from curl through stdin
- check for presence of an xml node in shell scripts

## When to choose
- you need a jq-like tool for XML/HTML instead of JSON
- you want fast, dependency-free markup formatting in shell pipelines
- you need to extract node text or attributes via XPath or CSS selectors

## When to avoid
- you need full XML schema validation or XSLT transformation
- you need to query JSON or YAML rather than XML/HTML
- you need a GUI or programmatic library API rather than a CLI

## Facets
- artifact type: cli-tool
- maturity: active
- function: parser, formatter, cli, developer-tools
- domain: developer-tools, files
- platform: cli, cross-platform, windows
- tags: xml, html, xpath, css-selectors, syntax-highlighting, jq-like, json-conversion, command-line, macos, linux

## Member repositories
- sibprogrammer/xq (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:44.873749+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:35:17.004589+00:00, confidence not recorded.
  - readme: https://github.com/sibprogrammer/xq (fetched 2026-08-28T04:03:44.873749+00:00, sha 70fb1e05d644)
- Data as of 2026-08-30T08:39:29.467469+00:00.
