How abhishekkryadav12/chat_bot works
Astra AI is a browser-based chatbot backed by an Express API and OpenRouter. Users manage conversations and compose messages in the frontend; the frontend sends message history to the API, which validates it, requests a model response, and returns the reply for display. The frontend also supports conversation search, feedback, regeneration, copy, and theme settings, with browser-local persistence. The README documents no further capabilities; frontend excerpts are partial, so internal wiring beyond the visible interactions is omitted.
Main entry points: server.js Express API · script.js Chat interface · index.html App page
Components 6
Browser app
- Chat interface
ai-chatbot/public/script.js - App page
ai-chatbot/public/index.html
API service
- Express API
ai-chatbot/server.js
AI provider
- OpenRouter API
Other components
- Chat user
- Browser storage
Connections 7
- Chat user → Chat interface: interacts with
- Chat interface → Browser storage: reads and writes
- Chat interface → Express API: posts messages
- Express API → OpenRouter API: requests completion
- OpenRouter API → Express API: returns completion
- Express API → Chat interface: returns reply
- Express API → App page: serves page