Skip to main content

Basic Usage

Use getForPlugin and setForPlugin to automatically namespace your keys:
This prevents key collisions between plugins without manual prefixing.

Common Patterns

Saving Element Positions

Saving Lists

Saving Settings with Defaults

Reacting to Storage Changes

Key Naming

When using plugin-scoped storage, you don’t need to prefix manually:
The core registry uses board-plugins-registry — avoid that key.

Manual Prefix Keys (Legacy)

If you prefer manual prefixing (the older pattern), it still works:

Storage Limits

localStorage has a ~5MB limit per origin. For larger data, consider:
  • Compressing before storing
  • Using IndexedDB
  • Storing only what’s needed