Skip to content

qiangli/chatbot

Repository files navigation

AI Chatbot

AI Chatbot is a chat web app built with vite+react+nextjs to work with the AI Command Line Tool hub service.

Features

  • This app is implemented with Node.js/React but statically built. It can be deployed on any web/file server/CDN.
  • Communication with LLMs is via a simple request/response pattern which is supported by almost any wire protocols: Websocket, REST api, gRPC, ...
  • Currently, Websocket implementation is provided. AI Command Line Tool written in Golang serves as the backend.
  • Various user interfaces/wrappers are provided, more on the way...

Widget / Extension / Desktop App

Web Widget - Icon/Chatbox toggle

Wdiget UI image

Web UI - Full web page

Web UI image

Chrome Extension - Sidepanel V2

Sidepanel V2 UI

Chrome Extension - Sidepanel

Sidepanel UI

Chrome Extension - Toolbar button

Toolbar UI image

VSCode Extension - Sidebar view

Sidebar UI image

Electron Desktop App - Tray

Tray image

Tray UI image

Web Terminal

This is equivalent to running AI CLI in a native system terminal - a full shell with AI agent.

Terminal UI image

Install and Run

  • Install Node.js

  • Change to the component's subfolders and run:

# pnpm install
just install

# pnpm build
just build

# go run server/main.go
just start

Just is for convenience/consistency only. You can run the underlying commands directly.

AI Hub Service

Check out and build AI Command Line Tool

# ai --hub --hub-address ":58080" --hub-pg-address ":5432" --hub-mysql-address ":3306" --hub-redis-address ":6379" --agent ask --verbose

just hub

Chatbot UI

Chrome extension

> chrome://extensions/
> Load uppacked
> extension/chrome/side/panel

Miscellaneous UI Tools

Datastore client for Sqlite, PostgreSQL, and MySQL.

Redis client

These tools are compatible and could be used with official PostgresSQL/MySQL/Redis servers but are setup to access the embedded/in-memory backing stores for the AI Commandline Tool Hub services.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published