Skip to content

STORAGE ​

Implementation: supported · Proposal: in-review (status checked 2026-10-31). Key-value binding has focused request/result tests and tutorial usage; host storage isolation remains the host responsibility. All capabilities remain subject to change. Maturity and opt-in policy.

Scoped key-value storage proxied through the shell — isolated per napplet identity.

ts
await window.napplet.storage.setItem('draft', 'hello');
const draft = await window.napplet.storage.getItem('draft'); // string | null
const keys = await window.napplet.storage.keys();

This non-normative guide defers to the living NAP-STORAGE proposal. Feature-gate with if (window.napplet?.storage) before use; the runtime injects only available domains. Typed helpers ship from @napplet/nap/storage and @napplet/sdk.

Released under the MIT License.