How sakamuriajithsai09-png/jarvis-ai-assistant works
JARVIS is a browser-based personal AI assistant: signed-in users chat by text or voice, receive Gemini responses, and can manage conversation history, saved memory, settings, tools, automation, and system status. The main chat route coordinates authentication, speech input, AI requests, and local/cloud chat synchronization; the server handles chat requests and the AI handler loads private memory before calling Gemini. The README describes broader planned capabilities, but the sampled code does not establish tool execution or automation behavior. Edges reflect excerpts, source-index references, or README claims; unsampled route internals are represented conservatively.
Main entry points: index.tsx Chat Dashboard · routeTree.gen.ts Route Registry · Shell.tsx Navigation Shell · jarvis-ai.ts Chat Handler
Components 24
Assistant UI
- Route Registry
src/routeTree.gen.ts - Navigation Shell
src/components/jarvis/Shell.tsx - AI Orb
src/components/jarvis/Orb.tsx
User Features
- Chat Dashboard
src/routes/index.tsx - Voice I/O
src/lib/voice.ts - Conversation History
src/routes/history.tsx - Memory Manager
src/routes/memory.tsx - Assistant Settings
src/routes/settings.tsx - Connected Tools
src/routes/tools.tsx - Automation Center
src/routes/automation.tsx - System Status
src/routes/status.tsx
Identity & Data
- Local Cache
src/lib/jarvis-store.ts - Authentication
src/lib/supabase/auth.ts - Browser Supabase Client
src/lib/supabase/client.ts - Cloud Sync
src/lib/supabase/cloud-sync.ts - Cloud Data Access
src/lib/supabase/cloud.ts - Server Supabase Client
src/lib/supabase/server.ts
AI Services
- Request Server
src/server.ts - Chat Handler
src/lib/ai/jarvis-ai.ts - Gemini Edge Function
supabase/functions/jarvis-chat/index.ts - Gemini Client
supabase/functions/_shared/gemini.ts
Other components
- User
- Supabase
- Gemini API
Connections 41
- User → Route Registry: opens app
src/routeTree.gen.ts - Route Registry → Chat Dashboard: routes to
src/routeTree.gen.ts - Route Registry → Conversation History: routes to
src/routeTree.gen.ts - Route Registry → Memory Manager: routes to
src/routeTree.gen.ts - Route Registry → Assistant Settings: routes to
src/routeTree.gen.ts - Route Registry → Connected Tools: routes to
src/routeTree.gen.ts - Route Registry → Automation Center: routes to
src/routeTree.gen.ts - Route Registry → System Status: routes to
src/routeTree.gen.ts - User → Navigation Shell: navigates
src/components/jarvis/Shell.tsx - Chat Dashboard → Navigation Shell: renders
src/routes/index.tsx - Chat Dashboard → AI Orb: renders
src/routes/index.tsx - Chat Dashboard → Authentication: checks session
src/routes/index.tsx - Chat Dashboard → Voice I/O: captures speech
src/routes/index.tsx - Voice I/O → Chat Dashboard: submits transcript
src/routes/index.tsx - Chat Dashboard → Chat Handler: requests reply
src/routes/index.tsx - Chat Dashboard → Local Cache: stores chat
src/routes/index.tsx - Chat Dashboard → Cloud Sync: syncs chat
src/routes/index.tsx - Conversation History → Navigation Shell: renders
src/routes/history.tsx - Conversation History → Local Cache: uses cache
src/routes/history.tsx - Conversation History → Cloud Data Access: loads cloud data
src/routes/history.tsx - Memory Manager → Navigation Shell: renders
src/routes/memory.tsx - Memory Manager → Local Cache: uses cache
src/routes/memory.tsx - Memory Manager → Cloud Data Access: manages memories
src/routes/memory.tsx - Assistant Settings → Navigation Shell: renders
src/routes/settings.tsx - Assistant Settings → Local Cache: uses settings
src/routes/settings.tsx - Assistant Settings → Voice I/O: configures voice
src/routes/settings.tsx - System Status → Navigation Shell: renders
src/routes/status.tsx - System Status → Chat Handler: checks AI service
src/routes/status.tsx - Cloud Sync → Local Cache: merges cache
src/lib/supabase/cloud-sync.ts - Cloud Sync → Authentication: gets identity
src/lib/supabase/cloud-sync.ts - Cloud Sync → Cloud Data Access: uses cloud access
src/lib/supabase/cloud-sync.ts - Cloud Data Access → Server Supabase Client: creates client
src/lib/supabase/cloud.ts - Authentication → Server Supabase Client: creates client
src/lib/supabase/auth.ts - Server Supabase Client → Supabase: authenticates
src/lib/supabase/server.ts - Browser Supabase Client → Supabase: connects
src/lib/supabase/client.ts - Request Server → Chat Handler: dispatches chat
src/server.ts - Chat Handler → Supabase: loads private memory
src/lib/ai/jarvis-ai.ts - Chat Handler → Gemini API: requests generation
src/lib/ai/jarvis-ai.ts - Gemini Edge Function → Gemini Client: uses client
supabase/functions/jarvis-chat/index.ts - Gemini Edge Function → Gemini API: requests generation
- Chat Dashboard → Gemini Edge Function: may invoke