page-todo
A Chrome MV3 extension that pins a TODO list to whichever page you're on. Each URL has its own list; the toolbar badge shows how many items are open for the active tab.
Try the storage logic without installing
The same todos.js module that drives the extension also runs here against
an in-page mock storage. Type a fake URL and a TODO to see what the extension would store.
No TODOs yet for this URL.
Storage state (raw chrome.storage.local shape)
What's interesting under the hood
- URL key normalises away
?queryand#hashso tracking params don't fork the list. - Empty lists are pruned from storage so
chrome.storage.localstays tight. - Toolbar badge updates on tab activation, URL change, and storage write — three triggers, all handled in the service worker.
- Storage logic is dependency-injected, so the same module is used both in the extension and in 21 Node tests with an in-memory mock.