The job: “Track a habit, workout or recipe routine on my phone without paying for an app or giving my data to one”
Turn a recipe, workout or habit idea into a simple tracking app on your phone
Describe what you want to track in a short note, have Claude build a small web app with big buttons, streaks and a backup screen, put it online for free and add it to your phone's home screen.
- Level Beginner
- Time 45-60 minutes
- Works with
- Claude Code
- Claude Desktop
- Claude.ai
On this page13 sections
You want to drink more water, stick to a workout plan or cook the same five healthy recipes each week. Most tracking apps want a subscription, an account, or both. This guide has Claude build your own small tracker from a one-page description. You put it online for free, add it to your phone’s home screen, and it opens like an app. Your entries stay on your phone.
We tested the main prompt with Claude Code on a made-up habit idea (water, a walk and reading). One run produced all six files. We then opened the app in a desktop browser set to phone size (not a real phone), tapped through it, reloaded the page, switched the network off and exported a backup. Everything worked on the first try.
What you’ll have at the end
- A small app on your home screen with your own icon. It opens to Today, with big buttons you can tap with your thumb.
- A streak for each thing you track, and a grid of the last four weeks.
- A Backup screen that saves all your data to a file, and loads it back.
- It still opens when you have no signal, after the first visit.
A web app is a web page that your phone can install like an app. The data lives in your phone’s browser storage (called localStorage), not on a server, so nobody else can see it.
What you need, and what it costs
| Item | Details |
|---|---|
| Claude | Claude Code (in a terminal or the Claude Desktop Code tab) needs a Pro, Max, Ultra, Team, Enterprise or Console account. The Free plan doesn’t include Claude Code. On any plan, including Free, you can use a normal chat instead (step 3b). |
| Netlify | A free account. The Free plan includes 300 credits a month, and each production deploy uses 15. That’s up to 20 updates a month if nothing else uses credits. If you reach the limit, Netlify pauses all your projects until next month unless you upgrade. A small app like this gets very little traffic. |
| A phone | An iPhone with Safari, or an Android phone with Chrome. |
Cost: building the app uses your Claude plan’s normal usage. Nothing else is paid.
Step 1: Write your idea down
Claude builds what you describe, so spend ten minutes here. Make a folder called habit-app and save a file in it called idea.md (on Windows, check that it isn’t saved as idea.md.txt). Here is the one we tested. Copy it and change it:
# My tracker idea
What I want to track: 3 daily habits
- Drink 8 glasses of water (count, goal 8)
- 20-minute walk (yes/no)
- Read 10 pages (yes/no)
Also: a short note for the day (optional), like "felt tired".
What I want to see:
- Today's checklist as the first screen, big buttons I can tap with my thumb
- My current streak for each habit
- The last 4 weeks as a simple grid (filled = done)
Style: calm, green, works in dark mode.
For each thing, say whether it’s a yes/no or a count with a goal. That one detail decides which buttons you get. For workouts and recipes, see “Make it yours” at the end.
Step 2: Open Claude Code in that folder
- Claude Desktop: click the Code tab. In the row under the prompt box, click the environment selector and pick the top entry in the Local group. Then click the folder control next to it, choose Open folder… and pick
habit-app. - Terminal: install Claude Code with
curl -fsSL https://claude.ai/install.sh | bash(macOS, Linux, WSL) orirm https://claude.ai/install.ps1 | iex(Windows PowerShell). Thencd habit-appand runclaude.
Claude asks before it runs commands or writes files. Read each request and approve it.
Step 3a: Build the app (Claude Code)
Paste this prompt. It is exactly the one we ran:
Read idea.md. Build a small tracking app from it that I can use on my phone. Put everything in a folder called app with these files:
- index.html: one self-contained page (inline CSS and JavaScript, no external libraries or fonts). Mobile first, big tap targets, works in light and dark mode. Today's screen first.
- manifest.webmanifest with name, short_name, start_url ".", display "standalone", theme_color, background_color, and icons at 192 and 512 pixels.
- icon-192.png, icon-512.png and apple-touch-icon.png (180 pixels): a simple icon you draw with a short Python script that uses only the standard library. Delete the script afterwards.
- sw.js: a small service worker that caches the app files so it opens without internet.
Save all data in the browser with localStorage under one key, as JSON with a version number. Add a Backup screen with "Export data" (downloads a .json file) and "Import data" (reads that file back, after asking me to confirm). Never send data anywhere.
Link the manifest and the apple-touch-icon in index.html and register sw.js.
When you're done, list the files, then tell me in plain English how each habit is tracked, and anything in my idea you couldn't do.
What the words mean:
- The manifest is a small file that tells the phone the app’s name, icon and colors. Chrome on Android needs it, with 192 and 512 pixel icons, to offer to install the app.
- The service worker (
sw.js) is a small script that saves a copy of the app on your phone, so it opens without signal. - “Self-contained” means the page doesn’t load anything from other websites. Nothing can break because some other site changed.
Our run took about a minute and a half. Claude also listed what it didn’t build: you can’t see old notes yet, and you can’t change a past day. Read that list. It’s your to-do list for step 7.
Step 3b: Build it in a chat instead (any plan)
No Claude Code? In claude.ai or the Claude Desktop chat, check that Code execution and file creation (called Create and edit files in the newer Settings layout) is on in Settings > Capabilities (on Team or Enterprise, an Owner controls it). Attach idea.md, paste the same prompt, and add one line at the end:
Put the app folder in a zip file I can download.
Download the zip and unzip it. You get the same app folder.
Step 4: Try it on your computer first
Opening index.html by double-clicking works for a quick look, but the service worker and install only work from a real web address. So test the buttons now, and test the install on your phone after step 5.
Built it in a chat (step 3b)? Skip this step and test on your phone after step 5. Otherwise, ask Claude Code:
Start a local web server for the app folder and tell me the address to open.
Open the address it gives you (something like http://localhost:8000). Tap a few buttons, reload the page and check that your taps are still there.
Step 5: Put it online with Netlify Drop
- Sign in to Netlify at
https://app.netlify.com/login(or create a free account). If you drop without signing in, the site is locked with a temporary password until you claim it. - Go to
https://app.netlify.com/drop. - Drag the
appfolder (the folder itself, not the files inside it) onto the drop zone. - You get an address ending in
netlify.app.
Make it public. On Netlify’s newer free plans, new projects can start private, which means only you can open them, after logging in to Netlify. Logging in from a home screen app is awkward, so make this one public: open the project and click Make public, or go to Project configuration > General > Visitor access > Project visibility.
Is public safe? The page itself is an empty tracker. Your entries are saved only in your phone’s browser, so someone who finds the address sees a blank app, not your data. Still, don’t put anything personal in idea.md or the page text, like your name or a medical goal.
Rename it (optional). In the project settings, change the project name to get a nicer address, such as sams-habits.netlify.app.
Step 6: Add it to your phone’s home screen
iPhone (Safari):
- Open your
netlify.appaddress in Safari. - Tap the Share button.
- Scroll down and tap Add to Home Screen. If it’s missing, tap Edit Actions at the bottom of the list and add it.
- If you see Open as Web App, keep it on, so it opens without the browser bars.
- Tap Add.
Android (Chrome):
- Open your address in Chrome.
- Tap the More menu (three dots) next to the address bar.
- Tap Install and create shortcut, then tap Install. On older Chrome versions the menu item may say Install app or Add to home screen.
Open the app from the new icon once while you have signal. After that, it opens offline too.
Use the icon, not the browser. On iPhone, the home screen app usually doesn’t share data with Safari tabs. Entries you make in a Safari tab may not show up in the home screen app, and the other way round.
Step 7: Change it whenever you like
Open Claude Code in the same folder (or, in a chat, attach your app files) and ask for changes in plain words. Some ideas from our test run’s to-do list:
Add a History screen that shows my daily notes, newest first.
Let me tap a day in the 4-week grid to change what I did that day.
When you change any app file, also change the cache name in sw.js (for example habits-v1 to habits-v2) so my phone picks up the new version.
Then update the site: open your project dashboard in Netlify and, under Production deploys, drag the updated app folder onto the drop area. Close and reopen the app on your phone. If you still see the old version, close and reopen it once more.
Export a backup before every update. Your data isn’t in the files you upload, so an update shouldn’t touch it. A backup costs ten seconds and protects you if something goes wrong.
What can go wrong
- The update doesn’t show up. The service worker serves the saved copy first. If Claude didn’t change the cache name in
sw.js, your phone keeps showing the old app. Ask Claude to bump it and deploy again. - Your data is gone. Data lives in that one browser on that one phone. Clearing Safari’s or Chrome’s website data or switching phones erases it, and removing the home screen app can too. Private browsing tabs forget everything when you close them. Safari can also delete a website’s stored data after seven days of Safari use without a visit. WebKit says apps added to the home screen count their own days of use, so open it from the icon. The fix for all of these: tap Export data once a week and keep the file in your cloud drive.
- No “Install” on Android. Chrome only offers it when the manifest has a name, a start address, a display mode and both icon sizes, and the page uses
https://. Netlify gives youhttps. Ask Claude to check the manifest against that list. - “Page not found” on Netlify. You probably dropped the files instead of the folder, or
index.htmlisn’t at the top of the folder. Drop theappfolder itself. - Someone asks to see it. Send them the address. They get their own empty copy, not yours.
- You want it on two devices. This version can’t sync. Export on one device and import on the other, or see the next section.
Make it yours
- Workout log: in
idea.md, list your exercises with sets, reps and weight as counts, and ask for “a chart of my best weight for each exercise over time” and a rest timer button. - Recipe rotation: list your recipes with a “cooked this week” yes/no and a rating from 1 to 5. Ask for a “what haven’t I cooked in a while” list and a shopping list for the recipes you tick.
- Reading or study streak: track minutes per day as a count with a goal, and ask for a weekly total.
- Nicer look: in Claude Code, the frontend design skill helps Claude make a less generic design. Ask for “a bolder, more playful style” and name two colors you like.
- Skip the drag and drop: the Netlify MCP server lets Claude Code deploy for you, so “make the change and deploy it” becomes one request.
- No hosting at all: artifacts in claude.ai can store data between sessions on Pro plans and up. Anthropic lists that for Claude on the web and Claude Desktop, not the phone apps, so we used a home screen app for a phone-first tracker.
Next steps
- Build an RSVP or booking page and put it online for free uses the same Netlify Drop steps, plus a form that emails you.
- Build and deploy a website with Netlify if you want your tracker on your own domain.
Sources
- code.claude.com/docs/en/setup (opens in a new tab)
- code.claude.com/docs/en/desktop-quickstart (opens in a new tab)
- support.claude.com/en/articles/12111783-create-and-edit-files-with-claude (opens in a new tab)
- support.claude.com/en/articles/17153992-what-are-artifacts-and-how-do-i-use-them (opens in a new tab)
- docs.netlify.com/start/quickstarts/netlify-drop-quickstart/ (opens in a new tab)
- docs.netlify.com/manage/security/secure-access-to-sites/project-visibility/ (opens in a new tab)
- netlify.com/pricing/ (opens in a new tab)
- support.apple.com/guide/iphone/bookmark-a-website-iph42ab2f3a7/ios (opens in a new tab)
- support.google.com/chrome/answer/9658361?hl=en&co=GENIE.Platform%3DAndroid (opens in a new tab)
- webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/ (opens in a new tab)
- developer.mozilla.org/en-US/docs/Web/API/Window/localStorage (opens in a new tab)
- developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest (opens in a new tab)
- developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Guides/Making_PWAs_installable (opens in a new tab)
Related guides
Claude Design vs Figma MCP: which to use for UI work
Claude Design drafts screens for you; Figma MCP lets Claude read and edit your Figma files. Compare plans, limits and handoff, then use both in one workflow.
Beginner10 minutes to decide, about 30 minutes for the hands-on workflow
Deploy a website with Claude and Netlify (MCP, CLI or Drop)
Deploy a website with Claude: Claude Code builds it, Netlify MCP or CLI puts it online. Also Drop, Claude Design, free credits and making it public.
Beginner30-60 minutes
Restyle your site with a modern design using Claude's frontend design skill
Give an old-looking web page a modern look with Claude Code and Anthropic's frontend-design skill: a bento grid, bold type, automatic dark mode and one calm entrance animation that switches off for people who ask for less motion. Your text stays exactly the same.
Beginner30-45 minutes