How nikhil-69/rag-chat works
RAG-CHAT is an always-on-top Electron interview assistant. The user signs in, configures interview context and assistant mode, then asks questions or captures a screenshot for AI analysis; the app also supports credit purchases and overlay controls. React coordinates the workflow, an API client connects to the separate backend, and Electron provides native window and capture capabilities. The excerpts do not show the full chat submission and screenshot handlers, so those links are grounded in README statements rather than inferred calls.
Main entry points: App.tsx Assistant workflow · main.js Window and IPC runtime · main.tsx React entry · preload.cjs IPC bridge
Components 14
Assistant interface
- React entry
src/main.tsx - Assistant workflow
src/App.tsx
Desktop capabilities
- IPC bridge
electron/preload.cjs - Window and IPC runtime
electron/main.js - Screenshot capture
electron/main.js
Backend services
- Backend API client
src/api.ts - Interview Helper backend
User preferences
- Settings panel
src/components/SettingsPanel.tsx - Settings persistence
src/settings.ts
App updates
- GitHub releases
- Update handling
electron/main.js
Other components
- Interview user
- Operating system
- System browser
Connections 16
- Interview user → React entry: opens app
README.md - React entry → Assistant workflow: renders
src/main.tsx - Assistant workflow → Backend API client: requests services
src/App.tsx - Backend API client → Interview Helper backend: calls API
src/api.ts - Assistant workflow → Interview Helper backend: sends chat and screenshots
README.md - Assistant workflow → Settings panel: shows settings
src/App.tsx - Assistant workflow → Settings persistence: loads and saves
src/App.tsx - Settings panel → Settings persistence: uses settings
src/components/SettingsPanel.tsx - Assistant workflow → IPC bridge: invokes desktop controls
src/App.tsx - IPC bridge → Window and IPC runtime: invokes IPC handlers
electron/preload.cjs - Window and IPC runtime → Screenshot capture: captures screen
electron/main.js - Screenshot capture → Operating system: uses capture APIs
electron/main.js - Window and IPC runtime → Operating system: registers global shortcut
- Assistant workflow → Update handling: requests and displays updates
- Update handling → GitHub releases: checks releases
electron/main.js - Assistant workflow → System browser: opens payment link