Jotter is a progressive web app starter built around a complete, working app: notes that keep working without a connection. It shows the offline pieces working together in something you can use, not as isolated snippets.
A hand-written, fully commented service worker serves the app shell offline, caches built assets and keeps everything else fresh. When you deploy a new version, users see "A new version is ready" and reload when they choose. Notes are stored in IndexedDB behind a small NotesStore interface, so adding sync to your own backend means implementing one file. If the browser blocks storage, the app falls back to memory and says so instead of breaking. Edits save as you type, debounced, and are written immediately when the page is hidden or closed.
The app is installable, with a manifest, regular and maskable icons, theme colours and an Install button where the browser supports it. It shows online/offline status, follows the system's light or dark theme with measured contrast, and has a two-pane layout that becomes one pane on phones. It includes create, edit, pin, search and delete-with-undo, and comes with 13 Vitest tests.
Included: the complete project source (no node_modules), .env.example, tests and a README covering setup, testing offline mode, the caching strategy, storage and sync, icons, updates and deployment. Run npm install to start.