IndexedDB: A NoSQL Database in Your Browser

Think of IndexedDB as a NoSQL database in the browser, built for large structured data that localStorage can't handle. It's ideal for offline apps or caching large assets. The footgun: browsers can evict your data, so it's not permanent storage.
IndexedDB is a low-level API for a client-side, object-oriented database. Think of it as a NoSQL database in the browser, for storing large structured data, files, and blobs that overwhelm simple key-value stores like localStorage. It's the foundation for offline-first applications, enabling complex data queries without a network connection, and is also used for caching large assets. The main footgun is that browsers can evict your data when storage limits are reached, so don't treat it as guaranteed permanent storage.
Read the original → developer.mozilla.org
- #web apis
- #storage
- #offline-first
- #database
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.