Skip to content

Wilsomwong2004/ReadBuddy

Repository files navigation

ReadBuddy - AI Reading Assistant

ReadBuddy Logo

ReadBuddy - AI Powered Reading Assistant

Chrome Extension PRs Welcome License

Read Smarter, Not Harder


🎯 Project Introduction

ReadBuddy is an intelligent reading assistant extension based on Chrome's built-in Gemini Nano AI, providing instant, privacy-secure reading assistance on your local device.

✨ Core Features

  • πŸ”’ Complete Privacy Protection - All AI processing happens locally, data never leaves your device
  • ⚑ Instant Response - Based on Chrome's built-in AI, no internet connection required
  • 🎯 Smart Reading - Four core functions: Summarize, Translate, Explain, Chat
  • πŸ“š Knowledge Management - Personal knowledge base to save important reading content
  • πŸ†“ Completely Free - No subscription fees, no usage limits

πŸš€ Quick Start

For Users

Developer Mode Installation

  1. Download ReadBuddy extension files
  2. Open Chrome, go to chrome://extensions/
  3. Enable "Developer mode"
  4. Click "Load unpacked"
  5. Select the extension folder
  6. ReadBuddy icon will appear in toolbar

For Judges/Developers

Environment Requirements

  • Chrome Version: 118+ (supports built-in AI features)
  • Operating System: Windows 10/11, macOS 10.15+, Linux
  • Memory: Recommended 8GB+ RAM
  • Storage: 100MB available space

⚠️ Important: Enable Gemini Nano in Chrome Flags

ReadBuddy requires Chrome's built-in AI to be enabled. Please follow these steps:

  1. Open Chrome and go to chrome://flags/
  2. Search for "Optimization Guide on Device"
  3. Set it to "Enabled" (not "Enabled BypassPerfRequirement")
  4. Search for "Prompt API for Gemini Nano"
  5. Set it to "Enabled"
  6. RESTART CHROME for changes to take effect

Installation Steps

Method 1: Manual Install

1. Clone repository

git clone https://github.com/yourusername/readbuddy.git
cd readbuddy

2. Install dependencies

npm install
3. Build extension
npm run build
4. Load extension in Chrome

Method 2: Chrome Web Store

  1. Go to Chrome Web Store or open link below
https://chromewebstore.google.com/detail/readbuddy-ai-reading-assi/pkgomicahmbagpmhkablpcanklejnnlk
  1. Search ReadBuddy (If use link can pass this)
  2. Click Add to Chrome
  3. DONE! Enjoy!
Chrome Loading Steps
  1. Open Chrome, visitΒ chrome://extensions/
  2. Enable "Developer mode" (top-right switch)
  3. Click "Load unpacked"
  4. Select project root directory
  5. Ensure extension is enabled
Verification
  1. Select text on any webpage
  2. Right-click, should see ReadBuddy options
  3. Or click ReadBuddy icon in toolbar to open sidebar

πŸ“– User Guide

Basic Functions

1. Smart Summarize
  • Select text β†’ Click extension icon β†’ Choose "Summarize"
  • Or right-click menu β†’ "ReadBuddy: Summarize"
  • Get key points, paragraph, or Q&A format summaries
2. Instant Translate
  • Support 9 language translations
  • Context-aware translation
  • Maintains professional term accuracy
3. Deep Explain
  • Simplifies complex concepts
  • Structured output: overview, detailed analysis, key insights
  • Suitable for academic and technical documents
4. Smart Chat
  • Q&A based on page content
  • Multi-turn conversation
  • Automatically judges if page context is needed

Advanced Features

πŸ“Š Quick Analysis
  • Text feature analysis
  • Reading difficulty assessment
  • Reading time estimation
πŸ’Ύ Save Function
  • Build personal knowledge base
  • Add tags and notes
  • Quick retrieval of saved content
πŸ”— Related Concepts
  • Smart concept expansion
  • Knowledge network building
  • Recommended extended reading
🧠 Generate Mindmap
  • Idea expansion
  • Knowledge connection
  • Suggested reading

Usage Tips

  1. Best Practices:

    • For long articles, use summary function first to get overview
    • Use explain function when encountering professional terms
    • Save important content for later review
  2. Performance Optimization:

    • Use Chat function for simple questions (faster response)
    • Trigger complex analysis when needed
    • Use save function to avoid repeated processing

πŸ—οΈ Technical Architecture

Core Components

