Skip to content

Demo

A fully interactive demo application is included in the demo/ directory. It covers every feature of the package in a tabbed interface — no build step required.

bash
git clone https://github.com/macrulezru/vue-storage-kit.git
cd vue-storage-kit
npm install
npm run demo

Opens http://localhost:5173 automatically.

TabWhat it shows
🗄️ localStorage / sessionuseLocalStorage, useSessionStorage, defineStorageKey, useStorageKeys
⏱️ TTL & expiryLive countdown, onExpire callback, remove()
🔄 Schema migrationsSeed v1 / v2 data, reload — migration chain runs automatically
🔐 EncryptionAES-GCM write/read, raw base64 in storage vs decrypted value
📡 Tab syncuseBroadcastChannel cross-tab chat + useStorage with sync: true (open two tabs)
💾 IndexedDBuseIDBRef reactive note + useIndexedDB CRUD table
🍪 CookiesuseCookie with JSON object and string, shows raw document.cookie
📋 Storage listuseStorageList as a persistent to-do app
🔧 UtilitiesgetStorageQuota bar, exportStorage / importStorage / clearStorage
📦 Pinia persistcreatePiniaPersist global plugin, shows raw persisted state
🗜️ Compressioncompress / decompress with size ratio, CompressAdapter