Skip to content

Bas3line/hifetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HiFetch

A high-performance system information tool written in C that delivers comprehensive system analysis with optimized speed.

HiFetch on Arch Linux HiFetch on Debian

Features

Core System Information

  • Hardware Detection: CPU, GPU, memory, storage, and network analysis
  • Performance Monitoring: Real-time system statistics and resource usage
  • Security Scanning: Process monitoring and vulnerability detection
  • Network Diagnostics: Interface analysis and connectivity testing
  • Advanced Display: Clean output with hardware sensor readings

Performance Optimizations

  • Aggressive Compilation: -O3 -march=native -flto -ffast-math optimizations
  • Memory Efficiency: Optimized data structures and caching systems
  • SIMD Instructions: Vectorized operations for enhanced performance
  • Low Overhead: Minimal resource consumption during execution

Installation

One-Line Install (Recommended)

curl -fsSL https://fetch.yssh.dev/install.sh | bash

Or with wget:

wget -qO- https://fetch.yssh.dev/install.sh | bash

Manual Install

# Download pre-built static binary
curl -L https://fetch.yssh.dev/hifetch -o hifetch
chmod +x hifetch
sudo mv hifetch /usr/local/bin/

# Or install to user directory (no sudo required)
mkdir -p ~/.local/bin
mv hifetch ~/.local/bin/
export PATH="$HOME/.local/bin:$PATH"

Build from Source

# Clone repository
git clone https://github.com/Bas3line/hifetch.git
cd hifetch

# Build static binary
make static

# Install system-wide
sudo make install

# Or just use locally
./bin/hifetch-static

Usage

# Basic system information
hifetch

# Additional tools
make hitop    # Build htop replacement
make bench    # Performance benchmarking

Build Targets

  • make - Build main hifetch binary
  • make static - Build static binary (no dependencies)
  • make install - Install to /usr/local/bin
  • make deploy - Deploy to your hosting server
  • make hitop - Build process monitor
  • make bench - Performance benchmarks
  • make clean - Clean build artifacts

System Requirements

Minimum Requirements

  • Linux-based operating system (kernel 4.4+)
  • x86_64 architecture
  • No dependencies (static binary)

Build from Source Requirements

Ubuntu/Debian:

sudo apt install gcc make

Fedora/RHEL/CentOS:

sudo dnf install gcc make

Arch Linux:

sudo pacman -S gcc make

Performance Goals

  • Startup Time: < 10ms
  • Memory Usage: < 5MB
  • CPU Overhead: < 1% during execution
  • Hardware Detection: Comprehensive PCI/USB enumeration

Architecture

The codebase is organized into specialized modules:

  • Hardware Detection: CPU, GPU, storage, and network device enumeration
  • System Monitoring: Real-time metrics and sensor readings
  • Security Analysis: Process and vulnerability scanning
  • Performance Profiling: Function-level analysis and optimization
  • Display Engine: Formatted output and terminal rendering

Contributing

This project is under active development. Performance optimizations and feature additions are continuously integrated.

License

MIT License - See LICENSE file for details.

About

A maintained, feature-rich and performance oriented, neofetch like system information tool.

Resources

Stars

Watchers

Forks

Packages

No packages published