A package development workshop for Void Linux, built for the terminal.
A native Rust TUI that brings package development, builds, diagnostics and repository management into one workspace.
"Rust" · "Ratatui" · "Crossterm" · "SQLite" · "xbps-src"Stable 1.0.0
01. About VoidForge
I started VoidForge because package development on Void Linux often means switching between editors, terminals, build logs and Git commands.I wanted a more organized place to bring these workflows together without getting in the way of the tools that actually do the work.
VoidForge works directly with your local "void-packages" repository. It reads real templates, executes official "xbps-src" commands, captures build output and helps investigate failures.
It is not a simulator. There is no fake build output, no dashboard server and no pretend package operations.
Everything is connected to real files and real tools on your system.
02. My Vision
More Than a GUI for xbps-srcI don't want VoidForge to become just another interface for "xbps-src".
My long term goal is to turn it into an Integrated Package Development Environment for Void Linux, where developers can manage the entire package development lifecycle, from writing the first template to building, testing, maintaining packages and preparing pull requests.
These capabilities will be introduced gradually in future releases.
I also don't want to sacrifice simplicity or performance just to add more features. VoidForge should remain fast, lightweight and intuitive, staying true to the philosophy of Void Linux.
More capability, without unnecessary complexity.
03. Development Notebook Living Project Journal
This is where I keep track of VoidForge's development.
I want this section to feel more like a personal engineering notebook than a traditional changelog. It documents what I have added, what I have fixed, what problems I have encountered and what I want to work on next.
The notebook is updated as the project evolves.
Recent Improvements
Current implemented capabilities
These are part of the current project functionality.
- Real package template inspection and validation.
- Official "xbps-src" build execution.
- Live build output and persistent build logs.
- Package and workspace management.
- Dependency inspection and cycle detection.
- Patch creation, application and backup based recovery.
- Build diagnostics based on actual log evidence.
- Git repository operations.
- Release archive inspection and repository indexing.
Resolved problems
No new fixes have been recorded here yet.
I only move an issue into this section after the fix has been implemented and verified.
Entry format:
Date: YYYY-MM-DD Problem: What was wrong? Fix: What changed? Verification: How was it tested?
TUI scrolling limitations
Problem
Some lists and text panels do not have proper independent scrolling behavior.
Long templates, patch previews, Git diffs and diagnostic details can become difficult to inspect when their content exceeds the available terminal space.
Planned fix
Introduce persistent scroll state, proper stateful lists and reliable viewport handling.
Status: Open
Limited mouse interaction
Problem
The current event handling does not provide complete mouse support. Navigation and interaction primarily depend on keyboard input.
Planned fix
Introduce mouse capture, click handling, panel focus and contextual mouse wheel scrolling.
Status: Open
Build log navigation
Problem
Long and wrapped build output can be difficult to navigate. There is no complete independent manual scrolling and follow tail experience.
Planned fix
Introduce persistent log offsets, automatic follow tail behavior, manual scrolling and a clear indicator for the current scrolling mode.
Status: Open
Future development
These are part of my long term vision. They are not available features yet.
- Complete mouse interaction throughout the TUI.
- A more advanced Package Studio.
- Improved template editing and inspection.
- Smarter Build Center and log navigation.
- More advanced package diagnostics.
- Better dependency analysis.
- More complete Git workflows.
- Integrated package testing and validation.
- Tools for preparing and reviewing pull requests.
I don't want to rush these features. Each one should fit naturally into the existing workflow and keep the application lightweight.
Every meaningful change should have a record.
Green means something was added or fixed and verified.
Red means a problem has been identified and still needs attention.
Blue means something I want to build in a future release.
I want this notebook to reflect the actual state of the project, not just make it look more complete than it is.
04. Current Features
Package Management- Browse and filter real "srcpkgs" templates.
- Create, duplicate and rename packages.
- Inspect package variables and subpackage functions.
- Run static template validation.
- Open templates in an external editor.
Dependencies
- Inspect "depends".
- Inspect "makedepends".
- Inspect "hostmakedepends".
- Inspect "checkdepends".
- Detect dependency cycles.
Patch Management
- List and preview patches.
- Create new patches.
- Generate patches from Git changes.
- Apply and revert patches with backup protection.
Build Center
- Execute official "xbps-src" phases.
- Configure parallel build jobs.
- Stream actual build output.
- Cancel active builds.
- Maintain build history and timestamped logs.
- Inspect generated package archives.
Diagnostics
- Analyze actual build logs.
- Identify errors and warnings.
- Connect findings to relevant log lines.
- Inspect template and workspace validation results.
Git Integration
- Inspect repository status and diffs.
- Stage and unstage files.
- Commit changes.
- Manage branches, tags and remotes.
- Fetch, pull and push with confirmation.
Workspace Management
- Register multiple repositories.
- Clone and switch between workspaces.
- Validate workspace configuration.
- Refresh repository information.
05. Requirements
Supported platform: Void Linux x86_64 with glibc.Requirements:
- Rust and Cargo 1.89 or newer.
- A local "void-packages" checkout.
- "xbps-src", "xbps", "xbps-query" and "xbps-rindex".
- "git", "patch", "curl", "tar", "bash" and "ninja".
Install prerequisites:
sudo xbps-install -S rust git curl tar bash patch ninja xbps xbps-src
Clone the official package repository:
git clone https://github.com/void-linux/void-packages.git ~/void-packages
06. Installation
Clone the repository:git clone https://github.com/anomalogist/voidforge.git cd voidforge
Build and run:
cargo build --release ./target/release/voidforge
Optional system installation:
sudo install -Dm755 target/release/voidforge /usr/local/bin/voidforge
Run:
voidforge
For development:
cargo run
Important: Run VoidForge as your normal user. Never run the application itself with "sudo". Package builds should remain unprivileged.
07. Getting Started
Register a workspace:workspace add ~/void-packages
You can also clone a repository directly:
:workspace clone https://github.com/void-linux/void-packages.git void-packages
Validate your environment
:workspace validate
Browse packages
Open Packages, filter by name and select a template.
Build a package
:build pkg hello
Investigate a failed build
:diagnose last
Review changes
:git status :git diff :git stage srcpkgs/hello/template :git commit "hello: update to 1.1"
08. Screens and Navigation
Key| Screen| Purpose "1"| Dashboard| System information and activity "2"| Workspaces| Repository management "3"| Packages| Package browser "4"| Template| Template inspection "5"| Dependencies| Dependency analysis "6"| Patches| Patch management "7"| Build Center| Build execution and logs "8"| Diagnostics| Error investigation "9"| Git & Repos| Git operations "0"| Settings| Application configurationKeyboard shortcuts
Key| Action "Tab" / "Shift+Tab"| Switch screens "j" / "k"| Move selection Arrow keys| Navigate "Home" / "End"| First / last item "Enter"| Confirm or open "Esc"| Close or go back ":"| Command interface "/"| Package filtering "?"| Help "q"| Quit "Ctrl+C"| Exit
09. Command Reference
Workspaces:workspace add :workspace clone [name] :workspace use :workspace validate :workspace refresh :workspace remove
Packages and templates
:pkg list
:pkg new
:pkg duplicate
Dependencies and patches
:deps cycles :patch list :patch new .patch :patch from-git .patch :patch apply .patch :patch revert .patch :patch remove .patch
Sources and builds
:source verify :source download [index] :source extract [filename] :source github :build [package] :build cancel :build logs [index]
Diagnostics and releases
:diagnose last :diagnose :release list :release index :release info
Git
:git status :git diff :git stage :git unstage :git commit :git branch :git branch-new :git checkout :git fetch [remote] :git pull [remote] [branch] :git push [remote] [branch] :git tag
General
:theme dark|light :jobs <1-64> :editor :view :help :clear :quit
10. Storage
Location| Contents "~/.local/share/voidforge/voidforge.sqlite3"| Settings, workspace index and history "~/.local/share/voidforge/logs/"| Timestamped build logs "$XDG_DATA_HOME/voidforge/"| Alternative XDG data location Your "void-packages" directory| Templates, patches, sources and build artifactsRemoving a workspace entry does not delete the repository from disk.
11. Safety and Limitations
1. VoidForge currently targets Void Linux x86_64 with glibc. 2. Builds use the real local "xbps-src" toolchain. 3. Static validation cannot guarantee build success. 4. Git commands use argument arrays rather than shell generated commands. 5. Remote Git operations require confirmation. 6. Patch operations use validation and backups. 7. Workspace operations are designed to preserve user files. 8. Network operations use bounded timeouts.12. Troubleshooting
VoidForge says "not a terminal".Run it inside a terminal emulator with a real TTY.
No packages appear.
Check the active workspace and verify that "srcpkgs" exists.
:workspace validate
Required tools are missing.
Install them with "xbps-install" and refresh the workspace.
A build fails.
Inspect the original log and diagnostic results.
:build logs :diagnose last
The terminal looks incorrect after an unexpected exit.
reset
13. Development and Testing
Run the project checks:cargo fmt --all -- --check cargo check --all-targets cargo test --all-targets cargo clippy --all-targets -- -D warnings cargo build --release
Contributions, bug reports and suggestions are welcome.
When reporting an issue, please include your Void Linux version, the steps to reproduce it and the relevant output.
14. License
VoidForge is released under the MIT License.See "LICENSE" (LICENSE).
An independent community project, not an official Void Linux project.