Examples

Made with AI.
Made for your phone.

Your ideas, your code, your little tools. Ask AI for one HTML, JavaScript (.js) or TypeScript (.ts) file, then run it in Kapsula on Android or iPhone. Local storage, vibration and scheduled notifications through the Kapsula bridge. No Kapsula account or separate project build.

Android & iOS · 7-day free trial · no account · no cloud · works offline · 13 languages

9:41▂▄▆ ▰

Interactive web preview. Native notifications are tested in Kapsula.

What would you like to make?

Ready-made personal tools: try one, download the code or ask AI to write your own version.

Explore the examples →

How it works

1

Get the code

Ask ChatGPT or Claude for a self-contained HTML tool or a standalone JavaScript/TypeScript script. Or write it yourself. Use the ready-made prompt.

2

Drop it into Kapsula

Paste the code, pick the file, or give a URL. It becomes a project in your list — with its own name, storage and notification channel.

3

It behaves like an app

Your HTML can request OS notifications with kapsula.notify.schedule(), including while the screen is locked. Delivery and sound depend on permissions and device settings. Android force-stop can prevent delivery.

What your code gets

Exact alarms

kapsula.notify.schedule()
OS scheduling; permissions and device settings apply.

Storage

kapsula.storage.get/set
Per project, stays after you update the code.

Sound & vibration

kapsula.sound.play() · kapsula.haptics

A sandbox, not your phone

Code runs isolated. It only gets what the bridge gives it — nothing else on the device.

The same file works in a browser and in Kapsula:

// alarm in 25 minutes — the OS remembers it, not the page
if (window.kapsula) {
  await kapsula.notify.schedule({
    at: Date.now() + 25*60*1000,
    title: 'Break time',
    body: 'Stand up, look away from the screen'
  });
}

Full bridge API reference →

Why not just a browser tab

Guides

Run a JavaScript (.js) tool on Android or iPhone →

Try a complete example: from an AI prompt to a focus timer on your phone →

Status

Kapsula 0.5.0 is released on Google Play and the App Store: import HTML or .js, edit saved source without clearing project data, and copy code errors for your AI. Update the app to use the new features. Questions — hello@kapsula.app. Standalone TypeScript (.ts) is supported: offline conversion, without full type checking or dependencies.

The built-in demo is free. Running your own projects needs Kapsula Pro: a 7-day free trial, then a monthly subscription, or a one-time lifetime purchase. Prices are shown in the app.

Run TypeScript on your phone → · Run JavaScript on your phone →

FAQ

How do I run an HTML file as an app on Android or iPhone?
Install Kapsula, tap “Add project”, then paste the code, pick the .html file or enter a URL. The page opens as a project with its own storage and alarms.
Can I run a JavaScript file without writing HTML?
Yes, in Kapsula 0.5.0. Choose JavaScript (.js) when pasting code, or select a .js file. Kapsula provides an #app element for your UI and displays console output. React projects, npm imports and Python are not supported. Standalone TypeScript (.ts) is supported: offline conversion, without full type checking or dependencies.
Can a web page set an alarm that fires when the app is closed?
Your HTML can request OS notifications with kapsula.notify.schedule(), including while the screen is locked. Delivery and sound depend on permissions and device settings. Android force-stop can prevent delivery.
Android or iPhone?
Both. Kapsula is on Google Play and the App Store, and the same HTML file works on either.
Do you see my code or my data?
No. There is no Kapsula server. Everything stays on your phone — see the privacy policy.
Can it run any HTML?
Single-file pages work best. The page runs in a sandbox, so requests to outside servers are blocked for now.
Is it free?
The app and its built-in demo are free. Your own projects need Kapsula Pro: 7 days free, then a low monthly subscription, or a one-time lifetime purchase. Nothing is deleted if Pro ends — your projects are locked until you come back.