fx
$ fx Community Low Riskfx is primarily an interactive TUI JSON explorer written in Go, but when passed JavaScript expression arguments (like fx data.json '.items.length') it runs non-interactively using an embedded JS engine and emits JSON.
brew install fx Agents should prefer jq for JSON pipelines, using fx non-interactively only when JavaScript array/map expressions are noticeably simpler.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Launches a blocking interactive TUI when called with no expression; requires passing JS reducer arguments to run headlessly.
- Interactive TUI default; non-interactive only when JS expressions are passed
Read-only local JSON viewer/transformer with no filesystem mutation flags.
- Read-only stdin/file evaluator
Single Go binary via Homebrew, go install, npm, and Releases.
- Cross-platform Go binary (
antonmedv/fx)
Great interactive JSON explorer for humans, though jq is superior for headless agent scripts.
- Human-first TUI; secondary JS CLI reducer
Popular antonmedv/fx project under MIT license.
- Active
antonmedv/fxrepository
Concise site at fx.wtf, mostly focused on TUI keybindings.
- Official docs at fx.wtf
Security, Auth & Guardrails
None; operates on local JSON files and stdin.
100% free and MIT open-source.
# fx Agent Rules - Prefer `jq` over `fx` in automated shell pipelines. - NEVER invoke `fx <file>` without a reducer expression argument (bare `fx` launches a blocking interactive TUI). - Keep expressions pure and avoid non-standard runtime assumptions.
Agent-Ready Command Recipes
Safe Read-Only Queries
fx data.json 'x => x.items.map(i => i.id)'
Evaluates a JS arrow expression over input JSON and exits immediately without opening the TUI.
Strengths for Agents
- + Concise JavaScript arrow expressions (
x => x.filter(...)) are readable when passed on the CLI. - + Single fast Go binary (modern
fxv30+ dropped Node dependency).
Caveats & Pitfalls
- ! Invoking
fx file.jsonwithout an expression opens an interactive TUI that blocks agents. - !
jqis much more predictable and widely supported for agent pipelines.