1.3.0 • Published 11 months ago

dm-chat-embed-sandbox v1.3.0

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

Chat Embed

A lightweight, embeddable chat component built with Vite, React, TypeScript, Zustand, React Query, Tailwind CSS, and Axios. This package allows you to easily integrate a chat interface into any website.

Features

  • Real-time chat interface
  • State management with Zustand
  • Data fetching with React Query
  • Styling with Tailwind CSS
  • HTTP requests with Axios
  • Type-safe with TypeScript

Installation

To install the package, run:

npm install dm-chat-embed

or

yarn add dm-chat-embed

Usage

  1. Import the chat component into your project:
import { ChatEmbed } from "dm-chat-embed";
  1. Add the ChatEmbed component to your application:
function App() {
  return (
    <div>
      <h1>Welcome to My Website</h1>
      <ChatEmbed />
    </div>
  );
}
  1. Configure the chat component (optional):
<ChatEmbed apiKey="####" />

Configuration Options

PropTypeDefault ValueDescription
apiKeystring""Generated API key.

Development Setup

  1. Clone the repository:
git clone https://github.com/your-username/dm-chat-embed.git
  1. Install dependencies:
npm install

or

yarn install
  1. Start the development server:
npm run dev

or

yarn dev
  1. Build the project:
npm run build

or

yarn build

Technologies Used

  • Vite: Fast build tool for modern web development.
  • React: JavaScript library for building user interfaces.
  • TypeScript: Adds static typing to JavaScript.
  • Zustand: Lightweight state management library.
  • React Query: Data fetching and caching library.
  • Tailwind CSS: Utility-first CSS framework.
  • Axios: Promise-based HTTP client.
1.3.0

11 months ago

1.2.0

11 months ago

1.1.0

11 months ago

1.0.0

11 months ago

0.0.28

11 months ago

0.0.27

11 months ago

0.0.26

11 months ago

0.0.25

11 months ago

0.0.24

11 months ago

0.0.23

11 months ago

0.0.22

11 months ago

0.0.21

11 months ago

0.0.20

11 months ago

0.0.19

11 months ago

0.0.18

11 months ago

0.0.17

11 months ago

0.0.16

11 months ago

0.0.15

11 months ago

0.0.14

11 months ago

0.0.13

11 months ago

0.0.12

11 months ago

0.0.11

11 months ago

0.0.10

11 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago

0.0.0

11 months ago