Browser Web APIs Quick Reference

Search browser global APIs — fetch, Storage, IndexedDB, Workers, Canvas and more

Searchable quick reference of browser Web APIs grouped by category — networking, storage, DOM, observers, workers, media, and device. Each entry summarises what the global does, its key entry point, and a usage note.

What is the difference between localStorage and IndexedDB?

localStorage is a simple synchronous key-value store limited to about 5 MB of strings, ideal for small flags and preferences. IndexedDB is an asynchronous transactional database that stores large structured data and binary blobs, suited to offline apps and caches. Use localStorage for tiny values and IndexedDB for real data.

The browser exposes hundreds of global APIs and remembering which object is the entry point for a given task is half the battle. This quick reference groups the Web APIs you reach for most — networking, storage, DOM, observers, workers, media, and device — with the global name, its purpose, and a usage note.

How it works

Each entry names a browser global (a constructor like IntersectionObserver, a namespace like navigator.geolocation, or a function like fetch) and places it in a category:

  • Networkingfetch, WebSocket, EventSource, XMLHttpRequest.
  • StoragelocalStorage, sessionStorage, indexedDB, caches, Cookie Store.
  • DOM & eventsdocument, CustomEvent, MutationObserver.
  • ObserversIntersectionObserver, ResizeObserver, PerformanceObserver.
  • WorkersWorker, SharedWorker, ServiceWorker.
  • Media & graphics — Canvas, WebGL, Web Audio, getUserMedia.
  • Device & misc — Geolocation, Clipboard, Notifications, Web Crypto.

Notes and tips

Mind the secure-context rule: Service Workers, Geolocation, Clipboard, Web Crypto’s SubtleCrypto, and getUserMedia only work on HTTPS or localhost. Prefer the asynchronous, non-blocking APIs — fetch over XMLHttpRequest, IntersectionObserver/ResizeObserver over scroll/resize listeners, and a Web Worker for any CPU-heavy task — so the main thread stays responsive.