KapsulaAll examplesРусский

JAVASCRIPT + HTML · ANDROID & IPHONE

Your pace. Your progress.

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

What Kapsula adds

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.

Try it on your phone

  1. Install Kapsula from Google Play / App Store.
  2. Download the HTML or .js above, tap Add project and select the file. When pasting, choose the matching format: HTML or JavaScript (.js).
  3. Tap Run. Try the actions and reopen the project to check its saved state.

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.

9:41▂▄▆ ▰

Interactive web preview. Native notifications are tested in Kapsula.

Ask AI to write your own version

Your code defines the design

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 →

Format and compatibility

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