1.3.0 • Published 5 months ago
dm-chat-embed-sandbox v1.3.0
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
- Import the chat component into your project:
import { ChatEmbed } from "dm-chat-embed";
- Add the
ChatEmbed
component to your application:
function App() {
return (
<div>
<h1>Welcome to My Website</h1>
<ChatEmbed />
</div>
);
}
- Configure the chat component (optional):
<ChatEmbed apiKey="####" />
Configuration Options
Prop | Type | Default Value | Description |
---|---|---|---|
apiKey | string | "" | Generated API key. |
Development Setup
- Clone the repository:
git clone https://github.com/your-username/dm-chat-embed.git
- Install dependencies:
npm install
or
yarn install
- Start the development server:
npm run dev
or
yarn dev
- 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
5 months ago
1.2.0
5 months ago
1.1.0
5 months ago
1.0.0
5 months ago
0.0.28
5 months ago
0.0.27
5 months ago
0.0.26
5 months ago
0.0.25
5 months ago
0.0.24
5 months ago
0.0.23
5 months ago
0.0.22
5 months ago
0.0.21
5 months ago
0.0.20
5 months ago
0.0.19
5 months ago
0.0.18
5 months ago
0.0.17
5 months ago
0.0.16
5 months ago
0.0.15
5 months ago
0.0.14
5 months ago
0.0.13
5 months ago
0.0.12
5 months ago
0.0.11
5 months ago
0.0.10
5 months ago
0.0.9
5 months ago
0.0.8
5 months ago
0.0.7
5 months ago
0.0.6
5 months ago
0.0.5
5 months ago
0.0.4
5 months ago
0.0.3
5 months ago
0.0.2
5 months ago
0.0.1
5 months ago
0.0.0
5 months ago