repo_description: Simple and fast JSON database
repo_topics: database electron embeddable embedded-database javascript json localstorage lodash nodejs storage
code: import { LocalStoragePreset } from '../presets/browser.js'
  
  type Data = {
    messages: string[]
  }
  
  const defaultData: Data = { messages: [] }
  const db = LocalStoragePreset<Data>('db', defaultData)
  
  db.update(({ messages }) => messages.push('foo'))
  