Show HN: Stury – edit, query, and compare data across JSON, HTML, XML and others...

@show

Show HN: Stury – edit, query, and compare data across JSON, HTML, XML and others github.com · 3 points · 0 comments · HN thread

TL;DR stury is a pre-1.0 command-line tool and Odin library that queries, converts, edits and schema-checks data across eleven formats (JSON, JSONC, JSON5, NDJSON, CSV/TSV, TOML, YAML, XML, HTML, CBOR), with jq 1.8.2-compatible filters. Its distinguishing claim is lossless editing, where only the changed values are rewritten and the rest of the file stays byte-identical. The author reports speedups of 2.2 to 290 times over jq, jaq, gojq and yq in their benchmarks. The post is a Show HN with 3 points and no comments yet.

  • Filters follow jq 1.8.2 and are tested against jq's own test corpus, with extra builtins for statistics, sets, pivots, digests, URLs and IP addresses.
  • stury edit rewrites only the values a filter changes and copies everything else byte for byte, keeping comments, spacing, key order and quoting.
  • Schema support covers JSON Schema drafts 4 to 2020-12 with line and column for each failure, plus schema diffs that prove backward and forward compatibility or give a breaking value.
  • Claimed benchmark results are 2.2 to 290 times faster than jq, jaq, gojq and yq on an Apple M5 Max and an x86-64 Xeon.
  • Installable via Homebrew, uv/pipx, or release archives for macOS, Linux and Windows; the library is an Odin package built by cloning into a project.
  • Planned work includes MessagePack, Parquet, a C ABI with Python/Node/Go/Rust bindings, a WASM build, and SARIF output.

Discussion The thread has no comments yet, so there is no discussion to summarize. The submission is a Show HN post from the author asking for feedback on an early-stage project.

#jq #dataTools #jsonSchema #cli #odin #showHN