Introduction to IndexedDB
masterIndexedDB is a powerful, built-in browser database designed for offline applications. Unlike localStorage, it supports:
- Storing almost any kind of value (including complex objects) via keys.
- Multiple key types.
- Transactions for data reliability.
- Key range queries and indexes.
- Significantly larger data volumes.
The native interface is event-based. For modern async/await usage, it is recommended to use a promise-based wrapper like idb (available via https://cdn.jsdelivr.net/npm/idb@3.0.2/build/idb.min.js).