First-app spec ยท two-weekend MVP

Streakly: a simple daily habit tracker

Problem in one sentence: people start small habits like reading or drinking water, then lose track after about a week because nothing shows their progress.

Today

0 of 0 done
Tap a habit when you finish it.

๐Ÿ‘ฅ User stories

  1. As a busy student, I want to add a habit with an emoji and a daily goal, so that my list feels personal and realistic.
  2. As a user, I want to check off a habit in one tap, so that logging takes less than 5 seconds.
  3. As a user with a counted goal (8 glasses of water), I want each tap to add one, so that I can log through the day.
  4. As a user, I want to see my last 7 days as dots, so that I notice a streak and do not want to break it.
  5. As a user, I want a weekly completion rate and best streak, so that I know if I am improving.

๐Ÿ“ฑ Screens

ScreenWhat it showsActions
TodayProgress ring, habit list, 7-day dots, current streakTap to log; tap a finished habit to reset today
Add habitName, emoji grid, goal stepperValidate name, save, return to Today
StatsWeekly completion %, best streak, bar chart per dayRead only

๐Ÿ—‚๏ธ Data model

EntityFields (type)Notes
Habitid (string), name (string), emoji (string), goal (number), createdAt (date)goal = taps needed per day
LoghabitId (string), date (YYYY-MM-DD), count (number)Done when count โ‰ฅ goal

Streak = consecutive done days ending today (or yesterday if today is not done yet). Completion % = done habit-days รท total habit-days this week.

๐Ÿงฐ Tech-stack notes

  • Weekend 1: this prototype is plain HTML, CSS and JavaScript; data lives in a JavaScript array. Next, save it with localStorage (the browser's built-in storage) so it survives a refresh.
  • Weekend 2: make it installable as a PWA (a web app that can sit on your home screen) with a small manifest file; no backend needed.
  • Dates: store as YYYY-MM-DD strings to avoid time-zone bugs when comparing days.
  • Assumption: one person per device; accounts and sync are out of scope for this MVP.

โžก๏ธ Next steps

  • Use it yourself for 7 days before demo day and fix what annoys you.
  • Add an empty state message for first-time users (no habits yet).
  • Prepare a 2-minute demo: add "Read 10 pages", log it, show the streak and stats.

โ“ Questions to sharpen version 2

  1. Do you want reminders, and at a fixed time or a time per habit?
  2. Should a habit be able to skip days (for example weekdays only)?
  3. What should happen to a streak when you miss one day: reset, or one free "freeze" per week?

Want me to turn this into a Flutter or React Native starter with local storage already wired up?