API
Polyglot provides both client-side and server-side APIs for chat management and synchronization.
API Components
Sync API - Server REST endpoints for synchronization
Client API - Browser-based chat operations
Storage API - IndexedDB abstraction layer
Complete Reference - All APIs in one document
Quick Reference
Client Storage Operations
import { indexedDbStorage } from './src/services/indexedDbStorage';
// Basic operations
await indexedDbStorage.saveConversation(chat);
const chats = await indexedDbStorage.listConversations();
const chat = await indexedDbStorage.loadConversation(id);
await indexedDbStorage.deleteConversation(id);
Last updated