16
Browser storage

Browser storage

The full storage stack — what each API guarantees, what it costs, and how to pick the one that won't bite you in six months.

~ 140 min·10 lessons·updated may 2026

What you'll learn


Lessons

Read in order. Each lesson stands on its own, but the order is deliberate.

10 lessons · ~130 min total

  1. 01
    The storage landscape
    Five APIs, one job — when each fits, in one diagram.
    12 min
  2. 02
    Cookies
    Anatomy, attributes, and the flags that aren't optional.
    14 min
  3. 03
    localStorage and sessionStorage
    Sync, scope, quotas, and the JSON dance.
    13 min
  4. 04
    Why IndexedDB exists
    What localStorage can't do — and when you cross the line.
    13 min
  5. 05
    Working with IndexedDB
    Transactions, schemas, and the promise wrapper that hides the worst of it.
    16 min
  6. 06
    The Cache API
    Request/response storage — the service worker companion.
    13 min
  7. 07
    Quotas and eviction
    How much you actually get, and when the browser takes it back.
    12 min
  8. 08
    Storage and privacy
    Partitioning, third-party cookies, and what 'persistent' really buys.
    14 min
  9. 09
    Choosing the right tool
    A decision tree for the next thing you're tempted to put in localStorage.
    11 min
  10. 10
    Debugging storage
    DevTools Application panel — what each row is telling you.
    12 min

Prerequisites

  • · Comfortable with modern JavaScript
  • · Have used fetch and worked with the browser DevTools

After this, try