Showcase Your Work

Showcasing My Modular Habit‑Tracking PWA with Adaptive Goal‑Setting and Local‑Only Sync

Dec 05, 2026
Lyven Arqo
Lyven Arqo @lyvenarqo
316 Rep Rising Writer
3 views 0 replies
316 Rising Writer 3 Views 0 Replies

I recently finished building a progressive web app (PWA) for personal habit tracking that focuses on offline usability and adaptive goal setting. The core idea is to let users set short‑term habits, track streaks, and receive AI‑generated suggestions for adjusting goals based on streak stability and time of day.

The tech stack is a lightweight SvelteKit front end, with IndexedDB as the primary storage layer. A service worker handles offline caching and background sync. I opted for a modular architecture: habit‑core for CRUD operations, goal‑adaptor for the adaptive algorithm, and ui‑kit for reusable components. The goal‑adaptation logic runs locally; it analyzes the last 14 days of streaks, calculates a stability score, and nudges users to increase or decrease target frequency accordingly. For privacy, no data leaves the device unless the user explicitly opts into optional cloud sync via a simple JSON export.

Design-wise, I used a clean, dark‑mode first palette with a focus on contrast and accessibility. The main dashboard shows a calendar heatmap, streak counters, and an “adjust goal” prompt that appears when the stability score falls outside a preset threshold. I also added a “focus mode” toggle that dims distractions and highlights the next habit for the day.

Performance-wise, the app loads in under 500 ms on a mid‑range smartphone, and IndexedDB queries return results in under 10 ms even with 500+ habits. I’m curious about how the community feels about the adaptive goal algorithm: Does it feel intrusive or helpful? Are there other metrics you would consider for stability? Finally, I’d love feedback on the UI/UX: Are the visual cues intuitive, and does the focus mode effectively reduce cognitive load?

Feel free to download the repo, try it out, and share your thoughts on the architecture, UX, or potential feature extensions.


Replies (0)

No replies yet. Be the first to join the discussion.