@andesphereai/vanilla
v2.0.1
Published
AndyChat vanilla JavaScript widget - embeddable AI chatbot for any website
Maintainers
Readme
@andesphereai/vanilla
AndyChat vanilla JavaScript widget - embeddable AI chatbot for any website.
Overview
A lightweight, framework-agnostic chatbot widget that can be embedded into any website. Built with vanilla JavaScript and completely self-contained.
Installation
Via NPM
npm install @andesphereai/vanillaVia CDN (Recommended for most users)
<script src="https://unpkg.com/@andesphereai/vanilla@latest/dist/bundle.js"></script>
<script>
window.ANDY_CHATBOT_ID = 'your-chatbot-id'
</script>Quick Start
- Get your chatbot ID from your AndyChat dashboard
- Add the script to your website
- Set your chatbot ID via global variable
<!DOCTYPE html>
<html>
<head>
<title>Your Website</title>
</head>
<body>
<!-- Your website content -->
<!-- AndyChat Widget -->
<script>
window.ANDY_CHATBOT_ID = 'your-chatbot-id-here'
</script>
<script src="https://unpkg.com/@andesphereai/vanilla@latest/dist/bundle.js"></script>
</body>
</html>Configuration
Set global variables before loading the script:
// Required: Your chatbot ID
window.ANDY_CHATBOT_ID = 'your-chatbot-id'
// Optional: Custom API endpoint (defaults to production)
window.ANDY_CHAT_API_URL = 'https://your-api.com/api'Features
- 🎨 Fully customizable - Colors, logo, messages via dashboard
- 📱 Mobile responsive - Works on all devices
- 🚀 Lightweight - ~40KB minified bundle
- 🔒 Secure - Shadow DOM isolation, no style conflicts
- ⚡ Fast - Instant loading, minimal dependencies
Browser Support
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
License
MIT
