Arcane OS Docs Development only

Reference

Arcane.storage

App-scoped native key/value storage.

  • Reference

This focused page is derived from the mechanically checked full member inventory.

Syntax

Arcane.storage

Member kind

Namespace

Description

App-scoped native key/value storage.

Overview

Arcane.storage is app-scoped native key/value storage. It supports inventory, read, write, and delete without exposing another application's namespace. Values must satisfy the method's bounded JSON-compatible contract.

Availability and security

Listing and get require storage.read; set and delete require storage.write. Storage admission is not permission to store credentials, protected health information, or other sensitive data without the owning application's explicit data policy.

Example

const access = await globalThis.Arcane.capabilities.list();
const canListStorage = access.methods.includes('storage.list');

console.log('App storage inventory admitted:', canListStorage);

Members

  • Arcane.storage.list() — Lists sorted keys and quota use for the current application's isolated native storage. Requires storage.read.
  • Arcane.storage.get() — Reads one app-scoped JSON value. A missing key resolves with found:false,value:null. Requires storage.read.
  • Arcane.storage.set() — Atomically writes one app-scoped value under the 1 MiB total quota. Requires storage.write.
  • Arcane.storage.delete() — Deletes one app-scoped value; an absent key resolves with deleted:false. Requires storage.write.

Reference group

Namespace, constructor, and values

Repository and reviewed source access