1.3.0 • Published 6 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
6 months ago
1.2.0
6 months ago
1.1.0
6 months ago
1.0.0
6 months ago
0.0.28
6 months ago
0.0.27
6 months ago
0.0.26
6 months ago
0.0.25
6 months ago
0.0.24
6 months ago
0.0.23
6 months ago
0.0.22
6 months ago
0.0.21
6 months ago
0.0.20
6 months ago
0.0.19
6 months ago
0.0.18
6 months ago
0.0.17
6 months ago
0.0.16
6 months ago
0.0.15
6 months ago
0.0.14
6 months ago
0.0.13
6 months ago
0.0.12
6 months ago
0.0.11
6 months ago
0.0.10
6 months ago
0.0.9
6 months ago
0.0.8
6 months ago
0.0.7
6 months ago
0.0.6
6 months ago
0.0.5
6 months ago
0.0.4
6 months ago
0.0.3
6 months ago
0.0.2
6 months ago
0.0.1
6 months ago
0.0.0
6 months ago