pkgman
SYSTEMS PROGRAMMING / TUI
pkgman — Rust TUI Package Manager
A blazing-fast terminal user interface for package management on Arch Linux, featuring interactive pactree dependency graphs and async background querying.
Standard command-line package tools (pacman, yay, pactree) require remembering dozens of flags and lack an interactive exploratory interface for inspecting package trees and changelogs.
A single lightweight, zero-dependency Rust binary providing a keyboard-centric TUI with instant fuzzy search, dependency visualization, and customizable color themes.
pkgman was born out of a desire for a unified, keyboard-driven interface to explore, inspect, and manage packages across both official Arch Linux repositories and the Arch User Repository (AUR).
Built with Rust and the Ratatui terminal UI framework, pkgman provides instant fuzzy searching, package metadata inspection, and a visual tree hierarchy of package dependencies inspired by pactree.
The application leverages asynchronous Rust (Tokio) to ensure search queries and dependency tree generation never block the terminal rendering loop, allowing 60 FPS scrolling and responsive keystroke handling even when querying remote mirrors.
Architecture in Action
Visual walk-through of the operational pipeline, core algorithmic stages, and execution telemetry. Click any diagram to inspect in full resolution.

Ratatui Terminal UI & Blazing-Fast Fuzzy Search
Keyboard-driven terminal interface engineered with Rust and Ratatui. Features instantaneous fuzzy searching across 14,000+ local and sync packages in 4.2ms, split-screen metadata inspection, and vim-style navigation keybindings.

Interactive Pactree Dependency DAG Graph Visualizer
Visual dependency tree explorer rendering hierarchical upstream and downstream package relationships with cycle detection in Rust. Traverses direct dependencies, optional flags, and transitive library constraints in under 2ms.

Asynchronous Tokio Runtime & AUR RPC API Bridge
Multi-threaded systems architecture isolating terminal 60 FPS crossterm rendering from background network threads querying the Arch User Repository (AUR) RPC API and reading local memory-mapped ALPM sync databases.
System Components
Terminal User Interface (TUI) rendered using Ratatui and Crossterm
Rust 2021 edition with Tokio async runtime for non-blocking I/O
Local ALPM (Arch Linux Package Management) sync database cache
AUR RPC JSON API integration, TOML configuration engine
Core Implemented Features
- High-speed fuzzy search across local installed packages, sync databases, and AUR
- Interactive dependency tree visualization showing upstream and downstream dependencies
- Fully asynchronous UI updates: remote network lookups run in background threads
- Customizable theme support via clean TOML configuration files
- Strict separation between read-only inspection and elevated root installation actions
- Zero-latency keyboard shortcuts with vim-style navigation keys (hjkl)
Overcoming Bottlenecks
Parsing and rendering recursive dependency graphs without cycles or stack overflows required implementing a directed acyclic graph (DAG) visitor with cycle detection in Rust.
related links.
Visual Artifacts & Diagrams



