{"repo":"kantord/headson","free":true,"listed":false,"github":"https://github.com/kantord/headson","clone":"git clone https://github.com/kantord/headson.git","description":"head/tail for structured data - summarize/preview JSON/YAML and source code","language":"Rust","stars":253,"topics":["bash","cli","data-analysis","json","python","rust","shell-oneliner","tree-structure","data-presentation","json-parser"],"license":"MIT","category":"cli-tools","readme_excerpt":"Features · Install · Usage · Python bindings head / tail for JSON, YAML — but structure‑aware. Get a compact preview that shows both the shape and representative values of your data, all within a strict byte budget. (Just like head / tail , hson can also work with unstructured text files.) Available as: - CLI: Install · Usage - Python library: Install · Usage Features - Budgeted output: specify exactly how much you want to see (bytes/chars/lines; per-file and global caps) - Output formats: auto json yaml text with styles strict default detailed - Structure-aware parsing: full JSON/YAML parsing (preserves tree shape under truncation) - Source code support: heuristic, indentation-aware summaries that keep lines atomic - Multi-file mode: preview many files at once (paths, --glob ... , or --recursive on directories) with shared or per-file budgets - Repo-aware ordering: in git repos, frequent+recent files show up first (rarely touched files drift to the end; mtime fallback) - grep -like search and tree -like view: --grep and --tree emulate the workflows while still summarizing file contents inline - Fast: processes gigabyte‑scale files in seconds (mostly disk‑bound) - Available as a CLI app and as a Python library Extra features Source code mode For source code files, headson uses an indentation-aware heuristic to build an outline, then picks representative lines from across that structure (while keeping lines atomic so omissions never split a line). Syntax highlighting is availa","default_branch":null,"files":null,"tree":[],"storefront":"/r/kantord","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kantord/headson/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}