How mhdd4nish/kinetica works
Kinetica is a camera-based motor-skill game for children. Its main workflow streams webcam video from the browser through a Node/Mediasoup server to a Python pose-processing engine, then returns live actions to the React game for feedback and progress tracking. Completed sessions and parent PINs use a separate FastAPI service backed by SQLite. The README documents the cross-process media and data flows; some internal implementation details were not excerpted, so the graph avoids asserting unshown calls.
Main entry points: App.jsx Game application · main.py FastAPI service · server.js Mediasoup server · useMediasoup.js WebRTC client
Components 24
Game client
- Game application
client/src/App.jsx - Activity catalog
client/src/components/ActivityCatalog.jsx - Activity definitions
client/src/data/activities.js - Activity instructions
client/src/components/InstructionsScreen.jsx - Camera controls
client/src/components/Controls.jsx - Pose overlay
client/src/components/PoseCanvas.jsx - Game feedback
client/src/components/GameOverlay.jsx - Connection status
client/src/components/StatusBar.jsx - Activity targets
client/src/config/activityTargets.js - Parent dashboard
client/src/components/ParentDashboard.jsx
Media transport
- WebRTC client
client/src/hooks/useMediasoup.js - Mediasoup server
server/server.js - Media configuration
server/config.js
Pose processing
- RTP parsing
python_engine/processor.py - VP8 reassembly
python_engine/processor.py - Pose estimation
python_engine/processor.py - Action classifier
python_engine/processor.py
Durable data
- Data API client
client/src/services/database.js - FastAPI service
api_service/app/main.py - Data models
api_service/app/models.py - Request schemas
api_service/app/schemas.py - PIN security
api_service/app/security.py - SQLite database
api_service/app/database.py
Other components
- Child
Connections 31
- Child → Game application: chooses activity
README.md - Game application → Activity catalog: renders
client/src/App.jsx - Activity catalog → Activity definitions: reads activities
client/src/components/ActivityCatalog.jsx - Game application → Activity instructions: renders
client/src/App.jsx - Activity instructions → Activity definitions: reads activity
client/src/components/InstructionsScreen.jsx - Game application → Camera controls: renders
client/src/App.jsx - Game application → Connection status: renders
client/src/App.jsx - Game application → Pose overlay: renders pose
client/src/App.jsx - Game application → Game feedback: renders feedback
client/src/App.jsx - Game application → Activity targets: gets target
client/src/App.jsx - Game feedback → Activity targets: reads targets
client/src/components/GameOverlay.jsx - Game application → Parent dashboard: renders
client/src/App.jsx - Camera controls → WebRTC client: starts camera
README.md - Game application → WebRTC client: uses connection
client/src/App.jsx - WebRTC client → Mediasoup server: signals WebRTC
README.md - Mediasoup server → Media configuration: loads settings
server/server.js - Mediasoup server → RTP parsing: forwards raw RTP
README.md - RTP parsing → VP8 reassembly: parses packets
README.md - VP8 reassembly → Pose estimation: decodes frames
README.md - Pose estimation → Action classifier: supplies landmarks
README.md - Action classifier → Mediasoup server: sends pose data
README.md - Mediasoup server → WebRTC client: returns pose data
README.md - WebRTC client → Game application: updates pose
client/src/App.jsx - Game application → Data API client: saves session
client/src/App.jsx - Parent dashboard → Data API client: loads history and PIN
client/src/components/ParentDashboard.jsx - Data API client → FastAPI service: HTTP requests
client/src/services/database.js - FastAPI service → Data models: queries records
api_service/app/main.py - FastAPI service → Request schemas: validates responses
api_service/app/main.py - FastAPI service → PIN security: hashes and verifies PIN
api_service/app/main.py - FastAPI service → SQLite database: opens request session
api_service/app/main.py - Data models → SQLite database: uses declarative base
api_service/app/models.py