Skip to content

samadon1/BrowseBack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

33 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

BrowseBack BrowseBack

Your photographic browsing memory. Search everything you've seen online.

BrowseBack is a Chrome extension that automatically captures and indexes your browsing activity, creating a searchable "photographic memory" of everything you've seen online. All data processing happens locally using Chrome's built-in AI, ensuring complete privacy.


๐Ÿ“ธ Screenshots

Timeline View

Timeline View

Search Mode

Search Mode

Ask Mode - AI-Powered Q&A

Ask Mode

Chat Follow-up Questions + Sources/Links

Follow-up Chat

Transcription Feature + Followup

Transcription

Analytics Dashboard

Analytics

Settings & Privacy Controls

Settings

Full Page View

Full Page View


๐Ÿ“‹ Table of Contents


๐ŸŽฏ The Problem

  • Users forget where they saw information online
  • Browser history is just a list of URLs (not searchable by content)
  • Can't remember context: "What was I researching Tuesday afternoon?"
  • Screenshots/bookmarks require manual effort (and people forget)

โœจ The Solution

BrowseBack runs silently in the background, automatically:

  • ๐Ÿ“ธ Capturing screenshots of your active tab
  • ๐Ÿ”ค Extracting text using OCR powered by Chrome Prompt API
  • ๐Ÿ” Building a searchable local index of all content
  • ๐Ÿง  Letting you search by content, time, or natural language

๐Ÿ”’ Privacy First

  • โœ… 100% local processing - your browsing data never leaves your device
  • โœ… Works completely offline - no internet required for search
  • โœ… Zero subscription fees - no cloud costs
  • โœ… You own your data - export or delete anytime

๐Ÿ‘ฅ Use Cases

BrowseBack is perfect for anyone who needs to recall what they've seen online:

  • ๐ŸŽ“ Students - Find lecture notes, research papers, and study materials you've browsed
  • ๐Ÿ’ผ Executives - Recall details from market research, competitor analysis, and reports
  • ๐Ÿ‘จโ€๐Ÿ’ป Engineers - Quickly find API docs, Stack Overflow solutions, and technical articles
  • ๐Ÿ’ฐ Sales Teams - Remember product details, customer research, and competitive intel
  • ๐Ÿง  People with ADHD - Never lose track of important information in your browsing sessions
  • ๐Ÿ”ฌ Researchers - Track down sources and references you encountered during your work
  • ๐Ÿ“ Content Creators - Find inspiration and reference materials from your browsing history

๐Ÿš€ Installation

Prerequisites

  1. Google Chrome (version 127+)
  2. Chrome Built-in AI Early Preview Program enrollment
    • Sign up at: Chrome Built-in AI
    • Enable flags:
      • chrome://flags/#optimization-guide-on-device-model
      • chrome://flags/#prompt-api-for-gemini-nano

Install the Extension

  1. Clone this repository

    git clone https://github.com/yourusername/browseback.git
    cd browseback
  2. Load in Chrome

    • Open Chrome and navigate to chrome://extensions/
    • Enable Developer mode (toggle in top right)
    • Click Load unpacked
    • Select the BrowseBack folder
  3. Grant Permissions

    • Click on the BrowseBack icon in your toolbar
    • Allow necessary permissions when prompted
  4. Download AI Models (First Time Setup)

    • When you first open BrowseBack, you'll see a setup guide
    • Click "Download AI Components" to start downloading Gemini Nano
    • The download is ~1.5GB and may take several minutes
    • You can track progress in the extension popup
    • Note: Models download once and are shared across all Chrome AI apps
  5. Start Browsing!

    • Once AI models are ready, BrowseBack starts capturing automatically
    • Click the extension icon anytime to search your memory
    • Use Timeline, Search, or Ask modes to find what you need

๐Ÿ’ก Tip: For detailed AI setup instructions, see the AI Setup Guide


๐ŸŽฎ Usage

