This is a browser extension developed based on the WXT framework that allows you to interact intelligently with web page content, supporting multiple AI providers and a multilingual interface.
- Intelligent Content Interaction: Engage in conversational interactions with web page content to obtain information, summaries, or explanations
- Multi-language Support: Automatically detects browser language, supporting Chinese, English, Japanese, Korean, French, German, Spanish, Russian, and other languages
- Multiple AI Providers: Supports OpenAI, Anthropic, Ollama, and other AI service providers
- Personalized Settings: Customizable API keys, endpoints, and models
- Sidebar Integration: Convenient use in browser sidebar
- English (en-US)
- Chinese (zh-CN)
- Japanese (ja-JP)
- Korean (ko-KR)
- French (fr-FR)
- German (de-DE)
- Spanish (es-ES)
- Russian (ru-RU)
The extension automatically detects your browser language and uses the corresponding interface language. If no corresponding language is supported, English is used by default.
The extension uses i18next and react-i18next for internationalization support. All interface text is centralized in JSON files under the src/i18n/locales/ directory for unified management and translation.
Each language has an independent JSON file, example structure:
{
"common": {
"save": "Save",
"cancel": "Cancel"
},
"settings": {
"title": "Settings",
"apiKey": "API Key"
}
}To add support for a new language, simply:
- Create a new language file in the
src/i18n/locales/directory (e.g.,fr-FR.json) - Import the new language file in
src/i18n/index.ts - Add to the supported languages list
You can modify or extend the translation files as needed to meet specific localization requirements.
- OpenAI: Supports GPT-3.5, GPT-4, and other models
- Anthropic: Supports Claude series models
- Ollama: Supports locally deployed AI models
-
Clone the repository:
git clone https://github.com/wanderxuhq/chat-with-page.git cd chat-with-page -
Install dependencies:
pnpm install # or npm install -
Start the development server:
pnpm dev # or npm run dev -
Load the extension in your browser:
- Chrome/Edge: Open
chrome://extensions/, enable Developer mode, click "Load unpacked extension", select thedist/chrome-mv3-devdirectory - Firefox: Open
about:debugging#/runtime/this-firefox, click "Load Temporary Add-on", select thedist/firefox-mv3-devdirectory
- Chrome/Edge: Open
-
Build the production version:
pnpm build # or npm run build -
After building, the extension files will be generated in the
distdirectory, which can be used for publishing to browser app stores.
- After installing the extension, click the extension icon in the browser toolbar to open the sidebar
- Select an AI provider and configure API keys in the sidebar
- Start interacting with the current web page content
The extension supports the following configuration options:
- AI Provider: Select the AI service provider to use
- API Key: Enter your AI service API key
- API Endpoint: Custom API request endpoint (optional)
- Model: Select the AI model to use
- Language: Manually select the interface language
- React: UI framework
- TypeScript: Type system
- WXT: Browser extension development framework
- i18next: Internationalization support
- OpenAI SDK: AI API client
Welcome to submit Issues and Pull Requests!
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- WXT: Browser extension development framework
- Readability.js: Web page content parsing
- i18next: Internationalization support
If you have any questions or suggestions, please submit an Issue.