avirajkhare00/macstat

A fetch-style stats dashboard for your MacBook, with an htop-flavored core grid and process table

Go

1

3 commits

updated Sep 16, 2026

See the code

See what people are saying (1)

SourceMessageScoreDate

A fetch-style dashboard for your MacBook with an htop-flavored lower half. (r/commandline)

Hello. recently got inspired from r/unixporn and created my own tool. its open source and available on github. adding screenshot also. [https://github.com/avirajkhare00/macstat](https://github.com/avirajkhare00/macstat)

0

Sep 16, 2026

README

macstat

A fetch-style dashboard for your MacBook with an htop-flavored lower half. One binary, ~50 ms.

Top: logo, identity, and bars for cpu / mem / swap / disk / battery / network. Bottom: a per-core grid (E and P cores labelled), a stacked memory breakdown (app · wired · compressed · cached · free), and a process table with PID, user, cpu%, mem%, RSS, state, cpu time, and command.

macstat on a MacBook Pro M1 Pro, tokyonight theme

Install

Grab a binary from the releases page (Apple Silicon and Intel):

tar -xzf macstat-*-darwin-arm64.tar.gz
xattr -d com.apple.quarantine macstat   # not notarized, so Gatekeeper quarantines browser downloads
mv macstat /usr/local/bin/

Or build it yourself (needs Go and Xcode Command Line Tools for the cgo core sampler):

go install github.com/avirajkhare00/macstat@latest   # or, from a clone:
go build -o macstat . && cp macstat /usr/local/bin/

Use

macstat                      # once, tokyonight
macstat --theme catppuccin   # tokyonight | catppuccin | gruvbox | nord | rosepine
macstat --watch 2s           # live, full-screen, ctrl-c to exit
macstat --compact            # fetch block only, like the first version
macstat --no-logo --top 20   # bigger process table
macstat --json               # raw stats for scripts / status bars
export MACSTAT_THEME=nord    # default theme

Drop macstat at the end of your ~/.zshrc for a greeting on every new shell.

What it reads

rowsource
os / kernel / host / uptimesysctl
pkgs/opt/homebrew/Cellar + Caskroom
chipsysctl + ioreg AGXAccelerator for GPU cores
cpu / coresMach host_processor_info (tick deltas, like htop) + vm.loadavg
memvm_stat (app + wired + compressed, same as Activity Monitor) + kern.memorystatus_vm_pressure_level
swapvm.swapusage
diskdf /
batt / healthioreg AppleSmartBattery + pmset
netroute, ipconfig, netstat
procsps (table, task and running counts) + ps -M (thread count)

Bars go green → yellow at 60% → red at 85%. Battery flips at 35% and 15%.

Contributors

avirajkhare00

3 commits

avirajkhare00/macstat

A fetch-style stats dashboard for your MacBook, with an htop-flavored core grid and process table

Go

1

3 commits

updated Sep 16, 2026

See the code

See what people are saying (1)

SourceMessageScoreDate

A fetch-style dashboard for your MacBook with an htop-flavored lower half. (r/commandline)

Hello. recently got inspired from r/unixporn and created my own tool. its open source and available on github. adding screenshot also. [https://github.com/avirajkhare00/macstat](https://github.com/avirajkhare00/macstat)

0

Sep 16, 2026

README

macstat

A fetch-style dashboard for your MacBook with an htop-flavored lower half. One binary, ~50 ms.

Top: logo, identity, and bars for cpu / mem / swap / disk / battery / network. Bottom: a per-core grid (E and P cores labelled), a stacked memory breakdown (app · wired · compressed · cached · free), and a process table with PID, user, cpu%, mem%, RSS, state, cpu time, and command.

macstat on a MacBook Pro M1 Pro, tokyonight theme

Install

Grab a binary from the releases page (Apple Silicon and Intel):

tar -xzf macstat-*-darwin-arm64.tar.gz
xattr -d com.apple.quarantine macstat   # not notarized, so Gatekeeper quarantines browser downloads
mv macstat /usr/local/bin/

Or build it yourself (needs Go and Xcode Command Line Tools for the cgo core sampler):

go install github.com/avirajkhare00/macstat@latest   # or, from a clone:
go build -o macstat . && cp macstat /usr/local/bin/

Use

macstat                      # once, tokyonight
macstat --theme catppuccin   # tokyonight | catppuccin | gruvbox | nord | rosepine
macstat --watch 2s           # live, full-screen, ctrl-c to exit
macstat --compact            # fetch block only, like the first version
macstat --no-logo --top 20   # bigger process table
macstat --json               # raw stats for scripts / status bars
export MACSTAT_THEME=nord    # default theme

Drop macstat at the end of your ~/.zshrc for a greeting on every new shell.

What it reads

rowsource
os / kernel / host / uptimesysctl
pkgs/opt/homebrew/Cellar + Caskroom
chipsysctl + ioreg AGXAccelerator for GPU cores
cpu / coresMach host_processor_info (tick deltas, like htop) + vm.loadavg
memvm_stat (app + wired + compressed, same as Activity Monitor) + kern.memorystatus_vm_pressure_level
swapvm.swapusage
diskdf /
batt / healthioreg AppleSmartBattery + pmset
netroute, ipconfig, netstat
procsps (table, task and running counts) + ps -M (thread count)

Bars go green → yellow at 60% → red at 85%. Battery flips at 35% and 15%.

Contributors

avirajkhare00

3 commits

Languages

Go

100.0%