Catalog app · RISC-V VM
Run yq in the browser
Query and edit YAML, JSON, XML, CSV and TOML with jq-like expressions.
Caution · No live sample on this page: On NanoVM v0.2.1 the Go runtime fails to start: with the default 512 MB guest it aborts with
fatal error: failed to reserve page summary memory, and with the 1.8 GB guest it did not finish starting within the sample's instruction budget — so even yq --version cannot run in the browser yet. The package installs and verifies; it is listed so the page is ready once Go binaries are supported.What it is
yq (mikefarah) applies jq-style expressions to YAML and other formats, can edit files in place while keeping comments, and converts between formats. It is the standard tool for scripting edits to Kubernetes manifests and CI configs.
Package facts
- version
4.53.3- runs on
- RISC-V VM (
elf-app,riscv64gc-linux-musl) - download
- 5.3 MB compressed · 1 file
- command
yq- requires
- nothing else — a static binary
- license
MIT(upstream)- upstream
- github.com/mikefarah/yq
- categories
- Data, Text
- catalog
- generation 12, Ed25519-signed
Install and run it from your page
With the SDK, installApp resolves yq in the signed index, fetches its content-addressed chunks from the CDN, verifies each one and writes the files into the VM. Details in Installing catalog apps.
javascript
import { createNano } from "@userland-run/nano-sdk";
const nano = await createNano({ image: { wasm: "/nano/console.wasm" } });
await nano.installApp("yq"); // signature-verified, cached in OPFS
// Installs and verifies today; see the note at the top of this page before running it.Typical usage of the upstream command-line tool:
bash
yq -i '.spec.replicas = 3' deployment.yaml
Related apps
- dasel3.11.1Select, put and delete data in JSON, YAML, TOML, XML, CSV and more with a single selector syntax.RISC-V VM3.7 MB
- jaq3.1.0Query and transform JSON with jq syntax, with a focus on correctness and speed.RISC-V VM1.9 MB
- gron0.7.1Flatten JSON into one assignment per line so it can be searched with grep — and turn it back.RISC-V VM2.5 MB