Skip to content
MortalSyndromePublic

Repository files navigation

VoidForge VoidForge icon

VoidForge

The Integrated Package Development Environment for Void Linux

A native Rust terminal workspace for package development, real builds, diagnostics and repository maintenance.

CI MIT Rust Void Linux Version

Rust · Ratatui · Crossterm · SQLite · xbps-src

Features · Installation · Getting Started · Commands · Contributing


About

I built VoidForge to make package development on Void Linux more organized, accessible and efficient.

Working on packages often means moving between templates, terminals, build output, diagnostic tools and Git commands. VoidForge brings these workflows together in one native terminal application while keeping the official Void Linux toolchain responsible for the actual work.

VoidForge works directly with your local void-packages repository. It inspects real templates, runs official xbps-src commands, captures build output, manages patches and helps investigate failures using actual build logs.

VoidForge is not a simulator. It does not generate mock build output or replace the underlying package tools with approximations. Operations work with real files, real repositories and real system utilities.

Project Status

Stable release · Version 1.0.1

VoidForge has reached a complete and usable state for its current feature scope. The core package development workflow is implemented, the previously identified interface and usability problems have been addressed, and the application is ready for everyday use on its supported platform.

Area Status
Package and template management Complete
Workspace management Complete
Dependency inspection and cycle detection Complete
Patch creation and management Complete
Source verification and handling Complete
Real xbps-src build execution Complete
Live build output and log navigation Complete
Build diagnostics Complete
Git integration Complete
Release archive inspection and repository indexing Complete
Mouse interaction and panel navigation Implemented
Independent scrolling and text wrapping Implemented
Startup and idle performance improvements Implemented

Known issues: No outstanding issues are currently listed for the implemented feature set. This does not mean that future bugs are impossible; reports and reproducible issues are welcome.

Features

Package Studio

  • Browse, search and filter real srcpkgs templates.
  • Create, duplicate, rename and inspect packages.
  • View package variables and subpackage functions.
  • Validate templates and open them in an external editor.

Dependency Analysis

  • Inspect depends, makedepends, hostmakedepends and checkdepends.
  • Detect dependency cycles and inspect package relationships.

Patch Workshop

  • Browse and preview existing patches.
  • Create patches or generate them from Git changes.
  • Apply and revert patches with validation and backup protection.

Build Center

  • Execute official xbps-src build phases.
  • Configure parallel build jobs.
  • Stream real build output while a build is running.
  • Cancel active builds.
  • Browse build history and timestamped logs.
  • Inspect generated package archives.

Diagnostics

  • Analyze actual build logs.
  • Identify errors and warnings with relevant log evidence.
  • Inspect template and workspace validation results.

Git Integration

  • Inspect repository status and diffs.
  • Stage and unstage changes.
  • Create commits and manage branches, tags and remotes.
  • Fetch, pull and push with confirmation.

Workspace and Repository Management

  • Register multiple local package repositories.
  • Clone and switch between workspaces.
  • Validate workspace configuration and refresh repository information.
  • Inspect release archives and manage local repository indexes with xbps-rindex.

Terminal Experience

  • Ten dedicated screens with keyboard and mouse navigation.
  • Clickable sidebar entries, tabs, list items, panels and contextual controls.
  • Independent scrolling for lists, previews, diffs, diagnostics and logs.
  • Persistent scroll positions and automatic text wrapping.
  • Searchable Command Palette with Ctrl+K.
  • Live build log following with explicit FOLLOW and PAUSED states.
  • Dark and light themes.
  • Focus-aware panels and in-app help.

Performance and Reliability

The 1.0.1 release also addresses a significant startup performance problem on large void-packages repositories.

  • Git status collection runs in a background thread instead of blocking application startup.
  • Workspace scanning is deferred until the relevant screen or command needs the data.
  • Tool detection, tool versions and filtered package lists are cached.
  • Terminal event polling blocks while idle instead of repeatedly busy-waiting.
  • Build output and workspace operations use bounded processing and validation.

The result is a more responsive interface, especially when working with repositories containing thousands of package templates.

Installation

Requirements

  • Void Linux x86_64 with glibc.
  • 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 the 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

Build from source

git clone https://github.com/MortalSyndrome/voidforge.git
cd voidforge

cargo build --release
./target/release/voidforge

Optionally install the executable system-wide:

sudo install -Dm755 target/release/voidforge /usr/local/bin/voidforge

Then launch it:

voidforge

Important: Run VoidForge as your normal user. Do not run the application itself with sudo. Package builds should remain unprivileged.

Getting Started

Register your package workspace:

:workspace add ~/void-packages

Or clone a repository from inside VoidForge:

:workspace clone https://github.com/void-linux/void-packages.git void-packages

Validate the workspace:

:workspace validate

Browse packages, select a template and start a build:

