Web Platform APIs & PWAs
Use the browser platform beyond the DOM: keep data on the device, move heavy work off the main thread, show live and streamed updates, and ship an installable app that keeps working offline.
4 objectives 6 steps about 135 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Choose between cookies, Web Storage, IndexedDB and the Cache API by capacity, persistence, synchronous or asynchronous access and exposure to scripts, and persist structured app data in IndexedDB.
- Move CPU-heavy work such as parsing or filtering a large dataset into a Web Worker with message passing, and show the gain in input responsiveness in a Performance trace.
- Deliver live and streamed data to the UI with polling, Server-Sent Events, WebSockets or a streamed fetch body (for example LLM output relayed by your own server so API keys never reach the browser), justifying the choice and handling reconnection and cancellation.
- Make an app installable and usable offline with a web app manifest and a service worker (lifecycle, update prompt, cache strategy chosen per request type), and state when a PWA falls short and a native, cross-platform or desktop app is warranted.
Lesson plan
6 steps, about 135 min · 5 of 5 lessons available so far
- Where Browser Data Lives: Cookies, Storage, IndexedDB and Caches Concept · 20 min
- Off the Main Thread with Web Workers Worked example · 20 min
- Live and Streamed Data: Polling, SSE, WebSockets and Streamed Fetch Worked example · 25 min
- Installable and Offline: Service Workers, Manifests and the Limits of PWAs Concept · 25 min
- Lab: An Offline-First Notes App with Live Updates Lab · 30 min
- Check: Pick the Platform API for the Job Knowledge check · 8 questions
Practise it
Make a notes app work offline and in real time: store notes in IndexedDB, precache public app-shell assets with an 'update available' prompt while keeping authenticated note responses out of shared service-worker caches, add a manifest so it installs, receive other sessions' edits over Server-Sent Events or a WebSocket with automatic reconnection, and parse large imports in a Web Worker; demonstrate it in DevTools with the network set to offline. Use synthetic private notes only; partition storage by account, clear or lock it on logout, and reauthorize queued writes after reconnect. Do not apply a shared service-worker cache strategy indiscriminately to authenticated responses.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- Build your own Browser GameIntro · 4–10 h
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.