How sarthakdhabale2006-dev/chatbot-app works
Local AI Chat is a chat interface with conversation management, configurable backend/model settings, streaming responses, and export controls. The main workflow is user prompt → frontend request → inference service → streamed or complete reply. The repository also contains a standalone vanilla-JavaScript interface alongside the React interface, a TypeScript API gateway with optional Gemini fallback, and a Python FastAPI backend that forwards chat requests to local Ollama. The React excerpt is partial, so its request wiring is shown as unverified; no README was provided.
Main entry points: server.ts Express API · App.tsx React chat UI · script.js Vanilla chat UI · main.py FastAPI chat API
Components 10
React Chat
- React chat UI
src/App.tsx - Settings and export
src/App.tsx - Browser settings
Standalone Chat
- Vanilla chat UI
frontend/script.js - Browser chat storage
frontend/script.js
API Gateway
- Express API
server.ts
Python Backend
- FastAPI chat API
backend/main.py
Inference Services
- Local Ollama
- Google GenAI
Other components
- Chat user
Connections 11
- Chat user → React chat UI: sends prompts
src/App.tsx - React chat UI → Settings and export: opens controls
src/App.tsx - Settings and export → Browser settings: reads settings
- React chat UI → Express API: requests chat
- Chat user → Vanilla chat UI: sends prompts
frontend/script.js - Vanilla chat UI → Browser chat storage: persists chats
frontend/script.js - Vanilla chat UI → Express API: requests chat
- Express API → Local Ollama: probes and chats
server.ts - Express API → Google GenAI: generates fallback
server.ts - Express API → FastAPI chat API: probes health
server.ts - FastAPI chat API → Local Ollama: checks and chats
backend/main.py