Not sure how many calories you have eaten today? Let AI build a calorie counter app for you.
It is just Gemini on the web (free). I do not write a single line of code.
Try the finished appThe code the AI wrote (full file)


What the app can do
- Set a daily calorie goal, and a ring shows how much you have eaten and how much is left
- 12 sample Thai foods: tap to add to breakfast, lunch, dinner or snacks
- Add your own food by typing a name and its calories
- If you go over the goal, the ring turns orange with a warning message
- Saved on your device, still there after you close and reopen it
There are only 3 things to do
- Open gemini.google.com, press the + button and choose Canvas
- Copy the prompt below, paste it, and send it (wait about 1 minute)
- Press Preview and it is ready to use
- Want an icon on your phone: see the special episode (iPhone: Safari → Share button → Add to Home Screen · Android: Chrome → ⋮ → Install app)
The calorie numbers in the clip and in the app are sample data the AI filled in. They are rough estimates, not medical or nutrition advice. AI can calculate wrongly.
The prompt
Please build a daily food calorie counter app, as a single-file web page that works on iPhone. - Set a daily calorie goal (default 1,800) and show a big progress ring with how many calories I have eaten and how many are left - A list of 12 sample Thai foods with calories, such as khao man gai, pad kra pao, som tam, tom yum goong, and banana - Tap a food to add it to a meal. I can choose breakfast, lunch, dinner or snack - I can add my own food by typing a name and its calories - If I go over the goal, the ring turns orange and shows a warning message - I can delete an entry I added by mistake, and the data is saved on the device so it is still there after closing and reopening - Thai language, large text, easy to read, soft colors