power
@tynd/plugin-power enables the host power API and exposes its typed client. The API itself is documented on the power page.
Install
Section titled “Install”tynd add powerimport { power } from "@tynd/plugin-power/client";Declaring the plugin compiles the matching api-power Cargo feature into the app host on the next tynd dev or tynd build. Or by hand: bun add @tynd/plugin-power and list it in plugins in tynd.config.ts.
Package
Section titled “Package”| Package | @tynd/plugin-power |
| Kind | Host-backed official plugin (facade over a host API) |
| Host API | power |
Aliases for tynd add |
battery, power-state |
| Catalog permission labels | host:power |
| Estimated size | 80 KB |
| Client exports | BatteryInfo, PowerSourceChange, PowerStatus, PowerSubscription, PreventSleepOptions, ThermalState, power |