Package Manager
Install via npm or any compatible package manager:CDN / Script Tag
For sites without a build system, load the widget directly from a CDN:VIZOCHOKWidget constructor.
Bundle Size
| Build | File | Size |
|---|---|---|
| ESM | vizochok-widget.esm.js | ~11 KB gzip |
| UMD | vizochok-widget.umd.js | ~12 KB gzip |
<style> element at mount time.
TypeScript Support
The package ships with full TypeScript declarations (dist/types.d.ts). All public interfaces are exported:
@types/ package is needed.
Browser Compatibility
The widget uses standard Web APIs and is compatible with all modern browsers:| Browser | Minimum Version |
|---|---|
| Chrome | 63+ |
| Firefox | 67+ |
| Safari | 13.1+ |
| Edge | 79+ |
| Mobile Safari | 13.4+ |
| Chrome Android | 63+ |
The widget relies on Shadow DOM v1 for CSS isolation and WebSocket for real-time communication. Internet Explorer is not supported.
Module Formats
The package provides two build outputs:- ESM (
vizochok-widget.esm.js) — for modern bundlers (Vite, Webpack 5, Rollup, esbuild). Referenced via themodulefield inpackage.json. - UMD (
vizochok-widget.umd.js) — for script tags and legacy bundlers. Referenced via themainfield inpackage.json.
Next Steps
Configuration
Learn about all available config options
Quick Start
Get a working widget in 5 minutes