# IndexedDB Resources

## Knowledge

- [web.dev: Storage for the web](https://web.dev/articles/storage-for-the-web)
  Authoritative FE map: Cache API vs OPFS vs IndexedDB; why avoid localStorage/sessionStorage/cookies for bulk data; quotas, eviction, persistent storage. Use for: when-to-choose framing and storage spectrum.
- [MDN: IndexedDB API](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API)
  Browser-facing overview and API map. Use for: orientation and links into guides.
- [MDN: Basic concepts behind IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Basic_Concepts_Behind_IndexedDB)
  Databases, object stores, keys, indexes, transactions, same-origin. Use for: core mental model before coding.
- [MDN: Using IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Using_IndexedDB)
  Practical open/upgrade/CRUD walkthrough (event-based native API). Use for: implementation details.
- [web.dev: Work with IndexedDB](https://web.dev/articles/indexeddb)
  Promise-oriented walkthrough via `idb`; terms (store, index, transaction, cursor) and versioning. Use for: second pass after the storage spectrum.
- [W3C: Indexed Database API 3.0](https://www.w3.org/TR/IndexedDB/)
  Normative API. Use for: any claim about exact behavior when MDN/web.dev disagree or are vague.
- [MDN: Browser storage limits and eviction criteria](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Browser_storage_limits_and_eviction_criteria)
  Per-browser quota and eviction notes. Use for: design-review “will this stick?” questions.
- [web.dev: Best practices for using IndexedDB](https://web.dev/articles/indexeddb-best-practices)
  Performance and reliability patterns. Use for: later deal-breaker / integration lessons.
- [jakearchibald/idb](https://github.com/jakearchibald/idb)
  Small promise wrapper over IndexedDB. Use for: ergonomics note when the event API is the pain, not the storage choice.

## Wisdom (Communities)

- [Stack Overflow — [indexeddb]](https://stackoverflow.com/questions/tagged/indexeddb)
  High volume of versionchange, transaction lifetime, and Safari/quota edge cases. Use for: production-ish failure modes — verify against MDN/spec.
- [r/webdev](https://www.reddit.com/r/webdev/) and [r/PWA](https://www.reddit.com/r/PWA/)
  Product-context tradeoffs (offline, cache strategy, sync). Use for: second opinions; treat as anecdotes.
- [WebKit: Full Third-Party Cookie Blocking and More](https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/)
  Safari script-writable storage / 7-day eviction context. Use for: “assume durable forever” pushback on iOS Safari.

## Gaps

- No single canonical “client sync / multi-device conflict” book tied to IndexedDB; sync policy is product-specific. Teach principles, not one vendor recipe.
- Storage Buckets API is still evolving; mention later only if mission needs multi-tier eviction design.
