HARV is a powerful browser extension that brings AI-powered assistance directly into your browsing experience. With support for multiple AI models (Gemini, Perplexity, xAI), it offers intelligent page analysis, smart search, and context-aware conversations.
⚠️ Warning: Development StatusThis project is currently under active development and in beta stage. Some features might:
- Be incomplete or change without notice
- Have bugs or unexpected behavior
- Require additional optimization
- Need better error handling
Feel free to report issues and contribute to the development!
- Floating search interface accessible anywhere on the page
- Context-aware conversations with memory of previous interactions
- Multiple search scopes: Page, Domain, or Global knowledge
- Support for image analysis and screenshots
- Gemini: Google's latest AI model with vision capabilities
- Perplexity: Advanced language model for precise responses
- xAI: Cutting-edge AI for sophisticated analysis
- Seamless model switching during conversations
- Automatic page summarization
- YouTube video content analysis
- Text selection tools (Define, Explain, Search)
- Dark mode support
- Text-to-speech capabilities
- Node.js (v16 or higher)
- npm (v7 or higher)
- Chrome/Edge/Firefox browser
-
Clone the repository:
git clone https://github.com/iamakchavan/harv.git cd HARV
-
Install dependencies:
npm install
-
Configure API Keys:
- Open
src/utils/ai-config.ts
- Add your API keys:
export const AI_CONFIG: AIConfig = { xai: { apiKey: 'YOUR_XAI_API_KEY', endpoint: 'https://api.x.ai/v1' }, gemini: { apiKey: 'YOUR_GEMINI_API_KEY', model: 'gemini-1.5-flash' }, perplexity: { apiKey: 'YOUR_PERPLEXITY_API_KEY', model: 'sonar' } };
⚠️ Important Deprecation Notice for Perplexity APIPlease note that as of February 22, 2025, several models and model name aliases will no longer be accessible. The following model names will no longer be available via API:
- llama-3.1-sonar-small-128k-online
- llama-3.1-sonar-large-128k-online
- llama-3.1-sonar-huge-128k-online
We recommend updating your applications to use the recently released Sonar, Sonar Pro, Sonar Pro Reasoning and Reasoning Pro models.
Each AI provider offers different model options that you can configure:
- Gemini: Supports models like
gemini-1.5-pro
,gemini-1.5-flash
, and other Google Vertex AI models - Perplexity: Use
sonar
for lightweight queries orsonar-pro
for complex tasks requiring deeper analysis andsonar-reasoning
for reasoning tasks with chain of thought. - xAI: Currently supports the
grok-beta
model
You can modify these in the
ai-config.ts
file based on your specific needs and API access. - Open
-
Build the extension:
npm run build
-
Load the extension in your browser:
- Chrome/Edge:
- Go to
chrome://extensions/
- Enable "Developer mode"
- Click "Load unpacked"
- Select the
dist
folder from the project directory, and you're good to go.
- Go to
- Chrome/Edge:
- Use
Alt+X
(Windows/Linux) orCommand+X
(Mac) to open the extension - Click the floating search icon for quick access > (coming soon)
- Page Mode: Search within current page content
- Domain Mode: Search & scrape across the current website
- All Mode: Use AI's comprehensive knowledge & entire internet to get answers
- Select any text on a webpage
- Use the popup menu to:
- Summarize the selection
- Get detailed explanations
- Copy text
- Search for more information
- Click the camera icon to capture screenshots
- Upload images for AI analysis
- Ask questions about the visual content
project/
├── src/
│ ├── components/ # React components
│ ├── utils/ # Utility functions
│ ├── App.tsx # Main application
│ └── background.ts # Extension background script
├── public/ # Static assets
└── dist/ # Build output
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.