Giter Site home page Giter Site logo

semasaf / chatbot-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from onepointconsulting/chatbot-ui

0.0 0.0 0.0 668 KB

Very simple chatbot UI that communicates via websockets with a server

Shell 0.11% JavaScript 6.06% TypeScript 87.89% CSS 4.01% HTML 0.79% Batchfile 1.14%

chatbot-ui's Introduction

Chatbot UI

The chatbot UI is intended to be a small chatbot user interface which can be used to interact with chatbots.

It uses wwebsockets for communication with a back end.

Demo

You can find a demo here:

http://176.34.128.143:8082/index.html

Installation

Make sure you have node 18+ installed.

Then run:

npm install

Husky pre-commit hook

Please run this command to install the pre-commit hook

npx husky install

to install the libraries.

Running

Please run the following command to start the UI in development mode

yarn run dev

Websocket API

Incoming messages

Name Description Optional
"connect" Fired when the connection to the server is established
"disconnect" Fired when the connection to the server is stopped
"connect_error" Fired when there is a connection error Yes
"connect_failed" Fired when the connection fails Yes
"server_message" Fired when a new token is sent from the server No
"stopstreaming" Fired when there is an error No

Outgoing messages

Name Description Optional
"client_message" Fired when the connection from the user is received
"stop_stream" Fired when the clients decided that it wants to stop the stream

chatbot-ui's People

Contributors

onepointconsulting avatar jafarimurtaza avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.