Storage tools
Choose between temporary in-memory storage and persistent browser storage without changing the rest of your app.
Try it in context: Read the guide.
import { Storage } from '@chaoticka/nsite-loopy-sdk';
What you can call (2)
indexedDbStore
Keep app records in the browser so they survive page reloads.
Call it as: Storage.indexedDbStore
For developers: TypeScript signature
function indexedDbStore(options?:{name?:string;store?:string;indexedDBProvider?:IDBFactory}):StorageAdapter;
Code location: src/storage/indexeddb.js
memoryStore
Keep app records temporarily in memory for simple or offline tests.
Call it as: Storage.memoryStore
For developers: TypeScript signature
function memoryStore(seed?:Record<string,unknown>):StorageAdapter;
Code location: src/storage/memory.js