Automatic Capture

  • BrowseBack captures your active tab every 10 seconds (configurable)
  • Only captures when tab content changes (saves storage)
  • Skips internal Chrome pages (chrome://, edge://, etc.)

Search Your Memory

  1. Click the BrowseBack icon in your toolbar
  2. Type your search query:
    • Content search: "Python tutorial" finds pages with that text
    • Time-based: Click "Today" or "Yesterday" chips
    • URL search: Search by domain or path
    • Blank search: Shows recent captures

Privacy Dashboard

  • View total captures and storage used
  • Adjust capture interval (5s to 1 minute)
  • Set data retention period (3 days to 1 year)
  • Delete all data with one click

๐Ÿ—๏ธ Architecture

BrowseBack/
โ”œโ”€โ”€ manifest.json           # Chrome extension configuration
โ”œโ”€โ”€ background.js          # Service worker (automatic capture)
โ”œโ”€โ”€ content.js             # Content script (DOM text extraction)
โ”œโ”€โ”€ lib/
โ”‚   โ”œโ”€โ”€ storage.js        # IndexedDB wrapper
โ”‚   โ”œโ”€โ”€ capture.js        # Screenshot capture logic
โ”‚   โ””โ”€โ”€ ai-processor.js   # Chrome Prompt API integration
โ””โ”€โ”€ popup/
    โ”œโ”€โ”€ popup.html        # Search interface
    โ”œโ”€โ”€ popup.js          # UI logic
    โ””โ”€โ”€ popup.css         # Styling

Technologies Used

  • Chrome Extension Manifest V3
  • Google Gemini Nano - On-device AI model powering all intelligent features
  • Chrome Prompt API (LanguageModel) - AI question answering, transcription, and summarization
  • Chrome Proofreader API - Query correction and spell checking
  • Chrome Speech Recognition API - Real-time audio capture from tabs
  • IndexedDB - Local storage for captures and transcripts
  • WebP compression - Efficient screenshot storage
  • Service Workers - Background processing and capture automation

๐ŸŽ“ How It Works

  1. Capture: Background service worker monitors active tab
  2. Change Detection: Only captures when content changes significantly
  3. Screenshot: Uses chrome.tabs.captureVisibleTab() API
  4. Text Extraction:
    • Primary: DOM text extraction (fast, accurate)
    • Secondary: OCR via Prompt API (images, videos)
  5. Storage: Saves to IndexedDB with metadata (URL, title, timestamp)
  6. Search: Full-text search across all stored content
  7. Cleanup: Automatically deletes old data based on retention settings

๐Ÿ† Google Chrome Built-in AI Challenge 2025

Problem Solved

BrowseBack solves the universal problem of digital forgetfulness. Users spend hours re-searching for information they've already seen. Our solution:

  • Unlocks photographic memory for everyone
  • Privacy-first approach (no cloud, no tracking)
  • Zero friction (automatic, passive capture)
  • Universal use case (students, researchers, developers, anyone)

Differentiator

Unlike cloud-based solutions, BrowseBack is:

  • โœ… 100% free (no server costs)
  • โœ… 100% private (local-only processing)
  • โœ… 100% offline (network-resilient)

๐Ÿ“š Documentation

Additional documentation is available in the docs/ directory:


๐Ÿ› ๏ธ Development

Setup

# Clone the repo
git clone https://github.com/yourusername/browseback.git
cd browseback

# No build step required! Pure vanilla JS.

Testing

  1. Make your changes
  2. Go to chrome://extensions/
  3. Click "Reload" on BrowseBack
  4. Test in a new tab

Debugging

  • Service Worker: chrome://extensions/ โ†’ BrowseBack โ†’ "service worker" link
  • Popup: Right-click extension icon โ†’ "Inspect popup"
  • Content Script: Regular DevTools on any page

๐Ÿค Contributing

This is a hackathon project, but contributions are welcome!

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“„ License

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


๐Ÿ™ Acknowledgments

  • Google Chrome Team for the Built-in AI Challenge 2025
  • Chrome Prompt API for enabling on-device AI
  • Devpost for hosting the hackathon
  • All early testers and contributors

๐Ÿ’ก FAQ

Q: Does BrowseBack slow down my browser? A: No. Captures happen asynchronously and don't block tab rendering.

Q: Can I use this on mobile? A: Not yet. Chrome extensions don't support mobile, but we're exploring Firebase AI.

Q: What happens if I run out of storage? A: BrowseBack automatically deletes old captures based on your retention settings.

Q: Can I export my data? A: Yes! Use the browser's IndexedDB export tools, or we'll add a built-in export feature soon.

Q: Is this really private? A: Absolutely. All data stays in IndexedDB on your device. No network requests, no telemetry.


๐ŸŽ‰ Built for Chrome Built-in AI Challenge 2025

This project was created for the Google Chrome Built-in AI Challenge 2025 to showcase the power of client-side AI and privacy-first innovation.


Made with ๐Ÿง  and โค๏ธ by Samuel Donkor

Give your browser a brain boost!

About

๐Ÿ† Winner Honorable Mention - Google Chrome Built-in AI Challenge 2025 - https://devpost.com/software/browseback

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors