macOS
brew install oqlocal Homebrew formula metadata
sudo port install oqMacPorts ports tree · devel/oq/Portfile · source: api.github.com
brew
Performant, and portable jq wrapper to support formats other than JSON. Version 1.3.5 via Homebrew; verified from local package data.
install
brew install oqlocal Homebrew formula metadata
sudo port install oqMacPorts ports tree · devel/oq/Portfile · source: api.github.com
sudo apk add oqAlpine Linux edge package indexes · oq · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#oqnixpkgs package indexes · pkgs/by-name/oq/oq/package.nix · source: api.github.com
overview
Performant, and portable jq wrapper to support formats other than JSON
history
oq is a Crystal-written wrapper around `jq` that converts non-JSON formats into JSON for filtering and then serializes the result back out. Its core idea is to keep jq's filter language while adding practical YAML and XML input/output paths.
George Dietrich introduced oq in a 2019 article after comparing existing jq-adjacent tooling and wanting a more portable, higher-performance option for large non-JSON documents. The project goals were portability, performance, and extending the formats that jq can handle without replacing jq's filter language.
The 1.x series broadened oq from a CLI into a small Crystal library as well. Release notes for v1.2.0 describe library support, a SimpleYAML format for streamable large inputs, and better handling of multiple non-JSON files; v1.3.0 added XML namespace options and forced-array behavior for XML parsing.
oq remains a niche developer utility, but it has enough packaging surface to be available through Homebrew, Alpine, MacPorts, and Nix in the input metadata. Homebrew describes it as a performant and portable jq wrapper, with Crystal required only for source builds.
A typical use keeps jq syntax in place and adds format flags, such as reading YAML with `-i yaml`, writing XML with `-o xml`, or using the tool as a Crystal dependency through `OQ::Processor`. That makes it useful in shell scripts where JSON, YAML, and XML need the same transformation logic.
oq is package-nerd interesting because it does less than a full data-query language and more than a one-off converter. It packages the proven jq execution model with format adapters and a single-binary distribution story, which is often the sweet spot for command-line glue.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
oq | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/Blacksmoke16/oq
install metadata
| Package key | brew:oq |
|---|---|
| Version | 1.3.5 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/oq |
| Homepage | https://blacksmoke16.github.io/oq |
| Repository | https://github.com/Blacksmoke16/oq |
| Upstream docs | https://blacksmoke16.github.io/oq |
| License | MIT |
| Source archive | https://github.com/Blacksmoke16/oq/archive/refs/tags/v1.3.5.tar.gz |
| Dependencies | bdw-gc, libyaml, pcre2 |
| Build dependencies | crystal |
| Uses from macOS | jq, libxml2 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | oq |
| Version Scheme | 0 |
| Revision | 2 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
oq
nix profile install nixpkgs#oqoq 1.3.5-r0
portable jq wrapper with support of other formats than JSON
https://github.com/blacksmoke16/oq
sudo apk add oqoq
sudo port install oqsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.