@llmrtc/llmrtc-web-client
v1.0.0
Published
Browser client SDK for @llmrtc/LLMRTC
Readme
@llmrtc/llmrtc-web-client
Browser SDK for LLMRTC - real-time voice and vision AI with WebRTC + LLMs.
Installation
npm install @llmrtc/llmrtc-web-clientFeatures
- WebRTC client for connecting to LLMRTC backend
- Microphone and camera capture
- Screen sharing support
- Event-driven API for transcripts, LLM responses, and audio
- Connection state management with auto-reconnect
Quick Start
import { LLMRTCWebClient } from '@llmrtc/llmrtc-web-client';
const client = new LLMRTCWebClient({
signallingUrl: 'ws://localhost:8787'
});
client.on('transcript', (text) => console.log('You said:', text));
client.on('llm', (response) => console.log('AI:', response));
await client.start();
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
await client.shareAudio(stream);Documentation
Full documentation: https://www.llmrtc.org
License
Apache-2.0
