Digital Sovereignty for everyone

LH idb-keyval

LH idb-keyval provides idb-keyval, Jake Archibald’s small promise-based key-value store built on IndexedDB, once for every plugin on a WordPress network. Plugins that keep data in the browser share one copy of the library instead of each loading their own.

  • Registers the library as the idb-keyval script module. A plugin lists it as a dependency of its own module and writes import { get, set } from 'idb-keyval';.
  • Ships a classic build for service workers, which cannot use import maps, at the URL LH_Idb_Keyval::get_umd_url() returns.
  • The plugin version is the library version.
  • No settings, no admin notices, nothing written to the debug log.

Plugins that use it don’t require it. Each bundles a fallback copy and the shared fallback snippet kept in this plugin, so it keeps working when LH idb-keyval is inactive, and Site Health reports which plugins are using their own copy.

If you like this plugin please consider making a donation to further development

Install LHero.org

lhero.org

Open it straight from your home screen, full screen and quicker to load.

  1. Tap the Share button . If you cannot see it, tap ••• first.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add.
  1. Tap the browser menu â‹®.
  2. Tap Install app or Add to Home screen.
  1. In the menu bar, choose File, then Add to Dock.

Use your browser's menu to install this site or add it to your home screen.