1.1.1 • Published 8 months ago

@andesphereai/vanilla v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@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/vanilla

Via 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

  1. Get your chatbot ID from your AndyChat dashboard
  2. Add the script to your website
  3. 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

1.1.1

8 months ago

1.1.0

8 months ago

1.0.2

8 months ago

1.0.0

8 months ago