Skip to content
New in 1.2 — power profile & device tier

Know the device
your app runs on.

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-info
app.ts
import { watchPowerProfile, getDeviceTier } from 'tauri-plugin-device-info-api'

const { tier } = await getDeviceTier()   // 'low' | 'mid' | 'high'

await watchPowerProfile(({ profile }) => {
  document.documentElement.dataset.power = profile
})
POWER PROFILEexample
BalancedBattery ≤ 40%
74
DEVICE TIERHigh8 cores · 8 GB · Android
ADAPTIVE APPS

One signal for right now.
One for the hardware.

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.
FullCharging or on external power, or battery above 40% — cool, no power saving.Everything on
BalancedOn battery at 21–40%, or the device is warming up.Fewer effects, 30 fps
SaverOn battery at 20% or less, Low Power Mode, or too hot.Effects off, frozen
getDeviceTier()A 0–100 score from memory, cores and clock, against devices of the same kind.
Low · 0–29Mid · 30–64High · 65–100
Apple Silicon laptop (2025)90 · High
Recent iPhone71 · High
Windows laptop from 201354 · Mid
Budget Android phone from 201729 · Low
Scores measured on real devices.
FIVE PLATFORMS

Desktop and mobile, one API.

PlatformReads fromWatchThermal
macOSIOKit · SystemConfiguration · NSProcessInfoNative eventsYes
WindowsWMI · GetSystemPowerStatusPolledNot exposed by the OS
Linuxsysfs · ACPI platform profile · CPU thermal zonesPolledYes
iOSUIDevice · ProcessInfoPolledYes
AndroidBatteryManager · PowerManager · cpufreqPolledAndroid 10+
SEE IT RUN

Every signal, live, in the demo app.

Vitals is the example app in examples/tauri-app: four pages built only from this plugin's getters and watchers.

Run the example →

Released under the MIT License.