JAVASCRIPT + HTML · ANDROID & IPHONE
I want to count workout sets and get an alert when rest is over.
Count completed sets, start a 30-second rest and stop it. The remaining time is calculated from a saved deadline, so reopening does not restart it.
Download the app · HTMLDownload · JavaScript (.js)Get the AI prompt
The Kapsula bridge schedules an OS notification and stores the deadline. Delivery and sound depend on notification permissions and device settings; JavaScript does not run continuously in the background.
No Kapsula account, developer membership or separate project build. Your projects need Pro: a 7-day trial, then a subscription or lifetime purchase. The built-in demo is free.
Interactive web preview. Native notifications are tested in Kapsula.
Ask your AI to add exercise names or change the rest duration. Keep cancellation, stored deadlines and error handling.
Open Update code in project settings: the saved source is already in the editor. Edit it and run the update for this project. If code fails, use Copy the error for your AI, then send the error and source to your assistant yourself.
JavaScript (.js) guide and prompt →
The JavaScript file and saved-source editor require Kapsula 0.4.0. The HTML version remains compatible with 0.3.0. Both formats use the same project data and API with no external dependencies. Update the existing project to keep its records; a new project has separate storage. The web preview demonstrates the UI and actions, not notification delivery on a locked phone. For the timer, check permissions and test a short alert on your device.
Bridge API · General prompt · Verified notification walkthrough · Privacy