An AI + gaze-driven adaptive reading and coding companion.
TL;DR is a browser extension that enhances comprehension by analyzing reading patterns (via eye tracking) and dynamically adapting explanations, focus, and study flow in real time.
Unlike traditional AI assistants that wait for prompts, TL;DR responds to:
- Cognitive load
- Confusion signals
- Re-reading patterns
- Attention drift
- Fast vs passive reading
Explains what text or code does, not just what it says.
- Step-by-step logic reconstruction
- Author intent breakdown
- Adaptive explanation depth
- Confusion-triggered activation
Improves concentration by guiding visual attention.
- Dims peripheral content
- Highlights active reading line
- Activates only during reading patterns
- Detects attention drift
Differentiates between:
| Pattern | Behavior |
|---|---|
| Fast Reader | Smooth saccades, short fixations |
| Zoning Out | Long fixations, random drift |
| Overloaded | Frequent regressions |
Intervenes only when comprehension likely drops.
Automatically switches explanation logic depending on content type.
- Syntax detection
- Structured markup recognition
- Natural language mode
When returning after a break:
- Highlights last active section
- Summarizes previous focus
- Suggests next logical step
AI highlights:
- Key logic blocks
- Definitions
- Complex segments
- Dependencies
- Local gaze processing
- No raw gaze storage
- Optional cloud AI for deep explanations
/src
├── background/
├── content/
├── ui/
├── gaze/
└── ai/
manifest.json
- Content Script → DOM interaction
- Background Script → State management
- UI Overlay (Shadow DOM) → Conflict-free interface
- Gaze Engine → Reading pattern detection
- AI Layer → Explanation generation
if (distance(prevPoint, currentPoint) < 30) {
fixationTime += delta;
}if (fixationTime > 400 && isMeaningfulWord && !isFastReader) {
triggerReverseExplanation();
}if (shortFixations && smoothSaccades && lowRegressions) {
mode = "fast_reader";
} else if (longFixations && randomSaccades) {
mode = "zoning_out";
}- 100–200ms fixations
- Smooth left-to-right saccades
- Low regression rate
-
800ms fixations
- Random eye drift
- Inconsistent scroll behavior
- High regression frequency
- Long fixations on dense text
- Scroll stagnation
- JavaScript / TypeScript
- Chrome Extension API (Manifest v3)
- WebGazer.js (or custom gaze pipeline)
- OpenAI API (optional premium mode)
- Shadow DOM for UI isolation
git clone https://github.com/Cjayy77/TL-DR.git
cd TL-DR- Open Chrome
- Navigate to
chrome://extensions - Enable Developer Mode
- Click Load Unpacked
- Select project folder
- Reverse Explanation Mode
- Basic Focus Tunneling
- Code/Text Detection
- Gaze Tracker Implementation (WebGazer.js)
- Local Gaze Classification
- Zone-Out Classifier Refinement
- Learning Memory System
- Adaptive Explanation Depth
- VS Code Integration
- Local Small Model Support
- Personalized Cognitive Profiles
- No raw gaze coordinates stored
- No biometric data transmitted
- AI only processes selected text
- Offline mode planned
TL;DR aims to become:
The world’s first cognitive-aware AI interface.
Not just an AI that answers prompts —
but one that understands how users process information.
Pull requests are welcome.
- Fork repository
- Create feature branch
- Submit PR
MIT License
- Gaze-to-command interface
- Predictive viewport summaries
- Hybrid local/cloud inference
- Study memory graph <3
- Adaptive reading modes
