Atharv Pathak is a Python developer, full-stack web developer, and IT engineering student based in India.

pkgman

SYSTEMS PROGRAMMING / TUI

Scroll to explore↓
pkgmanSYSTEMS PROGRAMMING / TUI
The work

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.

ACTIVE BUILDOpen Source Systems Project•2025
RUSTRATATUISYSTEMSARCH LINUX
01 // The Problem

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.

02 // The Solution

A single lightweight, zero-dependency Rust binary providing a keyboard-centric TUI with instant fuzzy search, dependency visualization, and customizable color themes.

03 // Engineering Deep Dive

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.

04 // System Architecture & Visual Breakdown

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
Click to enlarge view
FIGURE 01 // 03TERMINAL USER INTERFACE

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
Click to enlarge view
FIGURE 02 // 03DEPENDENCY RESOLUTION

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
Click to enlarge view
FIGURE 03 // 03SYSTEMS ARCHITECTURE

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.

05 // Architecture Stack

System Components

Client / UI

Terminal User Interface (TUI) rendered using Ratatui and Crossterm

Backend & API

Rust 2021 edition with Tokio async runtime for non-blocking I/O

Data & Storage

Local ALPM (Arch Linux Package Management) sync database cache

Protocols / Services

AUR RPC JSON API integration, TOML configuration engine

06 // Capabilities

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)
07 // Technical Challenge & Retrospective

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.

Project Gallery

Visual Artifacts & Diagrams

pkgman preview
Enlarge
pkgman preview
Enlarge
pkgman preview
Enlarge
pkgman preview
Enlarge
Back to theall works.