Live data from Hacker News

Fx – Terminal JSON Viewer

fx.wtf

1–10 of 80 posts

Re: Fx – Terminal JSON Viewer

#2
Hey HN friends!

I've taken `fx` back to the drawing board and completely rewritten it from the ground up. Excited to share what's new:

1. *Going Big*: `fx` now gracefully handles even the most massive JSON files.

2. *A New TUI Look*: Dive deep into your data with a revamped terminal interface—now with themes!

3. *Swift Navigation with Dig Fuzzy Search*: Feeling lost in JSON? Just type `.` and navigate with ease.

4. *Powerful Regex Search*: Scan across your entire JSON content with precision.

5. *Elegant Long String Wraps*: No more cut-offs. Your strings wrap beautifully now.

6. *All Things JSON*: Added love for comments, trailing commas, and JSON streams.

Pouring my heart and soul into this rewrite has been a journey to make `fx` faster and more powerful. If you find value in what I've crafted and want to support its future, consider sponsoring on GitHub.

Would love to hear your thoughts and feedback!

Re: Fx – Terminal JSON Viewer

#3
Need to have a bit more of a play with it but I really like it so far. I mainly see myself using it to pipe into (like from curl or the gh cli).

One thing that isn't clear to me is how to actually use the themes you can display with fx --themes.

Re: Fx – Terminal JSON Viewer

#4
post #3

Need to have a bit more of a play with it but I really like it so far. I mainly see myself using it to pipe into (like from curl or the gh cli). One thing that isn't clear to me is how to actually use the themes you can display with fx --themes.

Will update the docs. But it is easy:

    FX_THEME=2 fx data.json

Re: Fx – Terminal JSON Viewer

#5
post #2

Hey HN friends! I've taken `fx` back to the drawing board and completely rewritten it from the ground up. Excited to share what's new: 1. *Going Big*: `fx` now gracefully handles even the most massive JSON files. 2. *A New TUI Look*: Dive deep into your data with a revamped terminal interface—now with themes! 3. *Swift Navigation with Dig Fuzzy Search*: Feeling lost in JSON? Just type `.` and navigate with ease. 4. *…

What can you do with the JSON in the TUI? Anything besides looking at it? (https://fx.wtf/getting-started#json-processing but from the TUI?)

Built something similar, but with love for all things CUE (also works for JSON/Yaml) (https://youtu.be/XNBqBWO4y08)

Yours looks to have a better object navigation, I might have to be inspired by it!

How do you like Bubbletea? We went with tcell/tview (fork) for more control of the UI & event handling

Re: Fx – Terminal JSON Viewer

#7
post #2

Hey HN friends! I've taken `fx` back to the drawing board and completely rewritten it from the ground up. Excited to share what's new: 1. *Going Big*: `fx` now gracefully handles even the most massive JSON files. 2. *A New TUI Look*: Dive deep into your data with a revamped terminal interface—now with themes! 3. *Swift Navigation with Dig Fuzzy Search*: Feeling lost in JSON? Just type `.` and navigate with ease. 4. *…

wow nice, I'll give this a try.

I've always used jq for viewing json, but it's the wrong tool for my use. I basically want to explore json interactively, not parse it specifically. So the workflow is to keep "jq"ing it, and modifying my jq query until I find what I'm looking for.

Your tool looks like it allows interactive exploration.

Re: Fx – Terminal JSON Viewer

#9
post #8

Any comparison to jless?

fx looks to work from the command line (without viewing) to do more than just inspect, looks like you can do pretty much anything to it with a bit of JS, though not from the TUI afaict

There are many JSON viewers, I would think that inspecting with collapsable sections ought to be right in VS Code with LSP/treesitter, no extra tools needed.

What's more interesting to me is what can you do with the JSON in these tools, validate, filter, transform, chain...?

Post reply on HN