Inspiration
The idea for Safe Product Scanner AI emerged from a desire to protect loved ones from harmful components in everyday products. Manually researching each ingredient is time-consuming, but product safety is essential. This extension automates the process, providing quick and reliable insights into product safety.
What it does
Safe Product Scanner AI simplifies the process of checking the safety of chemical components in cosmetics and medicines. Users can highlight a word on any webpage, and the extension uses Google's Prompt API and the Gemini Nano AI model to analyze the selected term. Within seconds, a popup appears, providing insights into whether the term is a chemical component and its potential safety concerns. The extension is designed to streamline product research, making it quick, reliable, and user-friendly.
Key features include:
- AI-Powered Analysis: Determines whether the highlighted word is a chemical component or substance.
- Dynamic Popup Display: Displays results near the highlighted word for seamless interaction.
- Request Management: Allows users to cancel ongoing queries and prevents outdated results from being displayed.
How I built it
The project was built using:
- Google's Prompt API and Gemini Nano AI model for analyzing chemical components.
- Chrome Extensions API to integrate directly into the browser environment.
- JavaScript, HTML, and CSS for creating the interactive popup and managing script communication.
- GitHub for version control and collaboration. The extension analyzes highlighted words, checks if they are chemical components used in cosmetics or medicines, and provides insights about their safety—all with a simple click.
Challenges I ran into
- AI Response Precision: Ensuring the AI model correctly identifies chemical components and provides relevant insights was a critical challenge. Fine-tuning prompts and handling edge cases were essential for accuracy.
- Request Management: Implementing features to cancel or prioritize requests without displaying outdated results was complex but rewarding.
- Model Availability: Understanding and managing the Prompt API model download process and dealing with its constraints required experimentation and patience.
Safe Product Scanner AI overcame several challenges, including ensuring AI precision, managing requests effectively, and dealing with Prompt API constraints. These efforts have resulted in a reliable tool that simplifies product safety analysis, empowering users to make informed decisions.
Accomplishments that I'm proud of
- Seamless AI Integration: Successfully incorporated Google's Prompt API and Gemini Nano AI model to create a practical Chrome extension.
- Improved User Experience: Designed a clean and intuitive interface with features like a dynamic popup, request cancellation, and quick insights.
- Efficiency and Accuracy: Optimized prompt queries to ensure the AI provides relevant and concise responses, especially for non-chemical terms.
- Technical Milestones: Overcame challenges related to model availability, managing asynchronous operations, and implementing robust error handling.
What I learned
Throughout the project, I gained valuable experience in:
- Working with AI APIs: Integrating Google's Prompt API and leveraging the Gemini Nano AI model for real-world applications.
- Chrome Extension Development: Building a user-friendly and efficient extension that interacts seamlessly with web pages.
- Handling Technical Challenges: Addressing issues like request cancellations, ensuring responsiveness, and creating a smooth user experience.
What's next for Safe Product Scanner AI
- Enhanced Response Time:
- Optimize AI processing for faster responses.
- Customization Options:
- Allow users to modify popup settings (color, size, language).
- Enable or disable the extension on specific websites.
- Accessibility Improvements:
- Add keyboard navigation and screen reader compatibility.
- Offline Capabilities:
- Investigate using a cached database for limited offline functionality.
- Broader AI Integration:
- Expand to analyze food ingredients.
Safe Product Scanner AI aims to continually evolve to meet user needs, offering a reliable, efficient tool for safer product selection.
Built With
- ai
- chrome
- chrome-dev
- css
- devtool
- gemini
- gemini-nano
- github
- html
- intellij-idea
- javascript
- prompt-api


Log in or sign up for Devpost to join the conversation.