window-state
@tynd/plugin-window-state enables the host window-state API and exposes its typed client. The API itself is documented on the windowState page.
Install
Section titled “Install”tynd add window-stateimport { windowState } from "@tynd/plugin-window-state/client";Declaring the plugin compiles the matching api-window-state Cargo feature into the app host on the next tynd dev or tynd build. Or by hand: bun add @tynd/plugin-window-state and list it in plugins in tynd.config.ts.
Package
Section titled “Package”| Package | @tynd/plugin-window-state |
| Kind | Host-backed official plugin (facade over a host API) |
| Host API | window-state |
Aliases for tynd add |
windowstate, window-state-store |
| Catalog permission labels | host:window-state, local-storage |
| Estimated size | 70 KB |
| Client exports | WindowStateInitOptions, WindowStateSnapshot, windowState |