LibraryActive

Plasmo Storage API

Browser extension storage utility that abstracts Chrome storage APIs with localStorage fallback and cross-context state sync.

Open source page

Field note

What it does

@plasmohq/storage abstracts persistent storage APIs for browser extensions with automatic fallback to localStorage. Enables state sync between extension pages, content scripts, background workers, and web pages. Includes SecureStorage for encrypted data and React hooks for streamlined state management.

Capabilities

Available capabilities

Tags

Tags

Ways to use it

Ways to use it

npm

typescript / @plasmohq/storage

Product features

Product features

Automatically copy data to localStorage

Customizing the storage area

React Hook API

Rendering AND persisting initial value

Rendering initial value WITHOUT persisting

Secure Storage

Storage

Storage API

Usage Examples

Watch and render a value

Watch (for state sync)

With a custom storage instance