# cdl-ruby-chat

> UI for Ruby Chat Bot

Latest version **0.0.57** (published 2024-04-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install cdl-ruby-chat
pnpm add cdl-ruby-chat
yarn add cdl-ruby-chat
bun add cdl-ruby-chat
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; large bundle; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.57 |
| Published | 2024-04-01 |
| First published | 2023-11-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 31.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Pavle Cvejovic |
| Maintainers | pavle99 |

## Links

- npm: https://www.npmjs.com/package/cdl-ruby-chat
- npm.io page: https://npm.io/package/cdl-ruby-chat

## Dependencies (1)

- [re-resizable](https://npm.io/package/re-resizable.md) ^6.9.11

## Recent versions

- 0.0.57 (latest) — 2024-04-01
- 0.0.56 — 2024-04-01
- 0.0.55 — 2024-04-01
- 0.0.54 — 2024-04-01
- 0.0.53 — 2024-03-25
- 0.0.52 — 2024-03-25
- 0.0.51 — 2024-03-22
- 0.0.50 — 2024-03-14
- 0.0.49 — 2024-03-14
- 0.0.47 — 2024-03-14
- 0.0.46 — 2024-03-01
- 0.0.45 — 2024-02-28
- 0.0.44 — 2024-02-14
- 0.0.43 — 2024-02-14
- 0.0.42 — 2024-02-14
- … 36 more at https://npm.io/package/cdl-ruby-chat/versions

## README

# CDL ruby chat

## Description

Chat component for the Ruby chatbot.

## Usage

First, you need to install the `@tanstack/react-query` package:

```bash
npm install @tanstack/react-query
```

Then, wrap your app with the `QueryClientProvider` and pass it a `QueryClient` instance:

```jsx
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";

const queryClient = new QueryClient();

export default function App() {
  return (
    <QueryClientProvider client={queryClient}>
      <YourApp />
    </QueryClientProvider>
  );
}
```

Finally, you can use the component anywhere in your app:

```jsx
import Chat from "cdl-ruby-chat";

export default function YourApp() {
  return <Chat />;
}
```

## Props

- `user`: Currently logged in user. If the user is not logged in, you will only be able to send 5 messages per day.
- `loginUser`: A function that receives data that has the `user` object as well as the `accessToken` and sets them inside `localStorage`.

---
_Source: https://npm.io/package/cdl-ruby-chat · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
