Overview
Web APIs and built-in lexmount modules available in the JavaScript runtime.
The runtime executes JavaScript in the cloud and provides web platform APIs including Fetch, Request, Response, Headers, and Streams. Code runs as an ES module with top-level await. Use global Web APIs directly or import built-in modules for network requests, data processing, and automation.
Built-in lexmount: modules extend the runtime with instance configuration, persistent storage, remote clients, and cloud browsers. The following pages document their interfaces, parameters, and return values:
- fetch: Make HTTP requests from the cloud and read response bodies and byte streams.
- lexmount:env: Read the immutable environment variables for this execution.
- lexmount:storage: Persist data across executions with IndexedDB, object storage, and KV storage.
- lexmount:remote: Use a client's files, processes, HTTP, and TCP capabilities, with configurable client permissions.
- lexmount:browser: Manage cloud browser sessions, navigate, interact, capture screenshots, and export PDFs.
Other global APIs include URLs, encoding, timers, WebCrypto, and WebSockets. See the execution environment for module support and task lifecycle, and Examples for complete scripts.
For local development, use jsd.d.ts, remote.d.ts, browser.d.ts, env.d.ts, binary.d.ts, and storage.d.ts. Keep all six declarations together and reference jsd.d.ts. Completion does not enable TypeScript submissions or add APIs to the runtime.
