How shanmukhasaireddy13/termchat-server works
Termchat is a terminal-and-web chat product backed by a cloud server, with image exchange and AI assistance; its package also exposes robotics, vision, and IoT scripts. The main workflow is CLI setup and configuration, terminal messaging over WebSockets, server-side broadcast/history, and web participation. Images are downloaded and rendered locally; AI queries can run from the CLI or chat. The README documents the web/server workflow and capabilities; some server dispatch details and the root-level duplicate code runner are not fully shown in the excerpts.
Main entry points: cli.py CLI Entry · client.py Chat Session · main.py Messaging Server · ai.py Client AI Adapter
Components 15
Terminal Client
- CLI Entry
termchat/cli.py - Preferences
termchat/config.py - Chat Session
termchat/client.py - Image Handling
termchat/viewer.py
Chat Server
- Web Interface
server/static/app.js - Messaging Server
server/main.py - Server AI Adapter
server/ai.py
AI Assistant
- Client AI Adapter
termchat/ai.py
Robotics and IoT
- Code Commands
termchat/codes/__main__.py - Script Runner
termchat/codes/runner.py - Robotics and Vision Scripts
termchat/codes/python - Root Script Runner
codes/runner.py
Other components
- Terminal User
- Web Users
- LLM Providers
Connections 15
- Terminal User → CLI Entry: starts session
README.md - CLI Entry → Preferences: loads preferences
termchat/cli.py - CLI Entry → Chat Session: starts client
termchat/cli.py - Chat Session → Messaging Server: exchanges messages
README.md - Web Users → Web Interface: uses chat
README.md - Web Interface → Messaging Server: exchanges messages
README.md - Messaging Server → Server AI Adapter: routes AI queries
server/main.py - Server AI Adapter → LLM Providers: requests completions
server/ai.py - CLI Entry → Client AI Adapter: runs one-shot queries
termchat/cli.py - Chat Session → Client AI Adapter: answers local queries
termchat/client.py - Client AI Adapter → LLM Providers: requests completions
termchat/ai.py - Chat Session → Image Handling: handles received images
termchat/client.py - Code Commands → Script Runner: dispatches commands
termchat/codes/__main__.py - CLI Entry → Script Runner: dispatches code commands
termchat/cli.py - Script Runner → Robotics and Vision Scripts: runs scripts
termchat/codes/runner.py