Inspiration

The Problem: The modern web is plagued by information overload. Users need to quickly grasp the core content of a webpage but are hesitant to use external summarizers due to privacy concerns (sending sensitive data to cloud servers). The Solution: We were inspired to create a privacy-first solution that solves this problem entirely on the user's device, aligning perfectly with the vision of Built-in AI.

What it does

PagePilot is a Chrome Extension that offers secure, instant summarization of any webpage content. The user activates the extension on a webpage. The extension extracts the main text content. It leverages the window.ai.prompt API to generate a concise summary of the content locally on the device. The summary is displayed instantly in a sleek, non-intrusive modal window. No user data ever leaves the device.

How we built it

The core architecture uses HTML/CSS/JavaScript for the Chrome Extension UI. The defining feature is the use of the Chrome Built-in AI API (window.ai.prompt). We used: Manifest V3 for the extension. The Content Script to extract text from the active tab. The Service Worker to communicate with the window.ai API and manage the summarization logic. Simple DOM manipulation to display the result directly on the page.

Challenges we ran into

The main challenge was ensuring the correct lifecycle management of the Service Worker and the Built-in AI API. Debugging the asynchronous nature of the window.ai.prompt calls and ensuring the prompt was correctly formatted to avoid exceeding the context length were key hurdles.

Accomplishments that we're proud of

Our biggest accomplishment is successfully implementing and proving the privacy-first, on-device architecture. We demonstrated that the entire summarization process—from text extraction to result display—happens without any network traffic, making it a truly secure and efficient tool.

What we learned

We gained deep knowledge of the Built-in AI API, particularly how to manage context windows and prompt engineering for local models. We also solidified our understanding of Chrome Extension Manifest V3 and the distinction between Service Workers and Content Scripts.

What's next for PagePilot: On-Device AI

Sentiment Analysis: Adding a quick AI check to determine the sentiment (positive/negative/neutral) of the summarized content. Key Phrase Extraction: Enhancing the results by extracting and highlighting 3-5 key phrases alongside the summary. Cross-Browser Compatibility: Investigating portability to other browsers that adopt similar local AI standards.

Built With

  • css
  • html
  • javascript-(js)
  • window.ai.prompt)
Share this project:

Updates