Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.03 KB

File metadata and controls

27 lines (19 loc) · 1.03 KB

Persistence Module

Pinia persistence for Open Web Desktop (IndexedDB via idb-keyval).

Overview

This module registers pinia-plugin-persistedstate-2 with storage backed by idb-keyval (small ESM library on IndexedDB). It avoids legacy UMD packages such as localforage, which break under Vite’s native ESM handling (does not provide an export named 'default').

Features

  • Async getItem / setItem / removeItem compatible with the persisted-state plugin
  • Client-only Nuxt plugin (desktop-plugin-persistence)
  • Storage keys match Pinia store ids (e.g. desktop, desktop/application/todo/windows)

Installation

pnpm desktop add @owdproject/module-persistence

License

This module is released under the MIT License.