ed-widget
v1.49.0
Published
A flexible and lightweight EasyDesk chat widget for React apps and websites. Supports both React integration and CDN-based embedding for fast, real-time customer support.
Readme
EasyDesk Chat Widget
A lightweight, customizable chat widget for React.js applications and websites. Easily integrate real-time customer support via React or embed it directly using a CDN. Perfect for enhancing user engagement and streamlining support.
🚀 Features
- Simple JavaScript API for initializing the widget
- Auto-initialization via
data-*attributes - CDN and NPM support
- React-based rendering
- API key-based configuration
📦 Installation (NPM)
npm install ed-widgetUsage
import Widget from 'ed-widget';
<Widget apiKey="YOUR_API_KEY" />;🌐 Usage via CDN
Add the following script to your HTML page:
<script
id="ed-widget"
src="https://cdn.jsdelivr.net/npm/ed-widget/dist/ed-widget.js"
ed-key="YOUR_API_KEY"
></script>What happens:
- A
divwith the IDed-widgetwill be created (if not already present). - The widget will be auto-initialized using the API key provided in the
ed-keyattribute.
🛠 Development
Make sure you have React and ReactDOM available in your environment when developing locally.
📄 License
MIT
