aletech-rag-chat-widget
v0.1.2
Published
A customizable React chat widget for RAG applications
Maintainers
Readme
Aletech RAG Chat Widget
Installation
npm install aletech-rag-chat-widgetUsage in Vanilla JavaScript
<script type="module">
import { ChatWidget } from 'https://unpkg.com/aletech-rag-chat-widget';
// Create and append the widget
const widget = new ChatWidget();
document.body.appendChild(widget);
</script>Usage in React
import { ChatWidget } from 'aletech-rag-chat-widget';
function App() {
return <ChatWidget />;
}Test Widget
A test-widget.html is provided to demonstrate basic usage:
- Open test-widget.html in a browser
- Verifies widget loads without dependencies
- Shows pure JavaScript integration
Development
npm run dev: Start development servernpm run build: Build for productionnpm publish: Publish to npm
License
MIT
