Skip to content
FossShelf
Home / Categories / For Engineers

jnv

Interactive jq filter editor with live JSON navigation

Replaces —

6.14K starsMITreviewed 16 Sept 2026last commit 26 Oct 2026
Screenshot of jnv

Who it's for

DevOps engineers inspecting Kubernetes resources

Pipe kubectl JSON output directly into jnv to explore pod specs, service definitions, or resource status fields. Tab-completion surfaces available keys within the Kubernetes JSON structure, letting you drill into nested fields without knowing the exact path in advance.

If you need to process Kubernetes JSON in scripts or CI automation, plain jq or Kubernetes-native tools are better suited. jnv is designed for interactive exploration, not scripted batch extraction.

Backend developers debugging API responses

Pipe a curl response into jnv to explore the JSON shape and locate the correct field path. Once you have the right filter, Ctrl+Q copies it to the clipboard for use in scripts or documentation. This beats running jq repeatedly with trial-and-error filter strings.

If the API response is very large (hundreds of megabytes), jnv may render slowly. A streaming JSON processor handles that scale better than a TUI viewer.

Data engineers working with JSON Lines log streams

jnv supports JSON Lines format natively, so piping a newline-delimited log stream into it works without pre-processing. Set max_streams in config.toml to cap how many objects load into memory when working with high-volume log output.

If you need to aggregate, count, or group across thousands of log records, a dedicated log query tool or jq with aggregation functions is more appropriate than an interactive viewer.

The problem

Writing jq filters against JSON from the command line is iterative and slow. You run a filter, see an error or wrong output, adjust the filter, run it again. With deeply nested structures, this cycle is painful because the data shape is not visible while you type, auto-completion does not exist in raw jq, and copy-pasting filter fragments between terminal runs interrupts the workflow. The pain is especially acute when exploring unfamiliar JSON, such as a new API response, a Kubernetes resource, or log output from a service. The standard workaround is to pipe JSON through jq with multiple filter passes or switch to a browser-based tool, which means leaving the terminal context entirely.

How it works

Live jq filter editor with real-time preview

Type a jq filter in the editor pane and see the filtered JSON result update immediately in the viewer pane. The tool uses jaq, a jq-compatible Rust engine, so filter syntax matches jq exactly. No separate jq installation is required.

Auto-completion for JSON keys and array indices

Tab-triggered auto-completion suggests object keys and array indices from the current data, covering the Identity, Object Identifier-Index, and Array Index jq constructs. Completion candidates load in background chunks to stay responsive on large inputs.

Syntax-highlighted JSON viewer

The viewer pane applies color coding for keys, string values, numbers, booleans, and null values. Nodes expand and collapse individually or all at once with keyboard shortcuts. Long lines wrap or truncate based on the overflow_mode setting in config.toml.

JSON Lines and stdin support

Reads from a file path or from stdin via a pipe, and handles both standard JSON and JSON Lines format (multiple newline-delimited JSON objects). This covers log inspection and API response tailing where output is a stream of separate objects.

TOML configuration file

All visual and behavioral settings live in a config.toml file created automatically on first run. Configure editor appearance, debounce timing, keybindings, and completion list size. Default paths are platform-specific: ~/.config/jnv/config.toml on Linux, ~/Library/Application Support/jnv/config.toml on macOS.

Clipboard copy and stdout pipeline output

Ctrl+Q copies the current jq filter string to the clipboard; Ctrl+O copies the current JSON result. The --write-to-stdout flag pipes the filtered output to stdout on exit, keeping jnv composable in shell pipelines.

Features

  • Live jq filter editor with real-time preview
  • Auto-completion for JSON keys and array indices
  • Syntax-highlighted JSON viewer
  • JSON Lines and stdin support
  • TOML configuration file
  • Clipboard copy and stdout pipeline output

How to install

Install via Homebrew for macOS and Linux, or via Cargo for any system with a Rust toolchain.

brew install jnv
cargo install jnv

Recommended for this setup

Strengths

  • No jq dependency required: jnv bundles jaq, a Rust implementation of the jq filter language, as part of its binary. Users on systems where installing jq is inconvenient, such as Windows or minimal Linux containers, get full jq-syntax filtering without managing a separate package.
  • Single binary, zero server overhead: jnv ships as one compiled Rust binary with no daemon or background process. Installation takes one command via Homebrew, Cargo, or Nix, and uninstalling is equally clean. There is no port to expose and no database to configure.
  • Active development with 6,100+ GitHub stars: The repository has over 6,100 stars and received code pushes as recently as September 2026, showing ongoing maintenance. Inspired by jid and jiq, jnv has grown into one of the more widely used interactive jq tools in the terminal ecosystem, with topics spanning Kubernetes, autocomplete, and CLI tooling.
  • Shell pipeline integration: Input comes from a file argument or piped stdin, and the --write-to-stdout flag sends the filtered result to stdout on exit. This means jnv fits existing shell scripts and one-liners without requiring a GUI or browser context switch.

Trade-offs

  • Auto-completion covers only three basic jq constructs: The README explicitly limits auto-completion to Identity, Object Identifier-Index, and Array Index filters. Complex jq expressions such as select(), map(), or recursive descent operators are not suggested. Users writing advanced jq pipelines must know the full syntax from memory.
  • Terminal-compatibility edge cases with 31 open issues: The README warns that depending on the terminal and environment, characters and styles may not display correctly, and specific key bindings and decorative characters may not function in certain terminal emulators. With 31 open issues, some rendering and keybinding edge cases remain unresolved.

Tech stack

Languages
Rust, Tape, Dockerfile
Frameworks
—
Databases
—
Tooling
Kubernetes

FAQ

Does jnv require jq to be installed?

No. jnv bundles jaq, a Rust implementation of the jq filter language, as part of its binary. You do not need a separate jq installation. The filter syntax is jq-compatible, so existing jq knowledge transfers directly.

What JSON formats does jnv support?

jnv supports standard single-object JSON files and JSON Lines format (multiple JSON objects separated by newlines). Input can come from a file path argument or from stdin via a pipe, making it compatible with curl, kubectl, and other CLI tools that output JSON.

Can I save or export my jq filter from jnv?

Yes. Ctrl+Q copies the current jq filter string to the clipboard. The --write-to-stdout flag pipes the filtered JSON result to stdout on exit, so you can redirect it to a file or chain it into another command in a shell pipeline.

Is jnv available on Windows?

jnv can be installed on Windows via Cargo (cargo install jnv) or conda-forge. The configuration file is stored at C:\Users\{Username}\AppData\Roaming\jnv\config.toml. The README notes that some keybindings and decorative characters may not display correctly in all terminal emulators, including some Windows terminals.

How is jnv different from using jq directly?

jq is a non-interactive command-line filter: you write a filter, run it, and read the output. jnv wraps jq-compatible filtering in a terminal TUI that shows the filtered result as you type and offers auto-completion for field names from the actual data. This makes it faster to explore unfamiliar JSON without prior knowledge of the data structure.

Similar tools

More in Engineers