0.0.8 • Published 3 months ago
@servu-ai/servu-chat v0.0.8
Servu Widget
A React-based chat widget component for embedding AI-powered customer service capabilities into any website. Built with React, TypeScript, and Vite.
Features
- Lightweight embeddable chat widget
- Real-time AI-powered conversations
- Customizable appearance to match your brand
- TypeScript for type safety and better developer experience
- Vite for fast development and optimized builds
Installation
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
Usage
Import and use the widget in your application:
import { ServuChat } from '@servu-ai/servu-chat'
function App() {
return (
<ServuChat
butlerId="YOUR_BUTLER_ID"
/>
)
}
src/ ├── core/ # Core logic shared across implementations ├── react/ │ └── index.js # React implementation ├── vue/ │ └── index.js # Vue implementation ├── svelte/ │ └── index.js # Svelte implementation ├── vanilla/ │ └── index.js # Vanilla JS implementation └── index.js # Main entry point