Storage Utils
Installation
Section titled “Installation”pnpm add @theholocron/storage-utilsimport { storage } from "@theholocron/storage-utils";
// Create a store (the namespace defaults to "theholocron")const store = storage.session.create("my-namespace");
// Register your app first: later writes go to the most recently registered appstore.registerApp("my-app");
// Write a value (a dot-separated key nests)store.sendTo("user.name", "Alice");
// Read it backstore.getFrom("user"); // { name: "Alice" }
// Read everything, remove one key, or clear it allstore.getAll();store.removeFrom("user");store.clear();This package uses the browser sessionStorage API. It degrades gracefully in environments where sessionStorage is unavailable.
The full API reference is generated from the package’s TSDoc comments.