Airglow SDKOpen SDK beta docs
Extension-owned runtimeOpen SDK beta
Open SDK betaOpen SDK beta

Airglow SDK

The contract SDK beta builders use: app contexts, runtime boundaries, SDK APIs, server RPC, permissions, and local debugging.

What This Is

Airglow SDK is the private browser runtime contract for Airglow apps. The SDK is injected by the extension into sandboxed app contexts; app code never imports or ships its own SDK runtime.

DecisionBeta contract
DistributionPublic dev-kit, docs, examples, and TypeScript declarations for SDK beta builders.
Runtime ownerThe extension owns and injects globalThis.airglow into userscripts, startup, and UI contexts.
SDK versionairglow.sdkVersion is 0.1.0-beta.1 for the open SDK beta contract.
Server roleThe hosted app server serves manifests, app artifacts, settings, health/version endpoints, and RPC functions.
Developer promiseSDK beta builders can rely on the documented airglow.* API, app anatomy, local workflow, and compatibility notes.

Runtime Contexts

ContextRuns wherePurposeSDK transport
UserscriptThird-party page, USER_SCRIPT worldDOM automation, page UI injection, data extractionchrome.runtime.sendMessage
StartupOffscreen sandbox iframeOne-time platform registration such as redirects or iframe allowancespostMessage through the startup runner
UISandbox iframe inside extension app-shellReact SPA for workflows, settings, dashboards, and review UIspostMessage through app-shell
Server RPCNext.js serverless routeServer secrets, paid APIs, OAuth exchange, slow workNo SDK on the server

No `chrome.*` in app code

App code only uses airglow.*. Privileged browser APIs stay behind the extension message handler so the platform can enforce app identity and permissions.

SDK Beta Scope

  • The SDK runtime is injected by the Airglow extension; apps should not bundle their own copy.
  • The documented airglow.* surface is the API app developers should code against.
  • Docs, TypeScript declarations, and examples are part of the developer contract.
  • Local development may expose debug routes and verbose logs that are not part of the browser SDK API.