Build a Weekly Habit Tracker Grid with Streak Counts in One HTML File
Generates a single-file weekly habit tracker where you tap day cells to check off habits, watch streaks and completion percentages update live, and copy a plain-text summary.
You getone complete HTML file in a single code block, then 3 short ideas to extend it.
The prompt
Act as a senior front-end developer who builds clean, accessible single-file tools.
Build Steady Week, a weekly habit tracker in one HTML file. Show a grid with one row per habit and seven day columns from Monday to Sunday. Each day cell is a button that toggles done or not done. Preload four realistic sample habits with some days checked, and let the user add and remove habits.
Rules:
1. Controls: tap or click a cell to toggle it. Arrow keys move focus between cells, and Space or Enter toggles. A text field plus an Add button (Enter also works) adds a habit, up to 12. Each row has a remove button. Include a Clear week button.
2. Stats: each row shows its current streak, counting back from today, and its week percentage with a small progress bar. A header shows overall completion, total check-ins and the top streak, all updating instantly.
3. Today's column is highlighted. Show each weekday's date number under its name.
4. Nothing is saved, so include a read-only plain-text weekly summary with a Copy summary button. If the clipboard is blocked, select the text and tell the user to press Ctrl+C.
5. Design: warm off-white background, one teal accent, system fonts, rounded cards and a clear type scale. Must fit 360-1280px, with the grid scrolling sideways on narrow screens.
6. Play a soft synthesized tick on toggle using the Web Audio API, started on first interaction, with a visible mute toggle. Respect prefers-reduced-motion. Use no external resources and no storage.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.Example output
Tips and common edits
Why this works
- Every cell is a real button with aria-pressed, so mouse, touch and keyboard all work with no extra wiring.
- The streak rule (count back from today, or from yesterday if today is open) is spelled out, so the numbers make sense.
- The copyable summary with a manual-copy fallback replaces storage, so the tool still works in sandboxed previews.
Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as steady-week.html and open it in any browser, or run it in the chat's preview or canvas panel. Copy your summary before you close the tab.
Common edits
- Change the accent color and sample habits to match a theme, such as fitness, study or sleep routines.
- Switch to a 14-day grid or add a weekly goal per habit (for example 5 of 7) and show a badge when it's met.
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
Keep exploring
More like this
Build a Keyboard-Friendly To-Do Checklist with Priorities and Filters in One HTML File
A ready-to-paste prompt that makes an AI build a single-file to-do checklist where you can add, reorder, prioritize, filter and export tasks as plain text, all with keyboard shortcuts.
Build a Pomodoro Focus Timer With SVG Progress Ring in One HTML File
A ready-to-paste prompt that builds a Pomodoro timer with focus, short and long break cycles, an SVG progress ring, a soft synthesized chime, keyboard shortcuts and a session counter.
Build an Instant Two-Way Unit Converter With Kitchen Measurements in HTML
A prompt that produces a single-file unit converter for length, weight, temperature, volume and cooking that updates both directions as you type, including cups-to-grams by ingredient.
Build a BMI and Daily Calorie Calculator with Metric and Imperial Units in HTML
A prompt that makes an AI build Steady Scale, a single-file BMI and calorie calculator using Mifflin-St Jeor, activity levels, unit switching and plain-language ranges.
Build a Countdown Timer to Any Date With a Confetti Finish in One HTML File
Get a polished single-file countdown page with a custom event title, a large days-hours-minutes-seconds display and a confetti-and-chime celebration at zero.
Build a HIIT and Tabata Interval Workout Timer in a Single HTML File
A self-contained interval timer with adjustable work, rest and rounds, color-coded phases, synthesized countdown beeps and a tap-anywhere pause, all in one HTML file.