Skip to content
ReviewRamble

The weekly brief

AI, reviewed, in your inbox.

  • New reviews of tools, models, MCP servers and repos, with the verdict up front
  • Re-checked prices and ratings when something changes
  • New analysis pieces as they are published

Models, agents, MCP servers and the tools actually worth your time.

One email a week. Unsubscribe with the link in any brief. How we use your email

fx

A terminal JSON viewer you can fold, search and query live, with plain JavaScript instead of jq's own language for transforms.

Reviewed by ReviewRamble editors · Updated

View on GitHub Open source

Share this page:XLinkedInFacebookRedditWhatsAppEmail

Our rating

4.2/5

fx is the JSON tool for people who never learned jq and do not want to: you browse first, then write the transform in JavaScript you already know.

What is fx?

fx does two jobs. Piped some JSON with no arguments, it opens an interactive viewer: a collapsible tree you move through with the arrow or Vim keys, regex search with / and n, a fuzzy jump to any key path with @, back and forward through your location history, and p to preview or P to print the current value. Given arguments, it is a processor: each argument is a JavaScript function, so fx .users '.map(x => x.name)' pulls out names, with x or this as the input and a leading dot as shorthand. It reads line-delimited and concatenated JSON streams, and --slurp collects a stream into one array.

The Go version, a single binary since 2022, embeds the goja JavaScript engine, so no Node.js is needed. It also reads YAML, TOML and, since v40, XML, HTML, EDN and MAML, turning each into JSON you can browse and query. v40.0.0, released on 5 October 2026 and called the biggest yet by its author, added queries typed inside the viewer with a live preview on every keystroke and Tab completion of keys from your data, Vim-style commands such as :w to save or :w !cmd to pipe the view to another program, clipboard copying that works over SSH, and a move to Bubble Tea v2.

Anton Medvedev started fx in January 2018 and has written the vast majority of its 900-odd commits. It is MIT licensed and has about 20,700 stars. The latest release is 40.0.2 from 20 November 2026, with fixes for __proto__ keys and YAML, TOML and XML errors, and the last commit was on 2 December 2026.

Is fx worth it?

Developers usually meet a 3,000-line API response with less, a browser tab or a jq filter copied from Stack Overflow. fx makes the first look pleasant, a tree you can fold and search, and the second step familiar, because the transform is ordinary JavaScript. Its author said on Hacker News that this was the point: he kept searching for how to do things in jq, while JavaScript he knew natively. Version 40's live queries close the loop, since you can type .items[].name inside the viewer, watch the result change as you type, and save it with :w.

The format support has become a strength: one binary opens YAML configs, TOML files, XML feeds, HTML pages and Clojure's EDN as JSON-shaped trees, which saves a conversion step when the data is not JSON to begin with. The release notes are specific about the mapping, for example XML attributes becoming @attr keys, the convention xmltodict uses. Maintenance is steady: at least 100 commits since December 2025, and three releases since October 2026.

The catch: fx is a viewer first and a processor second. For scripts and pipelines that run unattended, jq remains the standard, is preinstalled on many CI images and has a better-known streaming mode for files measured in gigabytes. Large files were fx's weak point for years; a Lobsters user wrote in 2023 that they switched to jless because fx was slow on big inputs, and although the author says the Go rewrite handles very large files well, no published benchmark backs that claim. Running JavaScript from the command line also means quoting arrow functions in your shell, which is clumsier than jq's terse filters once you know them.

Our take: fx earns a place on any machine where someone inspects API responses, log lines or config files by hand, and its JavaScript transforms are easier to remember than jq syntax. Scripts that must run on someone else's machine are still safer written for jq.

Where it earns its place

  • A frontend developer debugging a third-party API that returns 2,000-line responses

    Find where a field lives and pull out just the values needed

    Pipe curl into fx, press @ to jump to the key path, then . to type a query such as .data[].id with a live preview; :w ids.json saves the result. Free and local.

  • A DevOps engineer reading Kubernetes YAML and XML build reports

    Browse and filter non-JSON config without converting it first

    Open the YAML or XML file directly with fx; it maps each format to a JSON tree, so the same search and JavaScript queries work across all of them.

Before you commit

Setup
brew install fx, a release binary, or the npm package; then pipe JSON in or pass a file name. Shell completion for bash, zsh and fish is available.
Integrations
Reads stdin or files; JSON streams, YAML, TOML, XML, HTML, EDN and MAML; :w !cmd pipes the view to tools such as less, an editor or pbcopy; renders on stderr so P prints values to stdout for pipelines.
Data and privacy
Runs locally; queries execute in the embedded JavaScript engine on your machine. MIT licence.
Limits
No published performance figures for multi-gigabyte files; JavaScript expressions need shell quoting; one main author.

What’s good

  • Interactive tree with search, fuzzy path jump and live queries
  • Transforms in plain JavaScript through the embedded goja engine
  • Reads JSON streams, YAML, TOML, XML, HTML, EDN and MAML
  • Single Go binary; copying works over SSH in v40

What’s not

  • jq is still the norm for scripts and CI images
  • No published benchmarks for very large files
  • JavaScript arguments need careful shell quoting
  • Almost all work comes from one author

Best for

Developers who inspect JSON, YAML or XML in the terminal by hand and would rather write a quick JavaScript expression than learn jq.

fx alternatives

fx: common questions

Is fx worth it?
fx is the JSON tool for people who never learned jq and do not want to: you browse first, then write the transform in JavaScript you already know. We rate it 4.2 out of 5.
How much does fx cost?
Free under the MIT licence; no paid edition.
What are the downsides of fx?
jq is still the norm for scripts and CI images; no published benchmarks for very large files; javaScript arguments need careful shell quoting; almost all work comes from one author.
Who is fx best for?
Developers who inspect JSON, YAML or XML in the terminal by hand and would rather write a quick JavaScript expression than learn jq.
Is fx safe for company data?
Runs locally; queries execute in the embedded JavaScript engine on your machine. MIT licence.
What are the best fx alternatives?
The closest alternatives we have reviewed are Posting, Dive and VHS.

Answers checked Dec 2, 2026.

Make fx? Show this rating on your sitefx rated 4.2 out of 5 on ReviewRamble