How akhil9944/ai-personal-assistant---chrome-extension works
Personal AI Assistant is a Chrome side-panel chat that captures a browser tab or desktop, sends the prompt and image to a FastAPI service, streams a grounded Gemini response, and persists conversation history in Supabase. The graph follows the documented and excerpted request path; README-described features such as model selection, Markdown rendering, and session history are retained. Backend and extension source excerpts provide call evidence; external service relationships are also documented in the README.
Main entry points: App.jsx Side panel app · chat.py Chat and session routes · api.js Backend client · screenCapture.js Capture engine
Components 13
Screen capture
- Capture engine
extension/src/services/screenCapture.js
Chrome assistant
- Side panel app
extension/src/App.jsx - Screenshot preview
extension/src/components/ScreenPreview.jsx - Chat renderer
extension/src/components/ChatMessage.jsx - Backend client
extension/src/services/api.js
API and orchestration
- FastAPI entry point
backend/app/main.py - Chat and session routes
backend/app/api/chat.py
Vision reasoning
- Gemini stream service
backend/app/services/gemini_service.py
Conversation storage
- Supabase operations
backend/app/db/supabase_client.py
Other components
- User
- Browser or desktop screen
- Google Gemini
- Supabase PostgreSQL
Connections 15
- User → Side panel app: asks questions
README.md - Browser or desktop screen → Capture engine: provides pixels
README.md - Side panel app → Capture engine: requests capture
extension/src/App.jsx - Capture engine → Side panel app: returns screenshot
extension/src/App.jsx - Side panel app → Screenshot preview: renders attachment
extension/src/App.jsx - Side panel app → Chat renderer: renders messages
extension/src/App.jsx - Side panel app → Backend client: sends prompt
extension/src/App.jsx - Backend client → FastAPI entry point: checks health
extension/src/services/api.js - Backend client → Chat and session routes: posts chat
README.md - FastAPI entry point → Chat and session routes: mounts routes
backend/app/main.py - Chat and session routes → Gemini stream service: streams request
backend/app/api/chat.py - Gemini stream service → Google Gemini: requests vision stream
README.md - Chat and session routes → Supabase operations: saves and reads history
backend/app/api/chat.py - Supabase operations → Supabase PostgreSQL: queries tables
README.md - Chat and session routes → Backend client: streams response
README.md