zfetch
A high-performance system information fetcher written in Zig
zfetch (⚡) is a lightweight, high-performance system information fetcher inspired by the fastfetch.
The "z" stands for both Zig (the language it's written in) and zap (⚡ lightning-fast). It aims to be extremely fast by avoiding external process calls and using native C APIs or virtual filesystems instead.
- Cross-platform: Supports macOS, Linux, and FreeBSD.
Detailed Memory Info:
- On macOS: Provides breakdown of App Memory, Wired Memory, and Compressed Memory (matching Activity Monitor).
- On Linux: Provides Swap usage details.
- On FreeBSD: Uses
sysctlfor memory and ACPI for battery status.
- Hardware Insights: Displays CPU core distribution (Performance vs. Efficiency cores on Apple Silicon), GPU (macOS), and Page Size.
- High Performance: Uses
sysctl,IOKit,CoreFoundationon macOS,procfs,sysfson Linux, andsysctlon FreeBSD.
Demo

macOS
..' jiacai@mario
,xNMM. ────────────
.OMMMMo OS macOS 26.3 aarch64
lMM" Host Mac14,10
.;loddo:. .olloddol;. Kernel 25.3.0
cKMMMMMMMMMMNWMMMMMMMMMM0: Uptime 20 days, 11 hours, 6 mins
.KMMMMMMMMMMMMMMMMMMMMMMMWd. Shell bash
XMMMMMMMMMMMMMMMMMMMMMMMX. Terminal ghostty
;MMMMMMMMMMMMMMMMMMMMMMMM: Resolution 1728x1117 @ 120Hz
:MMMMMMMMMMMMMMMMMMMMMMMM: Theme Light
.MMMMMMMMMMMMMMMMMMMMMMMMX. CPU Apple M2 Pro (12 cores: 8P + 4E)
kMMMMMMMMMMMMMMMMMMMMMMMMWd. Memory 24.6 GiB / 32.0 GiB (77%) [App: 14.8 GiB, Wired: 3.5 GiB, Compressed: 6.2 GiB]
'XMMMMMMMMMMMMMMMMMMMMMMMMMMk Disk /: 827 GiB / 926 GiB (89%)
'XMMMMMMMMMMMMMMMMMMMMMMMMK. Battery 80% [Discharging]
kMMMMMMMMMMMMMMMMMMMMMMd Page 16 KiB
;KMMMMMMMWXXWMMMMMMMk. Local IP 10.192.157.86 (en0), 100.80.224.100 (utun0)
"cooc*" "*coo'"
Linux
_nnnn_ jiacai@ThinkCentre-M760t
dGGGGMMb ───────────────────────
@p~qp~~qMb OS Ubuntu 24.04.3 LTS x86_64
M|@||@) M| Host LENOVO 12USCTO1WW
@,----.JM| Kernel 6.11.0-29-generic
JS^\__/ qKL Uptime 2 hours, 52 mins
dZP qKRb Shell bash
dZP qKKb Terminal tmux
fZP SMMb Resolution 2560x1440
HZM MMMM Theme Light
FqM MMMM CPU 13th Gen Intel(R) Core(TM) i7-13700 (24 logical, 16 physical cores)
__| ". |\dS"qML Memory 2.9 GiB / 30.9 GiB (9%) [Swap: 0 MiB / 59.6 GiB]
| `. | `' \Zq Disk /: 547 GiB / 878 GiB (62%)
_) \.___.,| .' Battery No Battery
\____ )MMMMMP| .' Page 4 KiB
`-' `--' Local IP 10.192.32.23 (eno1), 172.17.0.1 (docker0)
FreeBSD
``` ` root@freebsd
` `.....---.......--.``` -/ ────────────
+o .--` /y:` +. OS FreeBSD 15.0-RELEASE x86_64
yo`:. :o `+- Host FreeBSD
y/ -/` -o/ Kernel 15.0-RELEASE
.- ::/sy+:. Uptime 27 mins, 15 secs
/ `-- / Shell sh
`: :` Terminal vt100
`: :` Resolution Unknown
/ / Theme Light
.- -. CPU QEMU Virtual CPU version 2.5+ (2 cores)
-- -. Memory 171 MiB / 1.9 GiB (8%)
`:` `:` Disk /: 2 GiB / 4 GiB (67%)
.-- `--. Battery No Battery
.---.....----. Page 4 KiB
Local IP 10.0.2.15 (vtnet0)