ReadBuddy/
β”œβ”€β”€ manifest.json          # Chrome extension configuration
β”œβ”€β”€ dist/                  # Build output files (can be ignored during development)
β”‚   β”œβ”€β”€ background.js      # Core background script
β”‚   β”œβ”€β”€ content.js         # Core content script
β”‚   β”œβ”€β”€ popup.html         # Popup interface
β”‚   β”œβ”€β”€ popup.js           # Popup logic
β”‚   β”œβ”€β”€ sidepanel.html     # Sidebar interface
β”‚   β”œβ”€β”€ sidepanel.js       # Sidebar logic
β”‚   └── assets/            # Bundled resources (icons, library files, etc.)
β”œβ”€β”€ src/                   # Source code directory
β”‚   β”œβ”€β”€ background.js      # Background script (for development)
β”‚   β”œβ”€β”€ content.js         # Content script (for development)
β”‚   β”œβ”€β”€ popup.jsx          # Popup React component
β”‚   β”œβ”€β”€ sidepanel.jsx      # Sidebar React component
β”‚   β”œβ”€β”€ settings.jsx       # Settings page React component
β”‚   β”œβ”€β”€ notes.jsx          # Notes page React component
β”‚   └── assets/            # Static resources
β”‚       β”œβ”€β”€ icon/          # Icons
β”‚       └── Readbuddy_pic/ # UI image resources
└── utils/                  # Utility scripts
    β”œβ”€β”€ darkMode.js         # Dark mode functionality
    └── preload.js          # Page preload script

API Usage

  • Chrome Built-in AI: Gemini Nano
  • Summarizer API: Text summarization
  • Translator API: Language translation
  • Prompt API: Custom AI interaction
  • Chrome Storage API: Data persistence

Technical Features

  • πŸ”§Β Hybrid Architecture: Local AI processing + Cloud enhancement (on-demand)
  • 🎨 Modern UI: Responsive design, dark mode support
  • πŸ“±Β Performance Optimization: Smart caching, lazy loading
  • πŸ›‘οΈΒ Error Handling: Graceful degradation, friendly prompts

🎯 Competition Highlights

Technical Innovation

  1. Deep Chrome Built-in AI Integration

    • Fully utilizes Gemini Nano capabilities
    • Local processing ensures privacy security
    • Zero-latency AI response
  2. Smart Content Understanding

    • Multi-dimensional text analysis
    • Context-aware processing
    • Personalized learning recommendations
  3. Excellent User Experience

    • Intuitive interaction design
    • Progressive feature display
    • Complete error handling

Product Value

  • βœ…Β Solves Real Pain Points: Information overload, low reading efficiency
  • βœ…Β Differentiation Advantages: Privacy protection, offline use, completely free
  • βœ…Β Strong Extensibility: Modular architecture, easy feature expansion

πŸ”§ Development Guide

Environment Setup

# Install development dependencies
npm install

# Development mode
npm run dev

# Build production version
npm run build

File Structure Explanation

src/
β”œβ”€β”€ assets/         # Static resources (icons, images, etc.)
β”œβ”€β”€ lib/            # Third-party libraries (mermaid.js, pdf.mjs, readability.js)
β”œβ”€β”€ utils/          # Utility scripts (darkMode.js, darkModeBtn.jsx, preload.js)
β”œβ”€β”€ background.js   # Background script for global events
β”œβ”€β”€ content.js      # Content script injected into web pages
β”œβ”€β”€ popup.jsx       # Popup interface React component
β”œβ”€β”€ sidepanel.jsx   # Sidebar interface React component
β”œβ”€β”€ settings.jsx    # Settings page React component
└── notes.jsx       # Notes page React component

πŸ› Troubleshooting

Common Issues

Q: Extension icon is not showing?
A: Reload the extension in chrome://extensions or restart Chrome.

Q: AI functions are not responding?
A: Ensure your Chrome version supports built-in AI, or refresh the page.

Q: Save function is not working?
A: Verify storage permissions, clear extension data, and try again.

Q: Performance is slow?
A: ReadBuddy processes text locally, so performance depends on text length. For very long texts, it splits the content into chunks, summarizes each, and combines them. Before processing, the extension informs you of the estimated time. Using the summary function first can help speed up the process.

Q: "AI features not available" error?
A: Make sure Gemini Nano is enabled in chrome://flags and restart Chrome.

πŸ“„ License

This project is licensed under the MIT License - see theΒ LICENSEΒ file for details

πŸ™ Acknowledgments

  • Chrome team for built-in AI capabilities
  • Mozilla's Readability.js and PDF.js project
  • Mermaid.js for generating Mindmaps
  • All contributors and test users

πŸ“ž Contact Us

🎯 Special Guide for Judges

Demo Highlights

  1. Core Technology: Showcase deep integration with Chrome's built-in AI
  2. User Experience: Smooth interactions and instant responses
  3. Product Value: Complete solution solving real user pain points

Testing Suggestions

  • Test on different types of webpages (news, academic, technical documents)
  • Experience switching between four core functions
  • Verify offline usage capability
  • Test save and knowledge base functions

Technical Evaluation Points

  • βœ… Correct usage of Chrome AI API
  • βœ… Performance optimization measures
  • βœ… Error handling and edge cases
  • βœ… Code quality and architecture design

Enjoy your experience!Β πŸš€


"Make reading a pleasure, not a burden"

Report Issues

About

An AI-powered Chrome extension that makes reading smarter, faster, and seamless with Gemini Nano and Firebase AI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages