IndexedDB
IndexedDB is a browser API for asynchronously storing and querying structured data in transactional, indexed client-side databases.
HTML5 in Action
IndexedDB is a browser API for storing and querying structured data in a client-side database.
- How it is used
- Uses IndexedDB to manage searchable task records on the client for an offline mobile application.
- How deep it goes
- Walks through feature detection, database connections, object stores, key-range queries, and task operations.
- Examples
- Builds a mobile task list with search, task editing and deletion, and separate display settings.
- What you can do after
- Apply it via the IndexedDB API to connect to a database and manage and query task records.
Vanilla Web
IndexedDB is a browser database API for storing and querying structured data, including data larger than typical web-storage values.
- How it is used
- Stores structured application data such as drafts, offline records, sync queues, and cached domain objects.
- How deep it goes
- Defines keys, stores, indexes, transactions, and versioned upgrades, then demonstrates database operations through native APIs and idb.
- Examples
- Uses saved drafts with a keyPath and demonstrates adding, updating, retrieving, counting, and deleting records.
- What you can do after
- Build it from scratch with native database opening and upgrade logic, or apply it through the idb Promise wrapper.
Also covered in
What to know first
- cookieAn HTTP cookie is a small piece of data stored by a client and sent with subsequent requests within its scope, often to maintain state or preferences.
- HTTPHTTP is an application-layer protocol that defines request-and-response communication for transferring resource representations and related metadata between networked systems.
- JavaScriptJavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
Related concepts
- websqlalternative to · Web SQL is a discontinued web standard that defined a browser API for storing and querying relational client-side databases with SQL.
- object storehas part · An object store is a storage system that persists and retrieves discrete data objects by identifiers or keys, often with associated metadata.
- Cache Storage APIcontrasts with · The Cache Storage API is a browser API for storing and retrieving named caches of network request and response objects.
- browser developer toolsused by · Browser developer tools are browser-integrated utilities for inspecting, debugging, testing, profiling, and analyzing web pages, applications, and browser-executed code.
- same-origin policyuses · The same-origin policy is a browser security mechanism that restricts how scripts and documents interact with resources from origins that differ in scheme, host, or port.
Questions about IndexedDB
What is IndexedDB?
IndexedDB is a browser API for asynchronously storing and querying structured data in transactional, indexed client-side databases.
Which Manning books explain IndexedDB?
HTML5 in Action and Vanilla Web.
What should I know before learning IndexedDB?
Manning books that teach IndexedDB usually introduce cookie, HTTP and JavaScript first.
What is the difference between IndexedDB and websql?
IndexedDB is a browser API for asynchronously storing and querying structured data in transactional, indexed client-side databases. Web SQL is a discontinued web standard that defined a browser API for storing and querying relational client-side databases with SQL.
What are the parts of IndexedDB?
IndexedDB includes object store.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

