Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@domicile-desktop/system-battery

Latest version: v0.0.0-alpha-0d72a1839566

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: cprussin
75 Stars
8 Forks
1,143 Versions
171.4K Downloads
TypeScript Repo language

Scan summary

@domicile-desktop/system-battery was last scanned on 24 Nov 2026 at version 0.0.0-alpha-0d72a1839566. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 1,143 versions; the latest 5 were published on 24 Nov 2026.
  • Findings: No rules fired in version 0.0.0-alpha-0d72a1839566.
  • Downloads: 171,378 downloads.

Versions

1143 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.0-alpha-0d72a1839566 LATEST 24 Nov 2026 No rules fired
0.0.0-alpha-7a9240fa186c 24 Nov 2026 No rules fired
0.0.0-alpha-90f6e382881e 24 Nov 2026 Not shown
0.0.0-alpha-9c91e5f0a7d2 24 Nov 2026 Not shown
0.0.0-alpha-dbc8eb2fd6bd 24 Nov 2026 Not shown

No rules fired in 0.0.0-alpha-0d72a1839566

Findings

Findings for v0.0.0-alpha-0d72a1839566. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.0.0-alpha-0d72a1839566; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@domicile-desktop/system-battery

The battery for a Domicile shell, from UPower over the system bus.

  • Reads UPower's DisplayDevice: the combined charge of every battery and whether a charger is connected.
  • Built on the desktop's dbus namespace (@domicile-desktop/sdk). See SHELL-SYSTEM-ACCESS.md.
  • Needs upower running. Without it, calls fail with a Dbus error.

Usage

import { watchBattery } from "@domicile-desktop/system-battery/battery";

const watched = await watchBattery(domicile);
watched.match({
  Err: (error) => console.error(error.message),
  Ok: async ({ items }) => {
    for await (const battery of items) {
      // `None()` without a battery; else `Some({ charge, charging })`.
    }
  },
});
  • domicile is the desktop, a Domicile; any object with its dbus works.
  • readBattery(domicile): the reading now, Result<Option<Battery>, SystemError>.
  • watchBattery(domicile): the reading now as the first item, then one per UPower change. stop() ends it.
  • charge is 0 through 1. charging is true unless the battery is draining (discharging, empty or pending discharge), so a full battery on AC counts.
  • Lock: both work while the desktop is locked, so a lock screen can show the battery (LOCK.md).

Dependencies

  • @domicile-desktop/sdk for the system calls, zod to parse UPower's replies, @cprussin/option-result for Result and Option.

React

@domicile-desktop/system-battery/react, for a shell on @domicile-desktop/react:

  • useBattery(): the reading, undefined until UPower answers.
  • useHasBattery(): whether /sys lists a battery, looked at every 10s.
  • deskBattery(domicile) and deskBatteryHardware(domicile): the shared watches behind them, one per desktop, for components that take a watch.
  • followBattery(domicile, onReading) (./follow-battery): the watch as callbacks, logging failures.

Test

bun run turbo test --filter @domicile-desktop/system-battery

Tests answer with recorded UPower replies through a fake System.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @domicile-desktop/system-battery

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229