Skip to content
CAI
Software that uses CAICheck a score

mgdm/htmlq

51.2

Adequate · 29 September 2026

347

lines of production code

Rust

primary language

2

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

htmlq is a command-line utility for extracting and manipulating HTML content using CSS selectors. It provides capabilities for selecting nodes, rewriting relative URLs to absolute ones, and formatting output, while supporting text-only modes and node removal. The tool is implemented in Rust and includes integration tests to verify its core selection and modification behaviors.

Features

Initial release of htmlq with Nix flake support and documentation

This change introduces the initial version of htmlq, a command-line tool for extracting content from HTML using CSS selectors. The release includes the core application logic, comprehensive documentation in README.md with installation instructions for Cargo, Homebrew, Scoop, and FreeBSD, and an MIT license. Additionally, it adds Nix flake support (flake.nix and flake.lock) to facilitate building and development within the Nix ecosystem.

(repo-wide) · high confidence

Behavioural changes

Add URL rewriting, pretty printing, and structured configuration

The tool now supports rewriting relative URLs in \<a\>, \<link\>, and \<area\> tags to absolute URLs using a provided base URL or by detecting a \<base\> tag in the HTML. A new --pretty flag reformats output HTML for readability, and the CLI has been refactored to use a derive-based configuration struct with explicit options for input/output paths, text-only mode, whitespace handling, and node removal.

src · high confidence

Test coverage

Added CLI integration tests for htmlq

Added integration tests for the htmlq command-line tool to verify core selection and modification behaviors, including finding elements by class or ID and removing specific child nodes.

tests · high confidence

Dependencies

Upgrade to Rust 2024 edition and migrate CLI framework to clap 4

The project has been updated to the Rust 2024 edition and upgraded to version 0.5.0. The command-line interface now uses clap 4 with derive-based API support, replacing the previous version 2 dependency. Additionally, the HTML parsing library has been migrated from kuchiki to kuchikiki 0.8, and several other dependencies such as html5ever, url, and lazy\_static have been added or updated to ensure compatibility with the new edition and framework.

(dependencies) · high confidence

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 57 → 51 (-5.7)
  • Rubric changed (rubric-2026.09.9 → rubric-2026.09.17) — scores are not directly comparable.

Lenses

  • Code Health 100 → 100 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 53 → 53 (+0.0)
  • Readiness 47 → 36 (-10.9)
  • Security 69 → 75 (+6.1)

Resolved (1)

  • Off-boarding risk: anonymized user #1

New (2)

  • Dependency hygiene PARTLY measured — Cargo dependencies read, dependency currency not (crates.io unreachable)
  • Off-boarding risk: anonymized user #1

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

mgdm/htmlq was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 29 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit bfcb1d1d11a80fdd92c0dace1e7e559fbdb225cb — the exact code this score is about.
  • Scored under rubric-2026.09.17 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer preprod-705631bb727e.