Overview
BVector Chat is a lightweight JavaScript SDK that embeds an AI-powered chat widget into any web application. It connects directly to your BVector instance for semantic search and retrieval.
What is BVector Chat?
BVector Chat is the UI layer of the BVector platform. It ships as a single npm package — @bangdb/web-sdk — and mounts a fully self-contained chat interface into your page via Shadow DOM. No CSS conflicts, no style leakage, and a single destroy() call to clean up.
Under the hood it talks to your BVector instance over its REST API, performs vector similarity search against your indexes, and streams responses back to the user. All you provide is your API key, connection URLs, and an optional theme.
Features
Shadow DOM isolation
Widget styles never leak into your app
TypeScript
Full type exports for all interfaces
Theme customization
16 CSS color tokens for complete UI control
PDF export
Export chat history and data as PDF
Math / LaTeX
KaTeX rendering for mathematical formulas
Markdown
Full markdown rendering via markdown-it
Charts
ECharts integration for data visualizations
CDN delivery
Zero-build integration via jsDelivr CDN