DEV Community

Cover image for SysPeek 2.1.0: a system monitor that opens in under a second
Muhammad Sheharyar Butt
Muhammad Sheharyar Butt

Posted on Originally published at msyb.dev AI-assisted

SysPeek 2.1.0: a system monitor that opens in under a second

In July I shipped SysPeek v2.0.0,
a full rewrite of my system information app in Electron, React and TypeScript. It worked.
It also spent about five seconds behind a splash screen before showing anything, shipped
3 MB of JavaScript to describe one computer, and told me my MacBook was using 99% of its
memory while it sat there doing nothing.

Version 2.1.0 fixes all three, mostly by deleting things.

Download SysPeek 2.1.0 ·
Source on GitHub ·
Changelog

SysPeek 2.1 on a MacBook Air M4: live CPU, memory, network and disk across the top, per-core load and memory composition below

A monitor should look like an instrument

Version 2.0 had gradients, glows and a coloured tile behind every icon. It looked like a
dashboard template, and in a template every number fights for attention.

2.1 uses graphite surfaces, hairline borders, one accent colour you can change in Settings,
tabular numbers and the system font. Each page now starts with what the device actually is
("MacBook Air (13-inch, M4, 2025)", not "System Information"), then the headline facts, then
live activity, then the full property list. Fields the operating system did not report are
hidden instead of printed as Unknown forty times.

The structure changed too. Overview and Processes are separate pages, Settings is a full page
(still Cmd/Ctrl+,), and every hardware inventory (drives,
memory modules, network interfaces, Wi-Fi, audio, Bluetooth, USB, printers) is a sortable
table with expandable rows. Charts keep their history when you switch pages, show a readout
on hover, and use a colour-vision-safe palette in both themes.

3.0 MB to 0.36 MB

The redesign was the moment to remove Ant Design, @ant-design/icons and uplot-react. A
system monitor needs a handful of components: a table, a toggle, a tooltip, a progress bar
and a chart. Ant Design is excellent when you need two hundred of them. Here it was mostly
weight.

They were replaced by a small in-house component set and a direct wrapper around uPlot. The
renderer JavaScript went from about 3.0 MB to 0.36 MB, and it is now minified as well.

Under a second to a useful window

Bundle size was not the main reason startup was slow. Two probes were:

  • the Wi-Fi scan, about 5 seconds on macOS, and
  • the sweep that collects installed developer tool versions, about 2.5 seconds.

Both ran inside the startup inventory, behind the splash screen, so everything waited for the
slowest one. Neither is needed until you open the page that shows it.

So they moved. The splash screen is gone, the window appears as soon as it paints, live data
streams in while the inventory loads, and the two slow probes run when their page opens. On a
MacBook Air M4 the startup inventory now takes under a second, down from about five.

The work done on every tick shrank as well. Each telemetry tick used to re-read the CPU's
identity, which costs tens of milliseconds and never changes. It is now read once. Volume
usage, which spawns a process per call on Windows, refreshes in the background every 15
seconds, and temperature every 5:

async function getVolumes(): Promise<FsVolume[]> {
  if (!fsCache) return refreshVolumes()
  // Serve the last reading and refresh in the background once it is stale.
  if (Date.now() - fsCache.at > FS_TTL_MS) refreshVolumes().catch(() => {})
  return fsCache.data
}
🏆 āļĒāļ­āļ”āļ™āļīāļĒāļĄ: shehari/syspeek a system monitor that opens in under a second and - āļŠāļĢāļļāļ›āļ”āļĢāļēāļĄāđˆāļēāļĨāđˆāļēāļŠāļļāļ” ðŸ† āļĒāļ­āļ”āļ™āļīāļĒāļĄ: shehari/syspeek a system monitor that opens in under a second and - āļŠāļĢāļļāļ›āļ”āļĢāļēāļĄāđˆāļēāļĨāđˆāļēāļŠāļļāļ”

Honest numbers

Two bugs in 2.0 were the kind a monitor cannot afford. They were not crashes. They were wrong
numbers, displayed confidently.

The 99% Mac

systeminformation reports used memory as total minus free. On macOS and Linux that
includes file cache, which the OS hands back the moment an application asks for it. So a
healthy Mac read 99%, the tray read 99%, and the memory alert fired on a machine that was
fine.

2.1 has one definition of "in use", shared by the UI, the tray and the threshold alerts so
they cannot disagree:

