Core Concepts
SDK
The core responsibilities and architecture of the @asiyst/sdk client library. Overview The Asiyst Web SDK (@asiyst/sdk) is the official client library that...
On this page (3 sections)
Overview
The Asiyst Web SDK (@asiyst/sdk) is the official client library that runs inside your end-users' browsers. It handles the complete lifecycle of rendering, event telemetry, audio, and user interactions.
SDK Responsibilities
- Rendering: Mounts an isolated Shadow DOM container to prevent host website CSS style pollution.
- Networking: Maintains HTTP/2 SSE streaming and WebSocket transport with automatic reconnection.
- DOM Guidance: Highlights elements on the host webpage when requested by the assistant.
- Audio Synthesis: Handles text-to-speech audio playback with lip-synced avatar mouth movement.
Bundle Size & Performance
- Weight: Under 28 KB gzipped.
- Zero Render Blocking: Loads asynchronously without affecting Google Lighthouse Core Web Vitals (LCP/FID/CLS).
- Tree-Shakable: Built using modern ES modules with comprehensive TypeScript definitions.
Explore the complete Web SDK Guide.