whatisgithub

What is mole-widget?

bsnkhua/mole-widget — explained in plain English

Analysis updated 2026-05-18

26SwiftAudience · generalComplexity · 2/5LicenseSetup · easy

In one sentence

Mole Widget is a lightweight macOS desktop widget that shows live CPU, memory, disk, network, and battery stats right on your desktop background.

Mindmap

mindmap
  root((mole widget))
    What it does
      Desktop system monitor
      CPU memory disk stats
      Battery and network stats
    Tech stack
      Swift
      SwiftUI
    Use cases
      Watch resource usage
      Track battery health
      Spot busy processes
    Audience
      Mac users
      Developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Keep an eye on CPU, memory, disk, and network usage without opening Activity Monitor

USE CASE 2

Monitor battery health and charge cycles on a MacBook

USE CASE 3

Track which processes are using the most CPU at a glance

USE CASE 4

Add a customizable, always-visible system monitor to your desktop

What is it built with?

SwiftSwiftUI

How does it compare?

bsnkhua/mole-widgetjomeswang/agnes-ai-skillmaitrungduc1410/react-native-shared-hero
Stars262626
LanguageSwiftSwiftSwift
Setup difficultyeasyeasymoderate
Complexity2/52/53/5
Audiencegeneraldeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires macOS 14 or later, Homebrew install is a single command.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

Mole Widget is a small macOS app that places a live system monitor directly on your desktop. It sits above the wallpaper but below your regular application windows, so it stays visible without getting in the way. You can drag it anywhere on screen, resize it by dragging its right edge, and lock its position so it does not move accidentally. The app runs from the menu bar with no Dock icon and can be set to launch automatically at login. The widget shows several sections of information that refresh every one, two, or five seconds depending on your preference. The CPU section shows overall usage, the three busiest processor cores, load averages, and a small trend graph. The memory section shows how much RAM is in use, cached, and free. Disk shows storage usage and current read and write speeds. The power section covers battery charge level, health, cycle count, and temperature. The network section shows download and upload speeds with small trend graphs, plus the active network interface and local IP address. A process section shows the three applications currently using the most CPU. Clicking any section heading opens Activity Monitor. Installation is available through Homebrew, which builds the app from source on your machine so macOS Gatekeeper does not flag it as an unsigned download. You can also build it from source yourself using just the Xcode Command Line Tools without needing the full Xcode application. The widget checks GitHub for updates every six hours and displays a notice in the interface when one is available. The code is organized as a library containing one module per measurement domain (CPU, memory, disk, power) plus a shared data store and SwiftUI views. The computation is written as pure functions that are unit-tested separately from the parts that talk to system APIs. The project includes 80 tests and requires macOS 14 or later. Mole Widget is released under the MIT license.

Copy-paste prompts

Prompt 1
Show me how to install Mole Widget with Homebrew and set it to launch at login.
Prompt 2
Explain what each section of the Mole Widget interface displays.
Prompt 3
Help me build Mole Widget from source using just the Command Line Tools.
Prompt 4
How do I fully uninstall Mole Widget, including its saved settings?

Frequently asked questions

What is mole-widget?

Mole Widget is a lightweight macOS desktop widget that shows live CPU, memory, disk, network, and battery stats right on your desktop background.

What language is mole-widget written in?

Mainly Swift. The stack also includes Swift, SwiftUI.

What license does mole-widget use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is mole-widget to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is mole-widget for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.