Bridge APIHome

Prompt for AI assistants

Paste this into ChatGPT, Claude, Gemini or any coding assistant, then describe the tool you want. You'll get a single HTML file that works in a browser and as a Kapsula app with real alarms.

How to use

  1. Copy the prompt below and paste it into the chat.
  2. Add one line describing your tool: "A tea timer with 3/5 minute buttons", "A Pomodoro with a daily count", "A medication reminder at 9:00 and 21:00".
  3. Copy the resulting HTML into Kapsula: Add project → paste code → Run. Or save it as an .html file and pick it.

The prompt

Why the prompt matters

Assistants don't know Kapsula's bridge yet. The prompt teaches them the five things that make a page behave like an app: the sandbox rules, where state must live, how alarms are scheduled, the 16-alarm limit, and graceful fallback in a normal browser. Full details: bridge API reference.

Kapsula runs only code you add yourself. Nothing is sent to Kapsula's servers — there are none.