Memorio DevTools
🖥️ Browser Only: This feature is only available in browser console
Browser console debugging tools for inspecting and managing Memorio state.
Quick Start
// Load memorio first
import 'memorio'
Available Methods
inspect()
Inspect all Memorio modules in the console.
memorio.devtools.inspect()
stats()
Get statistics about all modules.
memorio.devtools.stats()
// Returns: { stateKeys, storeKeys, sessionKeys, cacheKeys, idbDatabases, lastUpdate }
clear(module)
Clear data from a specific module.
memorio.devtools.clear('state')
memorio.devtools.clear('store')
memorio.devtools.clear('session')
memorio.devtools.clear('cache')
clearAll()
Clear all Memorio data.
memorio.devtools.clearAll()
watch(module, path)
Watch a specific path for changes.
memorio.devtools.watch('state', 'user.name')
exportData()
Export all data as JSON.
const json = memorio.devtools.exportData()
console.log(json)
importData(jsonString)
Import data from JSON.
memorio.devtools.importData('{"state":{"key":"value"}}')
help()
Show help information.
memorio.devtools.help()
Console Shortcuts
Memorio provides global shortcuts for quick access:
$state // globalThis.state
$store // globalThis.store
$session // globalThis.session
$cache // globalThis.cache
Examples
Inspect current state
memorio.devtools.inspect()
Export and restore state
// Export
const backup = memorio.devtools.exportData()
// Later... import
memorio.devtools.importData(backup)
Monitor changes
// Watch a specific path
memorio.devtools.watch('state', 'counter')
// Now changes will be logged to console
state.counter = 42 // Console shows: 👁 Change: state.counter = 42
Disclaimer
All content on this website, including text and images, has been generated using artificial intelligence technologies. While every effort is made to ensure quality and coherence, I do not assume responsibility for any inaccuracies, errors, or interpretations resulting from the use of this material.
Copyright and Intellectual property
All content on this website is copyrighted. Any copying, reproduction, distribution, or use of materials in any form is strictly forbidden without prior written permission. Violations will be subject to legal action in accordance with copyright law. We appreciate your understanding and compliance.
All content on this website, including text and images, has been generated using artificial intelligence technologies. While every effort is made to ensure quality and coherence, I do not assume responsibility for any inaccuracies, errors, or interpretations resulting from the use of this material.
Copyright and Intellectual property
All content on this website is copyrighted. Any copying, reproduction, distribution, or use of materials in any form is strictly forbidden without prior written permission. Violations will be subject to legal action in accordance with copyright law. We appreciate your understanding and compliance.