/** Memory held by applications, excluding reclaimable cache. */
export function memoryInUse(mem: Pick<MemStats, 'used' | 'active'>): number {
  if (mem.active > 0 && mem.active <= mem.used) return mem.active
  return mem.used
}
🏆 āļĒāļ­āļ”āļ™āļīāļĒāļĄ: shehari/syspeek a system monitor that opens in under a second and - āļŠāļĢāļļāļ›āļ”āļĢāļēāļĄāđˆāļēāļĨāđˆāļēāļŠāļļāļ” ðŸ† āļĒāļ­āļ”āļ™āļīāļĒāļĄ: shehari/syspeek a system monitor that opens in under a second and - āļŠāļĢāļļāļ›āļ”āļĢāļēāļĄāđˆāļēāļĨāđˆāļēāļŠāļļāļ”

The Memory page now shows the split: in use, cached, free and swap.

The Memory page: in-use, cached and free memory, usage history and installed modules

Disk activity that was not disk activity

The dashboard's disk card showed operations per second, labelled as bytes per second. On
Windows it always read 0, because systeminformation does not implement disk throughput
there.

On macOS and Linux, throughput now comes from fsStats in real bytes per second, with read
and write operations shown separately. On Windows it comes from the operating system's own
performance counters, which a standard user can read. Rather than spawning a query on every
poll, one long-lived typeperf process streams them:

const groups = {
  // "% Processor Performance" rises above 100 during turbo,
  // so liveGHz = baseGHz * percent / 100.
  clock: makeGroup(['\\Processor Information(_Total)\\% Processor Performance']),
  disk: makeGroup([
    '\\PhysicalDisk(_Total)\\Disk Read Bytes/sec',
    '\\PhysicalDisk(_Total)\\Disk Write Bytes/sec',
    '\\PhysicalDisk(_Total)\\Disk Reads/sec',
    '\\PhysicalDisk(_Total)\\Disk Writes/sec'
  ])
}
🏆 āļĒāļ­āļ”āļ™āļīāļĒāļĄ: shehari/syspeek a system monitor that opens in under a second and - āļŠāļĢāļļāļ›āļ”āļĢāļēāļĄāđˆāļēāļĨāđˆāļēāļŠāļļāļ” ðŸ† āļĒāļ­āļ”āļ™āļīāļĒāļĄ: shehari/syspeek a system monitor that opens in under a second and - āļŠāļĢāļļāļ›āļ”āļĢāļēāļĄāđˆāļēāļĨāđˆāļēāļŠāļļāļ”

Each group runs in its own process, so a counter that is missing on one machine cannot take
the others down. The clock group gives Windows users the live turbo frequency instead of the
nominal base clock.

The Storage page: read and write throughput history, volumes and physical drives

Two smaller fixes: battery charge was read once at launch and never again (the Battery page
now refreshes it), and the display list could come back empty on macOS when probes ran in
parallel (it is now retried once).

Native on Apple silicon

2.1.0 ships an arm64 macOS build as a .dmg and .zip, alongside the Windows x64 installer
and the Linux x64 AppImage and .deb. The Mac build is ad-hoc signed. That is not
notarisation, but it means macOS shows the ordinary "unidentified developer" prompt instead
of claiming the app is damaged, which is the message that makes people delete it.
npm run release:all builds and verifies every platform from one Apple silicon Mac.

There is a new icon in every format, plus a monochrome menu bar icon on macOS that follows
light and dark menu bars. A few smaller additions came along: a Wi-Fi rescan button, a pause
button on Processes, copy buttons on identifiers, and a diagram of how your displays are
arranged. The status bar and a new Credits section on the About page name the people behind
it: built by Systronium Technologies, with data from systeminformation.

SysPeek 2.1 in the light theme

Security and dependencies

  • systeminformation 5.33.31 includes the fix for the Windows command injection advisory that affected versions before 5.33.16.
  • Advisories in tar and minimatch, pulled in by electron-builder, are resolved with npm overrides. npm audit reports nothing.
  • Settings sent from the renderer are validated against known keys and types before they are stored.
  • The preload no longer has a non-isolated fallback, in line with Electron 45's reduced sandboxed preload environment.

The stack is now Electron 45, electron-vite 6, Vite 8, React 19.3 and TypeScript 6.0.3.
TypeScript 7 is not in yet, because typescript-eslint only supports TypeScript below 6.1.

What I would tell past me

Measure startup before you design a splash screen. Mine existed to hide five seconds of work
nobody had asked for yet, and the fix was not making that work faster. It was not doing it
until someone opened the page that needed it.

SysPeek is free, open source and MIT licensed.
Download it
for macOS (Apple silicon), Windows or Linux, or
read the code.

Top comments (0)