How thealejo160/adapta-pe works
Adapta PE is a Chromium accessibility extension with an optional Flask image-analysis service. Its main workflow is: the user configures accessibility features in the popup; preferences are stored and applied to the active page; in-page voice, TalkBack, color-filter, and camera-pointer features assist navigation; voice actions are dispatched to browser APIs. The README documents the optional image-analysis integration, but sampled source does not show its caller, so only the documented connection is included.
Main entry points: content_script.js Page Runtime · popup.js Settings Logic · background.js Message Dispatcher · app.py Image Analysis Service
Components 16
Settings
- Settings UI
popup.html - Settings Logic
popup.js - Preferences
popup.js
Page Accessibility
- Page Runtime
content_script.js - TalkBack
content_script.js - Voice Commands
content_script.js - Color Filters
content_script.js - Kinetic Mouse
content_script.js
Browser Control
- Message Dispatcher
background.js - Chrome APIs
Image Analysis
- Image Analysis Service
app.py
Other components
- User
- Microphone
- Webcam
- Web Page
- Localhost Service
Connections 22
- User → Settings UI: changes settings
- Settings UI → Settings Logic: captures input
- Settings Logic → Preferences: stores settings
- Settings Logic → Page Runtime: requests refresh
- Page Runtime → Preferences: reads settings
- Page Runtime → TalkBack: enables
- Page Runtime → Voice Commands: enables
- Page Runtime → Color Filters: enables
- Page Runtime → Kinetic Mouse: enables
- User → Microphone: speaks commands
- Microphone → Voice Commands: provides audio
- Voice Commands → Message Dispatcher: dispatches actions
- TalkBack → Message Dispatcher: requests speech
- Message Dispatcher → Chrome APIs: uses TTS and tabs
- User → Webcam: provides camera input
- Webcam → Kinetic Mouse: provides video
- Kinetic Mouse → Web Page: moves pointer and clicks
- TalkBack → Web Page: reads hovered content
- Color Filters → Web Page: applies color correction
- Localhost Service → Image Analysis Service: hosts service
- Page Runtime → Image Analysis Service: sends image analysis request
- Image Analysis Service → Page Runtime: returns description