npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

dori-chat-widget

v8.0.17

Published

Dori Chat Widget

Readme

Dori Chat Widget

Dori Chat Widget is a lightweight, highly customizable chat interface for integrating the Dori AI chatbot into any website. It provides a modern, responsive user experience with support for product displays, markdown, real-time streaming, and more. The widget is designed to be easy to install, configure, and extend, making it ideal for businesses, e-commerce, and support sites.

Table of Contents

Features

  • 🎨 Modern, responsive design – Looks great on all devices
  • 📱 Mobile-friendly – Touch-optimized UI
  • Markdown support – Rich text formatting in chat
  • 🔄 Real-time streaming – See bot responses as they're generated
  • 🎯 Suggested replies – Quick reply buttons for users
  • 🛍️ Product carousel – Showcase products directly in chat
  • 🌐 RTL language support – Perfect for Persian, Arabic, Hebrew, etc.
  • 🔌 Easy integration – Add to any website with a single script
  • Lightweight – Minimal impact on page load
  • 🛡️ Secure – No user data stored on client

Demo

Try a live demo at Dori.tech.

Installation

Add the widget to your website by including the script tag in your HTML:

<script src="https://unpkg.com/dori-chat-widget@latest/dist/script.js"></script>

Or, if you use npm/yarn:

npm install dori-chat-widget
# or
yarn add dori-chat-widget

Quick Start

You can use the widget in two ways:

1. Using a global variable

  1. Get your Sharing ID
    Sign up at Dori.tech and create your bot. Copy your unique Sharing ID from the dashboard.

  2. Initialize the Widget
    Add this to your HTML, before the widget script:

    <script>
      window.SHARING_ID = 'your-sharing-id';
    </script>
    <script src="https://unpkg.com/dori-chat-widget@latest/dist/script.js"></script>

2. Using the data-sharing-id attribute (recommended for HTML-only integration)

<script type="text/javascript" id="dori-chatbot-script" data-sharing-id="your-sharing-id" src="https://unpkg.com/dori-chat-widget@latest/dist/script.js"></script>
  1. Done!
    The chat widget will appear as a floating button in the bottom-right corner of your website.

Usage

  • Open the chat by clicking the floating button.
  • Type your message and press Enter or click Send.
  • Interact with suggested replies or product cards as provided by your bot.

Customization

The widget automatically adapts to your bot's configuration, including:

  • Bot avatar and name
  • Welcome message
  • Suggested replies
  • Product carousels
  • RTL/LTR layout
  • Custom text strings
  • Theme colors (primary, background, etc.)

All these settings are managed through your Dori dashboard.

⚠️ Note on Styling and Shadow DOM

This widget is rendered inside a Shadow DOM.

This means that global CSS styles and variables from your website will not affect the widget's appearance. To customize the look and feel, please use the configuration options available in your Dori dashboard. If you need additional customization, contact Dori support to request new features or theming options.

Configuration Options

The widget reads the following properties from your bot configuration:

| Property | Type | Description | |-----------------------|----------------|---------------------------------------------| | bot_image | string | URL of the bot's avatar image | | wellcomeMessage | string | Initial message displayed when chat opens | | suggestedReply | string/array | Pre-defined reply options | | texts.isRTL | boolean | Enable RTL layout | | texts.chatWithUs | string | Chat header text | | texts.inputPlaceholder | string | Input field placeholder | | texts.buttonText | string | Send button text | | texts.typing | string | Typing indicator text | | texts.error | string | Error message text | | currency | string | Currency symbol for product cards | | country | string | Country code for localization |

Advanced Integration

  • Programmatic Control:
    You can open/close the widget or send messages programmatically by calling methods on window.DoriChatWidget (see docs for details).

  • Custom Event Hooks:
    Listen for events such as onOpen, onClose, or onMessage for deeper integration.

  • Analytics:
    The widget can be integrated with analytics tools for tracking user engagement.

Contributing

We welcome contributions! Please open issues or pull requests on GitHub for bug reports, feature requests, or improvements.

License

MIT © Dori Tech


For more information, visit Dori.tech or contact [email protected].