Battery, network, storage, display, power and hardware tier — one API for Tauri apps on Windows, macOS, Linux, iOS and Android, pushed to you the moment they change.
$ npm run tauri add device-infoimport { watchPowerProfile, getDeviceTier } from 'tauri-plugin-device-info-api' const { tier } = await getDeviceTier() // 'low' | 'mid' | 'high' await watchPowerProfile(({ profile }) => { document.documentElement.dataset.power = profile })
Each getter has a watcher. Native OS events where they exist, a change-detecting poller everywhere else — your code never polls.
getDeviceInfo()watchBattery()watchNetwork()watchStorage()watchDisplay()watch*()watchPowerProfile()getDeviceTier()The plugin tells your app how much it can do. You decide what to turn off. The rules are written once in Rust, so every platform behaves the same.
getPowerProfile() · watchPowerProfile()Battery, charging, Low Power Mode and heat, folded into one recommendation.getDeviceTier()A 0–100 score from memory, cores and clock, against devices of the same kind.| Platform | Reads from | Watch | Thermal |
|---|---|---|---|
| macOS | IOKit · SystemConfiguration · NSProcessInfo | Native events | Yes |
| Windows | WMI · GetSystemPowerStatus | Polled | Not exposed by the OS |
| Linux | sysfs · ACPI platform profile · CPU thermal zones | Polled | Yes |
| iOS | UIDevice · ProcessInfo | Polled | Yes |
| Android | BatteryManager · PowerManager · cpufreq | Polled | Android 10+ |
Vitals is the example app in examples/tauri-app: four pages built only from this plugin's getters and watchers.