Inspiration
The need for a privacy-first AI writing assistant that works locally on the browser inspired Secure Co-pilot. Existing AI writing tools send sensitive data to the cloud, posing privacy risks for professionals, students, and businesses. Chrome’s built-in Gemini Nano AI models opened the door to creating a powerful, on-device assistant that respects user privacy.
What it does
Secure Co-pilot enhances writing across the web by offering real-time grammar correction, tone adjustment, and content rewriting directly in text fields. It features three modes Auto Mode for style and tone, Professional Mode for formal, constructive rewriting, Grammar Mode focused on fixing spelling and grammar. All suggestions happen locally, with no data leaving the user’s device.
How we built it
We developed Secure Co-pilot as a Chrome Extension using Manifest V3 for security and performance. JavaScript, HTML, and CSS were used for UI and functionality. The AI features rely on Chrome’s chrome.ai API, powering Gemini Nano models running fully on-device. User preferences and settings use chrome.storage.local for privacy. Development was mostly done with Visual Studio Code using Gemini Code Assist to accelerate coding. GitHub was used for version control and collaboration.
Challenges we ran into
Integrating the new Chrome AI APIs amid limited documentation was challenging. Designing a minimal, non-disruptive UI that works seamlessly across diverse web pages required careful tuning. Ensuring 100% offline capability with fallback logic for API unavailability was essential but complex. Managing strict permissions and security constraints introduced by Manifest V3 demanded meticulous implementation.
Accomplishments that we're proud of
We achieved truly local AI-powered writing assistance with strong privacy protection. Our extension provides a crisp, context-aware user interface that fits cleanly into any webpage. We delivered production-ready stable performance while supporting offline usage. The open-source nature fosters trust and invites community collaboration.
What we learned
On-device AI models are capable of delivering high-quality writing suggestions without cloud dependency. Manifest V3 extensions require rigorous security consciousness but provide strong user control and performance advantages. Minimalist UI design improves user acceptance and reduces friction. Effective open-source development empowers faster problem solving and innovation.
What's next for Secure Co-pilot
I plan to publish on the Chrome Web Store, expand language support, and introduce smarter, context-driven writing modes. User feedback will guide improved customization and accessibility features. Deeper offline AI capabilities and integration with other developer tools are promising directions. Ongoing enhancements will keep pace with Chrome’s evolving AI platform.
Built With
- assist
- chrome.ai
- code
- css
- gemini
- github
- html
- javascript
- v3