IndexedDB Storage
What's Included
- Free to download & use
- Open for personal & commercial use
Support The Creator
Use one-time or monthly support to thank the creator for this free product.
GrapesJS Compatible
Tested with GrapesJS 0.19.x, 0.20.x
Open Source on GitHub
Free to use, fork, and contribute
Editor Compatible
Designed for the GrapesJS open-source editor
Free to Use
Open for personal and commercial projects
GrapesJS saves to localStorage by default, which caps out at a few megabytes and stores everything as strings. Any project with embedded images hits that ceiling quickly. This plugin registers IndexedDB as a storage backend instead.
What it adds
A storage type called indexeddb, selected by setting storageManager: { type: 'indexeddb' } at init. From there the Storage Manager behaves exactly as before — the plugin only changes where the data lands.
Options
type— the id the storage registers under. Set it tolocalto replace the built-in localStorage backend outright, so existing code needs no change.options.key— the project key, defaulting togjsProject. Give each project its own key when several editors share a page, otherwise they overwrite one another.options.dbName— the IndexedDB database name, defaulting togjs.options.objectStoreName— the object store holding project data, defaulting toprojects.
Requirements
GrapesJS v0.19 or higher. Install as grapesjs-indexeddb. BSD-3-Clause.
Ratings:
No reviews yet. Be the first to share your experience.
Questions & Answers
No questions yet. Have something to ask?
Common problems this plugin can help fix
Real community questions on the same topic — see how others worked around them.
