SuperIslandSuperIsland
API Reference

API Reference

Complete reference for all DynamicIsland global APIs available to extensions.

API Reference

Extensions run in an isolated JavaScriptCore context. The following globals are available:

GlobalDescription
DynamicIsland.islandControl island state (activate, dismiss, read state)
DynamicIsland.storePersistent key-value storage (extension-scoped)
DynamicIsland.settingsRead/write user-facing settings from settings.json
DynamicIsland.httpNetwork fetch API (requires network permission)
DynamicIsland.notificationsSend notifications (requires notifications permission)
DynamicIsland.systemRead system data (AI usage, recent notifications)
DynamicIsland.mascotControl the mascot companion
DynamicIsland.playFeedbackHaptic + audio feedback
DynamicIsland.openURLOpen a URL in the default browser
ViewDeclarative view builder
setTimeout, setInterval, etc.Standard timers
console.log, console.warn, console.errorLogging (appears in Extension Debug Log)

Sandbox

Extensions run in a restricted sandbox:

  • eval() is not available
  • Function() constructor is not available
  • Direct file system access is not available (use DynamicIsland.store for persistence)
  • Network access requires the "network" permission in manifest.json

TypeScript types

For editor autocompletion, install the type definitions:

npm install --save-dev @superisland/extension-types

Then add to tsconfig.json:

{
  "compilerOptions": {
    "types": ["@superisland/extension-types"]
  }
}

On this page