A lightweight TypeScript widget for embedding conversational AI functionality with all dependencies bundled for easy integration.
This package provides a simple way to integrate conversational AI widgets into web applications. It serves as a wrapper around @askbenny/convai-widget-core with all dependencies pre-bundled for convenient embedding.
npm install @askbenny/convai-widget-embed<!-- Include via CDN -->
<script src="https://unpkg.com/@askbenny/convai-widget-embed@latest/dist/index.js"></script>import "@askbenny/convai-widget-embed";The widget will automatically register itself when imported or loaded.
- Zero Configuration: Works out of the box with default settings
- Lightweight: Bundled with Vite for optimal performance
- TypeScript Support: Written in TypeScript with full type definitions
- CDN Ready: Available via unpkg for easy integration
- Node.js 16+
- pnpm (preferred package manager)
# Install dependencies
pnpm install
# Build the library
pnpm run build
# Run linting
pnpm run lintbuild- Build the library using Vitelint- Run all linting checks (TypeScript, ESLint, Prettier)lint:ts- TypeScript type checkinglint:es- ESLint code quality checkslint:prettier- Prettier formatting checks
The build process creates an IIFE (Immediately Invoked Function Expression) bundle at dist/index.js that can be easily embedded in any web page.
Part of the convai-widget-embed monorepo.
MIT © ElevenLabs