How mehreen-14/bhromor-chatbot works
Bhromor is a web chatbot: users send messages, the backend routes weather questions to a weather service and other questions to OpenRouter, then saves exchanges for chat history and search. The React app also supports starting and revisiting chats, dark mode, and message search. README capabilities are included where documented; source excerpts show the chat, history, and search routes, but not an implemented Google search-results flow or model use of prior turns.
Main entry points: App.js Chat and controls · server.js Chat route · index.js React entry
Components 10
Chat interface
- React entry
frontend/src/index.js - Chat and controls
frontend/src/App.js
Request handling
- Chat route
backend/server.js - History route
backend/server.js - Search route
backend/server.js
Chat persistence
- Chat records
backend/server.js
External services
- OpenRouter LLM
- WeatherAPI
- Google search script
Other components
- Chat user
Connections 12
- Chat user → React entry: opens app
frontend/src/index.js - React entry → Chat and controls: renders
frontend/src/index.js - Chat user → Chat and controls: uses controls
frontend/src/App.js - Chat and controls → Chat route: sends messages
frontend/src/App.js - Chat route → OpenRouter LLM: requests completion
backend/server.js - Chat route → WeatherAPI: requests forecast
backend/server.js - Chat route → Chat records: reads and writes
backend/server.js - Chat and controls → History route: loads chats
frontend/src/App.js - History route → Chat records: reads chats
backend/server.js - Chat and controls → Search route: searches messages
frontend/src/App.js - Search route → Chat records: queries chats
backend/server.js - Chat and controls → Google search script: loads script
frontend/src/App.js