Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

fumo:storage

Storage is a package-scoped JSON object:

import { storage } from "fumo:storage";

const position = storage.get("position", { x: 40, y: 60 });
storage.set("position", position);
storage.delete("old-value");

Methods return ordinary values, so using await is also valid.

Properties:

  • Keys contain 1–64 printable characters.
  • Values must be JSON-compatible.
  • The total package quota is 256 KiB.
  • Data is isolated under %APPDATA%\FumowareV2\script-data\<package-id>\storage.json.
  • set, delete, and clear only mutate memory during play.
  • Dirty storage flushes through an atomic replace during script reload, disable, or Fumoware unload.

No arbitrary path is accepted and safe storage never exposes filesystem handles.