# personal-react-chat-ui

> A react based chat UI

Latest version **0.2.3** (published 2018-06-14) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install personal-react-chat-ui
pnpm add personal-react-chat-ui
yarn add personal-react-chat-ui
bun add personal-react-chat-ui
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2018-06-14 |
| First published | 2018-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 8 |
| Unpacked size | 3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | David Oberholzer |
| Maintainers | daveguy |

## Links

- npm: https://www.npmjs.com/package/personal-react-chat-ui
- Repository: https://github.com/DavidOberholzer/ReactChatUI
- Homepage: https://github.com/DavidOberholzer/ReactChatUI#readme
- Issues: https://github.com/DavidOberholzer/ReactChatUI/issues
- npm.io page: https://npm.io/package/personal-react-chat-ui

## Dependencies (8)

- [react](https://npm.io/package/react.md) ^16.2.0
- [redux](https://npm.io/package/redux.md) ^3.7.2
- [react-dom](https://npm.io/package/react-dom.md) ^16.2.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.0
- [react-redux](https://npm.io/package/react-redux.md) ^5.0.7
- [redux-router](https://npm.io/package/redux-router.md) ^2.1.2
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^4.2.2
- [react-addons-css-transition-group](https://npm.io/package/react-addons-css-transition-group.md) ^15.6.2

## Recent versions

- 0.2.3 (latest) — 2018-06-14
- 0.2.2 — 2018-06-14
- 0.2.1 — 2018-06-14
- 0.2.0 — 2018-06-14
- 0.1.0 — 2018-06-14

## README

# ReactChatUI

This is my React-Redux chat UI using WebSockets to talk to a websocket based Chat Engine. Mainly made to plugin with my Node-Chat-Engine, but can plugin to any simple chat engine you make that fits the mold.

## Setup

With yarn lets start:

`yarn install`

We have a couple of scripts that can be run to generate files you can use in your chat instance.

**yarn build:nwb:**
This will generate UMD files in the `/umd` directory for you to grab.

**yarn build:webpack**
This will generate a webpack bundle js and css file in src.

**yarn storybook**
This will start a storybook on port 9000, to view stories of react components being styled.

## Using in HTML

You can link to the UMD script generated and create an instance of the Chat UI to talk to a websocket based engine. Here is an example setup html file.

```
<head>
    <script src="react-chat-ui.js"></script>
    <link rel="stylesheet" href="react-chat-ui.css" />
</head>

<div id="chat-element"></div>

<script>
    var element = document.getElementById('chat-element');

    var reactWebChat = new ReactChatUI({
        url: 'ws://localhost:3000/chat',
        element: element,
        workflowID: 1
    });
</script>
```

## TODOs

*   Fix Styling and Color Scheme.
*   Messages come in smooth style transitions rather that instant.
*   Scroll to bottom of chat when new messages come in below.
*   User typed input. (When My Chat Engine includes it.)

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