GUIDES
Storage API
An isolated, zero-config key-value store for every app.
Each app gets its own isolated key-value store, backed by SQLite. Reach it from your app's client code through the injected storage global — no backend, no config, no other app can read it.
// writeawait storage.set('items', [{ name: 'Passports', done: true }]) // readconst items = await storage.get('items') // list keys, then delete oneconst keys = await storage.list()await storage.delete('items')Methods
storage.get(key)Read a value by key. Resolves to the stored JSON, or null.
storage.set(key, value)Write any JSON-serializable value under a key.
storage.list()Return all keys in this app’s store.
storage.delete(key)Remove a key and its value.