Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

fx

$ fx Community Low Risk
Anton Medvedev · Database & Data · MIT · macos / linux / windows

fx 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.

FCRS-1.0 Score
78 /100
Good
Medium Confidence
Zero-Friction Install
brew install fx
CLI vs MCP Decision CLI Only

Agents should prefer jq for JSON pipelines, using fx non-interactively only when JavaScript array/map expressions are noticeably simpler.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 16 / 25

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
Trust & Safety 23 / 25

Read-only local JSON viewer/transformer with no filesystem mutation flags.

  • Read-only stdin/file evaluator
Setup & Portability 14 / 15

Single Go binary via Homebrew, go install, npm, and Releases.

  • Cross-platform Go binary (antonmedv/fx)
Utility & Efficiency 11 / 15

Great interactive JSON explorer for humans, though jq is superior for headless agent scripts.

  • Human-first TUI; secondary JS CLI reducer
Maintenance & Lineage 8 / 10

Popular antonmedv/fx project under MIT license.

  • Active antonmedv/fx repository
Docs & Verifiability 6 / 10

Concise site at fx.wtf, mostly focused on TUI keybindings.

  • Official docs at fx.wtf

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None; operates on local JSON files and stdin.

Side Effects
Read-Only
Cost & Quotas

100% free and MIT open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Run a non-interactive JS projection on JSON
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 fx v30+ dropped Node dependency).

Caveats & Pitfalls

  • ! Invoking fx file.json without an expression opens an interactive TUI that blocks agents.
  • ! jq is much more predictable and widely supported for agent pipelines.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI