How haffi24/181_chatbot works
This is a small browser-based chat bot: the user submits a message, the page retains conversation history and posts it to the Express endpoint, which requests a streamed completion from OpenRouter and relays tokens back for display. The browser also supports clearing the session and shows busy/error states. The README identifies the deployed chat site but documents no other product capabilities. The map is based on the sampled client and server sources; HTML and styling details were not inspected.
Main entry points: script.js Chat interaction · index.js Express app · index.html Chat page
Components 5
Chat interface
- Chat page
public/index.html - Chat interaction
public/script.js
Chat service
- Express app
index.js
Other components
- Chat user
- OpenRouter API
Connections 7
- Chat user → Chat page: opens
README.md - Chat page → Chat interaction: loads
- Chat user → Chat interaction: submits
public/script.js - Chat interaction → Express app: posts messages
public/script.js - Express app → OpenRouter API: requests completion
index.js - Express app → Chat interaction: streams tokens
index.js - Chat interaction → Chat user: renders reply
public/script.js