Automic VaultAutomic Vault

brew

hq を Homebrew でインストール

hq のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install hq

local Homebrew formula metadata

概要

パッケージ概要

Jq, but for HTML

履歴

プロジェクトの歴史と使われ方

hq is a Rust command-line tool for extracting structured JSON from HTML with CSS selectors. Its README summarizes the idea as `jq, but for HTML`.

プロジェクトの歴史

The project lives in the `orf/html-query` repository as a small Rust workspace with crates for the CLI, AST, extractor, and web UI. The README documents a selector syntax that looks JSON-shaped but uses CSS selectors as values, then emits JSON output.

採用の歴史

hq is packaged through Homebrew and published on crates.io as `html-query`. The crates.io metadata records the crate creation in December 2022 and points back to the upstream repository lineage, while the README documents installation through either `brew install hq` or `cargo install html-query`.

使われ方

Users pass hq a query such as `{posts: .athing | [{title: .titleline > a}]}` to select HTML elements and shape the result as JSON. The documented syntax includes text extraction, attribute extraction, parent selection, sibling selection, and nested arrays or objects.

The common use case is quick shell scraping: fetch or pipe HTML, select useful pieces with CSS selectors, and hand the resulting JSON to other command-line tools.

パッケージ好きにとっての重要性

hq is interesting because it imports the jq mental model into HTML scraping without trying to become a full crawler or browser automation framework. For package nerds, it belongs to the small-tool lineage where each file format gets a composable query command.

It also shows a familiar Rust CLI distribution pattern: a crates.io package for Cargo users, a GitHub repository with a web demo, and a Homebrew formula for users who want a binary package.

タイムライン

  • 2022: crates.io records the `html-query` crate creation.
  • 2023: crates.io records version 1.2.2 of `html-query`.
  • 1.2.2: Homebrew packages hq from the upstream `html-query-v1.2.2` GitHub archive.

Related projects

  • jq is the direct conceptual comparison used in the hq README.
  • CSS selector engines and Rust HTML parsing crates provide the underlying interaction model.
  • htmlq is a related but separate CLI in the broader `jq for HTML` family.

セキュリティ状態

保護ツール対応はまだ見つかっていません

hq に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 10 個のプラットフォームターゲットで利用できます。
  • ビルドメタデータには 1 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
hqcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版1.2.2
マネージャ更新日2026-06-15
ローカルデータOK
上流not checked
検出された最新未検出

https://github.com/orf/html-query

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:hq
バージョン1.2.2
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/hq
ホームページhttps://orf.github.io/html-query/
リポジトリhttps://github.com/orf/html-query
上流ドキュメントhttps://github.com/orf/html-query#readme
ライセンスMIT
ソースアーカイブhttps://github.com/orf/html-query/archive/refs/tags/html-query-v1.2.2.tar.gz
最終更新2026-06-15T10:20:18-04:00
Pulseupdated
ビルド依存関係rust
Bottle利用可能 (対象 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehq
Version Scheme0
Revision0
Conflicts With
  • proxygen
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

Combined YAML source

View the package source record on GitHub.

combined/hq.yml

使用ソース

  • 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