A command line tool to view objects (JSON/YAML/TOML/XML) in TUI tree widget.
Rust
523
117 commits
updated Oct 5, 2026

A command line tool to view objects (JSON/YAML/TOML/XML) in TUI tree widget.
Download binary files from release page.
You can also build it from source (require cargo installed):
cargo install --git https://github.com/fioncat/otree
You can install otree from the AUR with using an AUR helper.
paru -S otree
You can install otree using Homebrew.
brew install otree
Open a JSON/YAML/TOML file in TUI tree viewer:
otree /path/to/file.json
otree /path/to/file.yaml
otree /path/to/file.toml
otree /path/to/file.xml
For more command usage, please run otree --help.
You can configure TUI keys, colors, and more in ~/.config/otree.toml, the default configuration is here.
For all available actions and their default key bindings, please refer to: All Available Actions.
For how to configure TUI colors, please refer to: Colors Document.
wl-copy, pbcopy) (v0.2)--debug flag, write some debug logs to a file (v0.4)If you have any great ideas, please create an issue, thanks!
I created this tool to better view those super deep YAML files of Kubernetes while jnv only supports JSON.
This is based on the amazing TUI framework ratatui and its tree widget tui-tree-widget.
949 followers · starred Jun 2024
600 followers · starred Mar 2025
140 followers · starred Aug 2025
166 followers · starred May 2024
A command line tool to view objects (JSON/YAML/TOML/XML) in TUI tree widget.
Rust
523
117 commits
updated Oct 5, 2026

A command line tool to view objects (JSON/YAML/TOML/XML) in TUI tree widget.
Download binary files from release page.
You can also build it from source (require cargo installed):
cargo install --git https://github.com/fioncat/otree
You can install otree from the AUR with using an AUR helper.
paru -S otree
You can install otree using Homebrew.
brew install otree
Open a JSON/YAML/TOML file in TUI tree viewer:
otree /path/to/file.json
otree /path/to/file.yaml
otree /path/to/file.toml
otree /path/to/file.xml
For more command usage, please run otree --help.
You can configure TUI keys, colors, and more in ~/.config/otree.toml, the default configuration is here.
For all available actions and their default key bindings, please refer to: All Available Actions.
For how to configure TUI colors, please refer to: Colors Document.
wl-copy, pbcopy) (v0.2)--debug flag, write some debug logs to a file (v0.4)If you have any great ideas, please create an issue, thanks!
I created this tool to better view those super deep YAML files of Kubernetes while jnv only supports JSON.
This is based on the amazing TUI framework ratatui and its tree widget tui-tree-widget.
949 followers · starred Jun 2024
600 followers · starred Mar 2025
140 followers · starred Aug 2025
166 followers · starred May 2024