Scan your whole stack
Are you using @domicile-desktop/system-battery?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.0.0-alpha-0d72a1839566
@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.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
The battery for a Domicile shell, from UPower over the system bus.
dbus namespace
(@domicile-desktop/sdk). See
SHELL-SYSTEM-ACCESS.md.upower running. Without it, calls fail with a Dbus error.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.@domicile-desktop/sdk for the system calls, zod to parse UPower's
replies, @cprussin/option-result for Result and Option.@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.bun run turbo test --filter @domicile-desktop/system-battery
Tests answer with recorded UPower replies through a fake System.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.