The browser-local (localStorage) settings store: the defaults, load/save, and the
useSettings React hook. Prompt-knob names match the engine's settings; BYOK keys
live here too and never leave the browser except per-request.
- Description:
The browser-local (localStorage) settings store: the defaults, load/save, and the
useSettingsReact hook. Prompt-knob names match the engine's settings; BYOK keys live here too and never leave the browser except per-request.
- Source:
Members
(inner, constant) The :object
- Description:
default SPA settings (prompt knobs match the engine; image params are read by the providers).
- Source:
default SPA settings (prompt knobs match the engine; image params are read by the providers).
Type:
- object
Methods
(static) loadSettings() → {object}
Returns:
The settings from localStorage merged over the defaults.
- Type
- object
(static) saveSettings(settings) → {void}
- Description:
Persist settings to localStorage (best-effort; ignores quota / private-mode errors).
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
settings |
object | The settings to save. |
Returns:
- Type
- void
(static) useSettings() → {Array}
- Description:
React hook: settings state that auto-persists to localStorage on every change.
- Source:
Returns:
[settings, setSettings] — the state and its setter.
- Type
- Array