An open API service indexing awesome lists of open source software.

https://github.com/suapapa/relay-webchat

Relay web-chat between browser and local server.
https://github.com/suapapa/relay-webchat

go react webchat websoket widget

Last synced: 5 months ago
JSON representation

Relay web-chat between browser and local server.

Awesome Lists containing this project

README

          

## Relay-WebChat

![relay-webchat logo](_asset/relay-webchat_logo.webp)

이 프로젝트는 개인 사이트, homin.dev 의 웹쳇 위젯을 로컬 서버에서 호스팅 하기 위해
세 개의 컴포넌트로 구성되어 있습니다.

```
┌─────────────────┐ ┌─────────────┐ ┌─────────────┐
│ WebChat Widget │◀─rest─▶│ Relay │◀─ws─▶│ Processor │
│ (client) │ │ (cloud) │ │ (local AI) │
└─────────────────┘ └─────────────┘ └─────────────┘
```

## WebChat Widget

React로 작성되어 있는 웹쳇 위젯.

Build:
```sh
cd webchat-widget
npm install
npm run build
```

웹페이지에 추가하기:
1. `dist/webchat-widget.umd.js`를 적당한 곳에 호스팅.
2. `dist/index.html` 파일을 참고해 웹쳇 위젯을 추가할 페이지에 다음의 예제와 같이 추가.

```html