pkg.soopen package index

brew / 排名 5858

使用 Homebrew 安装 headson

查看 headson 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install headson

local Homebrew formula metadata

概览

软件包摘要

Head/tail for structured data

命令和别名

  • hson

历史

项目历史与用法

headson is a Rust CLI and Python library that acts like head or tail for structured data. Its executable, `hson`, previews JSON, YAML, text, and source files while respecting byte, character, or line budgets.

项目历史

The GitHub repository was created in October 2025. The README frames the project as a structure-aware alternative to head and tail for JSON and YAML, later extended to text and source-code summaries.

Early releases moved quickly through core CLI capabilities: multiple input files, global character limits, tail sampling, color output, YAML loading, auto format detection, grep-like inclusion, tree-style multi-file previews, and source-code heuristics. The release log shows the project settling on `headson` as the package name and `hson` as the installed command.

采用历史

Public adoption evidence is thin because the project is young and niche. Its upstream metadata, docs.rs page, and Homebrew formula show the intended audience: CLI users, shell scripts, and AI-agent or developer-tool workflows that need small previews of large structured files.

The package fills a modern command-line gap: traditional head and tail are line-oriented, while JSON and YAML often need tree-aware truncation to remain understandable after sampling.

使用方式

A common use is piping JSON to `hson -c 800` to get a compact preview under a strict byte budget. Other examples include previewing many JSON files with a global budget, rendering strict JSON, showing YAML with comments, preserving grep matches under tight budgets, and summarizing source files by indentation-aware outlines.

The tool can read stdin or file paths, recurse through directories, respect git-aware ordering for multi-file summaries, and expose the same functionality as a Python library.

为什么软件包爱好者会关心

headson is interesting to package nerds because it is a tiny Rust CLI that wraps a very specific terminal workflow: inspect enough of a structured file without dumping the whole thing. It is especially suited to package-manager installs because users expect small inspection tools to be globally available on PATH.

It also reflects a newer CLI niche shaped by large logs, machine-readable APIs, and AI-agent context budgets: budgeted previews are no longer just cosmetic, they are part of keeping command output useful.

时间线

  • 2025-10: Repository created.
  • 2025-10: v0.2.0 added support for multiple input files.
  • 2025-10: v0.3.0 added tail-oriented sampling.
  • 2025-10: v0.6.0 added color output.
  • 2025-11: v0.6.2 added YAML loading and auto format detection features.
  • 2025-11: v0.6.5 and v0.6.6 added line-based and Unicode character budget modes.

Related projects

  • Unix head and tail are the conceptual ancestors.
  • jq, yq, grep, ripgrep, and tree are adjacent command-line tools whose workflows headson references or emulates.
  • docs.rs and crates.io are part of the Rust packaging ecosystem around the project.
  • Python packaging is relevant because the README documents a Python library alongside the CLI.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
hsoncli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-04
管理器版本0.17.0
管理器更新时间
本地数据OK
上游当前
检测到的最新版本headson-v0.17.0

https://github.com/kantord/headson

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键brew:headson
版本0.17.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/headson
主页https://docs.rs/headson/latest/headson/
仓库https://github.com/kantord/headson
上游文档https://docs.rs/headson/latest/headson/
许可证MIT
源码归档https://github.com/kantord/headson/archive/refs/tags/headson-v0.17.0.tar.gz
构建依赖rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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