@solarisdk/desktop
v0.2.11
Published
Solari Desktop — create managed virtual desktops and drive them with a computer-use action API.
Maintainers
Readme
@solarisdk/desktop
Create managed virtual desktops and drive them with a computer-use action API.
npm install @solarisdk/desktopimport { DesktopClient } from "@solarisdk/desktop";
// baseUrl defaults to https://api.getsolari.com
const desktops = new DesktopClient({ apiKey: process.env.SOLARI_API_KEY! });
const desktop = await desktops.create();
await desktop.connect(); // open the control channel
await desktop.mouse.click(640, 360);
await desktop.keyboard.type("example.com");
const shot = await desktop.screenshot(); // Uint8Array (PNG)
await desktop.kill(); // release itNeed sandboxes too, or a single unified client? Use
@solarisdk/sdk (exposes
solari.desktops and solari.sandboxes plus the solari CLI). For
ephemeral compute sandboxes on their own, use
@solarisdk/sandbox.
Capabilities and limits at a glance: https://docs.getsolari.com/sdk-capabilities.
Requirements
Node 18+ (or a browser with WebSocket and fetch). The type declarations need TypeScript 5.0 or newer; await using works in compiled TypeScript 5.2+ on Node 18.18+ (which provide Symbol.asyncDispose); running the syntax uncompiled needs Node 24.
License
MIT
