How dimassdwiiorg/qwertybot works
qwertybot is a multimodal conversational assistant: users create or reopen a session, submit text and attachments, and receive streamed Gemini responses that are retained in session history. The React client also supports audio recording/playback, speech, artifacts, exports, themes, and session search; the Express backend exposes chat, session, quota, and owner-control routes. The graph preserves these documented capabilities, while source excerpts and the index provide stronger evidence for selected server and client calls. Several UI-to-UI render relationships and unsampled integrations are therefore omitted.
Main entry points: index.ts Express routes · chatController.ts Chat handler · App.tsx Chat application · geminiService.ts Gemini service
Components 25
Client experience
- Chat application
client/src/App.tsx - API URL helper
client/src/utils/api.ts - Chat feed
client/src/components/ChatFeed.tsx - Message input
client/src/components/MessageInput.tsx - Audio recorder
client/src/hooks/useAudioRecorder.ts - Audio player
client/src/components/AudioPlayer.tsx - Text-to-speech
client/src/hooks/useTextToSpeech.ts - Artifact preview
client/src/components/ArtifactModal.tsx - Session sidebar
client/src/components/Sidebar.tsx - Conversation export
client/src/utils/exportUtils.ts - VPS access modal
client/src/components/VpsAuthModal.tsx
Conversation services
- Express routes
server/src/index.ts - Chat handler
server/src/controllers/chatController.ts - Gemini service
server/src/services/geminiService.ts - Web search
server/src/services/searchService.ts
Session and quota
- Session handler
server/src/controllers/sessionController.ts - Session store
server/src/services/sessionStore.ts - SQLite database
server/src/services/db.ts - Quota handler
server/src/controllers/quotaController.ts - Quota service
server/src/services/quotaService.ts
Owner controls
- Admin handler
server/src/controllers/adminController.ts - Admin service
server/src/services/adminService.ts - Runtime configuration
server/src/config.ts
Other components
- User
- DuckDuckGo
Connections 28
- User → Chat application: uses
README.md - Chat application → API URL helper: formats API paths
client/src/App.tsx - Chat application → Express routes: requests chat and sessions
client/src/App.tsx - Express routes → Chat handler: routes chat
server/src/index.ts - Express routes → Session handler: routes sessions
server/src/index.ts - Express routes → Quota handler: routes quota
server/src/index.ts - Express routes → Admin handler: routes admin
server/src/index.ts - Chat handler → Gemini service: requests response
server/src/controllers/chatController.ts - Chat handler → Session store: reads and saves messages
server/src/controllers/chatController.ts - Chat handler → Quota service: consumes quota
server/src/controllers/chatController.ts - Chat handler → Quota handler: resolves identity
server/src/controllers/chatController.ts - Gemini service → Web search: invokes tools
server/src/services/geminiService.ts - Web search → DuckDuckGo: fetches search results
server/src/services/searchService.ts - Session handler → Session store: manages sessions
server/src/controllers/sessionController.ts - Session store → SQLite database: persists sessions
server/src/services/sessionStore.ts - Quota handler → Quota service: reads quota
server/src/controllers/quotaController.ts - Quota service → SQLite database: reads and writes usage
server/src/services/quotaService.ts - Admin handler → Admin service: verifies and executes
server/src/controllers/adminController.ts - Admin handler → Runtime configuration: checks owner settings
server/src/controllers/adminController.ts - Gemini service → Admin service: uses owner operations
server/src/services/geminiService.ts - VPS access modal → API URL helper: uses API paths
client/src/utils/api.ts - User → Message input: enters text and files
README.md - Message input → Audio recorder: records voice notes
client/src/components/MessageInput.tsx - Chat feed → Text-to-speech: speaks responses
client/src/components/ChatFeed.tsx - User → Audio player: plays voice notes
README.md - User → Artifact preview: previews generated code
README.md - User → Session sidebar: searches session history
README.md - User → Conversation export: exports conversations
README.md