# Install otree with Homebrew, apk, MacPorts, Nix

Command-line tool to view objects (JSON/YAML/TOML) in TUI tree widget. Version 0.7.1 via Homebrew; verified 2026-07-07.

## Install

```sh
sudo av install brew:otree
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install otree
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install otree
```

  Evidence: MacPorts ports tree: textproc/otree/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add otree
```

  Evidence: Alpine Linux edge package indexes: otree from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#otree
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ot/otree/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:otree
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/otree>
- **Version:** 0.7.1
- **Source summary:** Command-line tool to view objects (JSON/YAML/TOML) in TUI tree widget
- **Homepage:** <https://github.com/fioncat/otree>
- **Repository:** <https://github.com/fioncat/otree>
- **Upstream docs:** <https://github.com/fioncat/otree#readme>
- **License:** MIT
- **Source archive:** <https://github.com/fioncat/otree/archive/refs/tags/v0.7.1.tar.gz>
- **Last updated:** 2026-07-07T12:37:42Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- otree (cli)
- otree (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.7.1
- Package-manager updated: 2026-07-07
- Local data: ok
- Upstream repository: https://github.com/fioncat/otree
- Upstream latest detected: v0.7.1 (current)
## Project history and usage

OTree is a Rust terminal UI for inspecting structured objects as an interactive tree. It targets JSON, YAML, TOML, and XML files, with a particular emphasis on deeply nested configuration data.

### Project history

The upstream README says the author created otree to inspect very deep Kubernetes YAML files, because jnv only supported JSON. The project is built on Ratatui and the tui-tree-widget tree component, placing it in the modern Rust TUI tool family.

The roadmap in the repository ties features to early version milestones: root switching, tree overview, data block, footer, syntax highlighting, configuration, clipboard support, filtering, help popups, and debug logging.

### Adoption history

The project distributes through GitHub releases, cargo-from-git builds, Arch AUR, Homebrew, and MacPorts. Homebrew and MacPorts package pages give macOS and Linux users a packaged path, while the GitHub repository records versioned releases and a modest open-source audience.

### How it is used

Users run otree with a structured data file path, for example a JSON, YAML, TOML, or XML document, and browse the parsed object in a terminal tree. The README also documents a configuration file at ~/.config/otree.toml for keys, colors, and other TUI behavior.

The natural use case is operational inspection: Kubernetes manifests, application config, lock files, generated JSON, and other nested documents that are unpleasant to read as raw text.

### Why package nerds care

otree matters as a packaged example of the small, focused Rust CLI wave: it wraps serde-style structured-data parsing and Ratatui interaction into a single binary that competes with ad hoc jq/yq/editor folding workflows.

### Timeline

- v0.1 to v0.6 roadmap: The README maps major UI and action features across early releases, including root changes, syntax highlighting, filtering, and configuration.
- 3 March 2026: The GitHub repository lists v0.6.5 as a release.

### Related projects

- otree is related to jnv for JSON exploration, Ratatui for terminal UI rendering, and tui-tree-widget for tree presentation.

### Sources

- <https://formulae.brew.sh/formula/otree>
- <https://github.com/EdJoPaTo/tui-rs-tree-widget>
- <https://github.com/fioncat/otree>
- <https://ports.macports.org/port/otree/>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** otree
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - otree: normalized package name match | nixpkgs package indexes: pkgs/by-name/ot/otree/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - otree - 0.6.5-r0: normalized package name match | Alpine Linux edge package indexes: otree from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | View JSON/YAML/TOML objects in a TUI tree widget | https://github.com/fioncat/otree
- apk - otree-doc - 0.6.5-r0: normalized package name match | Alpine Linux edge package indexes: otree-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | View JSON/YAML/TOML objects in a TUI tree widget (documentation) | https://github.com/fioncat/otree
- MacPorts - otree: normalized package name match | MacPorts ports tree: textproc/otree/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [dasel](https://www.automicvault.com/pkg/brew/dasel/) - Shares av.db curated category or tags: cli, developer-tools, json, toml, xml.
- [jqp](https://www.automicvault.com/pkg/brew/jqp/) - Shares av.db curated category or tags: cli, developer-tools, json, terminal-ui, tui.
- [python-yq](https://www.automicvault.com/pkg/brew/python-yq/) - Shares av.db curated category or tags: cli, developer-tools, json, toml, xml.
- [yq](https://www.automicvault.com/pkg/brew/yq/) - Shares av.db curated category or tags: cli, developer-tools, json, toml, xml.
- [cdk](https://www.automicvault.com/pkg/brew/cdk/) - Shares av.db curated category or tags: cli, developer-tools, terminal-ui, tui.
- [config-file-validator](https://www.automicvault.com/pkg/brew/config-file-validator/) - Shares av.db curated category or tags: cli, developer-tools, json, toml, yaml.
- [flowrs](https://www.automicvault.com/pkg/brew/flowrs/) - Shares av.db curated category or tags: cli, developer-tools, terminal-ui, tui.
- [gitu](https://www.automicvault.com/pkg/brew/gitu/) - Shares av.db curated category or tags: cli, developer-tools, terminal-ui, tui.
- [progressline](https://www.automicvault.com/pkg/brew/progressline/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, line, terminal.

## Combined YAML source

View the package source record on GitHub. [combined/otree.yml](https://github.com/automic-vault/db/blob/main/combined/otree.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
