Change anything, then reload. The devtools on the right log every change.
localStorage is blocked here
This browser refused Web Storage, so the stores fall back to memory: the demos work, but a reload starts over.
A form that remembers
Each field is one key of one store: typing calls store.set('name', value). Reload the page and the values come back from localStorage, validated before they reach the form.
A chat whose draft survives
The transcript and the half-written message share one store. Each keystroke is one synchronous store.set('draft', value): reload mid-sentence and keep typing.
Sticky notes in localStorage
One store, { notes: [{ id, text }] }. Typing writes store.set('notes[0].text', value), deleting calls store.remove('notes[0]'). Nothing leaves this browser.
Your notes
0 notesNo notes yet
Add a note and write anything. Close the tab, come back tomorrow: it is still here, in this browser only.