Rootless

Automate iOS, iPadOS, and macOS using plain JavaScript. Build custom widgets and interact directly with native APIs.

Download on the App Store
Rootless app interface

Plain JavaScript

Supports ES6. Scripts are stored as plain .js files on your disk.

Native APIs & Documentation

Integrate directly with iOS native APIs. Fully documented, available offline.

Siri Shortcuts

Trigger scripts via Siri. Present tables, websites, and custom HTML natively.

System Integration

Run from the Share Sheet, process inputs, and manage local files via Files.app.

x-callback-url

Communicate seamlessly and trigger workflows with other apps on your device.

Customizable & Ready

Tailor the code editor to your liking. Includes several example scripts to start immediately.

Documentation

Also inside the app, or as rootless.json.

Alert

Ask a question, get an answer

Blocks until the person taps something, then returns the index of the action they chose, or -1 if dismissed. In-app only: a widget cannot present anything and the call fails at once. Check isAvailable.

Properties

isAvailableBoolean

False in a widget.

Methods

Alert.present(title, message?, actions?)Number

A modal alert. Actions default to ["OK"]. Returns the tapped index.

  • title String required
  • message String
  • actions [String]
Alert.sheet(title, message?, actions?)Number

The same as an action sheet. The last action is treated as the cancel one.

  • title String required
  • message String
  • actions [String]

Examples

Confirming

var choice = Alert.present("Delete?", "This cannot be undone.", ["Delete", "Cancel"]);
if (choice === 0) { Storage.delete("draft"); }