edawise

deccy GUI Last updated

Getting Started

This guide covers system requirements, building and launching deccy-gui, how it locates your deccy CLI executable, and what happens when you open a directory.

Prerequisites

  1. Rust Toolchain — A current stable Rust toolchain (cargo and rustc).
  2. Platform Graphics Dependencies:
    • macOS: Xcode and the Metal toolchain are required to compile the GPU shaders used by the UI framework. Install the Metal component once and verify it:
      xcodebuild -downloadComponent MetalToolchain
      xcrun metal --version
  3. deccy CLI Binary — deccy-gui invokes the deccy executable for store validation, repinning, and claim refreshes. Ensure deccy is installed on your PATH (for example, via cargo install --path ../deccy-cli-exp) or point to it explicitly with --deccy-bin or $DECCY_BIN.

Note: The first build compiles roughly 700 crates and typically takes 5–10 minutes. Subsequent incremental builds complete in a few seconds.

Building and Running

Run directly from a source checkout with Cargo, or install the binary:

# Open the current directory (default PATH is .)
cargo run --

# Open a specific store directory
cargo run -- /path/to/store

# Build an optimized release binary
cargo build --release
./target/release/deccy-gui /path/to/store

Command-Line Interface

deccy-gui --help (or -h) prints:

usage: deccy-gui [PATH] [--deccy-bin PATH] [--help] [--version]

  PATH            store directory (default: .)
  --deccy-bin     deccy CLI to use for actions (overrides $DECCY_BIN)

Arguments and Flags

Argument / FlagDescription
PATHOptional path to the directory containing .deccy/. Defaults to . (the current directory). At most one PATH is accepted.
--deccy-bin PATHPath to the deccy CLI executable to run when triggering actions in the UI. Overrides $DECCY_BIN and $PATH.
-h, --helpPrint usage information and exit 0.
-V, --versionPrint the version string (deccy-gui 0.0.0) and exit 0.

Passing an unknown flag, passing --deccy-bin without a value, or supplying more than one positional PATH prints the usage message to stderr and exits with code 2.

deccy CLI Discovery

At startup, deccy-gui searches once for a deccy executable in the following order:

  1. The path passed to --deccy-bin PATH.
  2. The path in the DECCY_BIN environment variable.
  3. The first executable file named deccy found on PATH.

Every candidate must be an existing executable file (directories and non-executable files are skipped). deccy-gui never guesses relative source-tree build paths.

If no deccy binary is found:

  • The window still opens and renders the store normally.
  • All CLI action buttons in the Details tab are disabled.
  • Both the Actions section and the bottom feedback bar display: deccy binary not found; set DECCY_BIN

Opening a Store

When deccy-gui opens a directory:

  • Window Title: Set to deccy-gui — <store basename>.
  • Toolbar Label: Displays <parent>/<store basename> (for example, verrific/deccy-new) next to deccy-gui so you can distinguish stores with similar directory names.
  • Initial Viewport: On the first successful load, the graph automatically zooms and pans to fit the center pane.

Missing or Uninitialized Stores

If the target directory does not contain a readable .deccy/nodes directory, deccy-gui opens in an empty refusal state rather than exiting:

  • The center pane displays the CLI refusal reason and evidence in red monospace text, followed by: run deccy init in this directory to create a store
  • You can initialize the store right away by opening the built-in terminal drawer (⌃``), running deccy init, and pressing r(or clickingreload`).

Written by Edawise