Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 960 Bytes

File metadata and controls

26 lines (18 loc) · 960 Bytes

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 (same pattern as before)

Installation

pnpm desktop add @owdproject/module-persistence

License

This module is released under the MIT License.