:build pkg hello

If a build fails, inspect its logs and diagnostics:

:build logs
:diagnose last

Review and commit your changes:

:git status
:git diff
:git stage srcpkgs/hello/template
:git commit "hello: update to 1.1"

Screens and Navigation

Key Screen
1 Dashboard
2 Workspaces
3 Packages
4 Template
5 Dependencies
6 Patches
7 Build Center
8 Diagnostics
9 Git & Repos
0 Settings

Keyboard shortcuts

Shortcut Action
1–0 Switch screens
Tab / Shift+Tab Change panel focus
j / k or arrow keys Navigate or scroll
PageUp / PageDown Scroll by page
Home Go to the beginning
End Go to the end or resume log following
Enter Confirm, open or activate
Esc Close the current overlay or message
: Open the command interface
/ Filter packages
Ctrl+K Open the Command Palette
? Open help
q Quit
Ctrl+C Exit safely

Mouse interaction

You can use the mouse throughout the interface:

  • Click sidebar entries and tabs to switch screens.
  • Click panels and list entries to focus or select them.
  • Use the wheel to scroll the panel under the pointer.
  • Interact with visible buttons and Command Palette entries.
  • Overlays capture interaction while they are open.

Long lists, previews, diffs, diagnostic details and build logs maintain their own scroll positions. Build logs follow new output automatically until you scroll away; use End to resume following.

Command Reference

Workspaces

:workspace add <path>
:workspace clone <url> [name]
:workspace use <name>
:workspace validate
:workspace refresh
:workspace remove <name>

Packages and templates

:pkg list
:pkg new <name>
:pkg duplicate <source> <target>
:pkg rename <old> <new>
:pkg open <name>
:template validate
:template edit

Dependencies and patches

:deps cycles
:patch list
:patch new <name>.patch
:patch from-git <name>.patch <file>
:patch apply <name>.patch
:patch revert <name>.patch
:patch remove <name>.patch

Sources and builds

:source verify
:source download [index]
:source extract [filename]
:source github <url>
:build <phase> [package]
:build cancel
:build logs [index]

Diagnostics and releases

:diagnose last
:diagnose <build-id>
:release list
:release index
:release info <name>

Git

:git status
:git diff
:git stage <path>
:git unstage <path>
:git commit <message>
:git branch
:git branch-new <name>
:git checkout <branch>
:git fetch [remote]
:git pull [remote] [branch]
:git push [remote] [branch]
:git tag

General

:theme dark|light
:jobs <1-64>
:editor <command>
:view <screen>
:help
:clear
:quit

Storage

VoidForge stores its application data separately from your package repositories.

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 artifacts

Removing a workspace entry does not delete the repository from disk.

Safety and Limitations

  • The supported target is currently Void Linux x86_64 with glibc.
  • Builds use the real local xbps-src toolchain.
  • Static validation cannot guarantee that a package will build successfully.
  • Git commands use argument arrays rather than shell-generated command strings.
  • Remote Git operations require confirmation.
  • Patch operations include validation and backup protection.
  • Workspace operations are designed to preserve user files.
  • Network operations use bounded timeouts.

Troubleshooting

VoidForge reports that it is not running in a terminal.

Run it inside a terminal emulator with a real TTY.

No packages appear.

Check the active workspace and verify that it contains a srcpkgs directory:

:workspace validate

Required tools are missing.

Install the required Void Linux packages and refresh the workspace.

A build fails.

Inspect the original build log and diagnostic results:

:build logs
:diagnose last

The terminal looks incorrect after an unexpected exit.

Run:

reset

Development and Testing

VoidForge is written in Rust and uses Ratatui and Crossterm for its terminal interface, with SQLite for persistent application data.

Run the project quality checks:

cargo fmt --all -- --check
cargo check --all-targets
cargo test --all-targets
cargo clippy --all-targets -- -D warnings
cargo build --release

The stable release quality gate includes 28 unit tests and 5 integration tests against a fixture void-packages tree. GitHub Actions runs formatting, compilation, tests, Clippy and the release build.

Contributions, bug reports and suggestions are welcome. When reporting an issue, include your Void Linux version, steps to reproduce it and relevant output.

Roadmap

The current release delivers the core package development workflow. My longer term goal is to keep evolving VoidForge into a more comprehensive Integrated Package Development Environment for Void Linux.

Future releases may expand package testing, template editing, dependency analysis, diagnostics and pull request preparation. These are future development goals, not features promised by the current release.

The guiding principle remains simple: more capability without unnecessary complexity. VoidForge should stay fast, lightweight and practical, in the spirit of Void Linux.

License

VoidForge is released under the MIT License.

Built for Void Linux. Written in Rust. Designed for package developers.

An independent community project, not an official Void Linux project.

Releases

Packages

Contributors

Languages