How 4dith/jarvis works
JARVIS is a modular voice-and-gesture assistant with a Pygame desktop interface and a reusable FastAPI backend. The documented request flow captures speech, classifies intent and extracts parameters, then runs a backend skill or returns intent data for a client-side skill; responses are spoken aloud. The map includes the documented skill areas and experimental clients. Backend routing and the web-answer pipeline are visible in excerpts; some frontend and experimental-client behavior is represented only where the README documents it.
Main entry points: server.py FastAPI Request Handler · handler.py Web Answer Handler · client.py Backend Client · ui.py Pygame Interface
Components 23
Desktop Interaction
- Pygame Interface
pygame_frontend/ui.py - Gesture Tracking
pygame_frontend/hand_cursor.py - Gesture Detection
pygame_frontend/vision.py - Speech Input
pygame_frontend/speech.py - Backend Client
pygame_frontend/client.py - Speech Output
pygame_frontend/textToSpeech.py
Request Backend
- FastAPI Request Handler
backend/server.py - Intent and Parameters
backend/classifier.py
Assistant Skills
- Weather Skill
backend/weather.py - Club Knowledge Q&A
backend/llm.py - Quick Math
backend/classifier.py - Jokes
backend/classifier.py - Music Playback
pygame_frontend/clientFunctionalities.py
Web Question Answering
- Web Answer Handler
backend/core/handler.py - Web Search
backend/core/search.py - Page Fetching
backend/core/fetcher.py - Result Reranking
backend/core/rerank.py - Answer Summarization
backend/core/summarize.py
Experimental Clients
- Browser Agent Actions
AI_Browser_Agent/actions.py - Discord Client
discord-bot/bot.py
Other components
- User
- Ollama Service
- Weather Service
Connections 22
- User → Pygame Interface: interacts
README.md - User → Speech Input: speaks to
README.md - Pygame Interface → Gesture Tracking: updates cursor
pygame_frontend/ui.py - Pygame Interface → Gesture Detection: detects gesture
pygame_frontend/ui.py - Pygame Interface → Speech Input: listens through
pygame_frontend/ui.py - Speech Input → Backend Client: sends request
- Backend Client → FastAPI Request Handler: posts text
pygame_frontend/client.py - FastAPI Request Handler → Intent and Parameters: classifies and extracts
backend/server.py - FastAPI Request Handler → Weather Skill: routes weather
backend/server.py - FastAPI Request Handler → Club Knowledge Q&A: routes club Q&A
backend/server.py - FastAPI Request Handler → Web Answer Handler: routes general question
backend/server.py - FastAPI Request Handler → Backend Client: returns intent and parameters
README.md - Backend Client → Music Playback: plays song
pygame_frontend/client.py - Backend Client → Speech Output: speaks response
pygame_frontend/client.py - FastAPI Request Handler → Weather Service: requests forecast
- Club Knowledge Q&A → Ollama Service: requests completion
backend/llm.py - Web Answer Handler → Web Search: searches query
backend/core/handler.py - Web Answer Handler → Result Reranking: reranks snippets
backend/core/handler.py - Web Answer Handler → Page Fetching: fetches pages
backend/core/handler.py - Web Answer Handler → Answer Summarization: summarizes text
backend/core/handler.py - Browser Agent Actions → User: opens browser actions
- Discord Client → FastAPI Request Handler: uses backend
README.md