Take your context with you in every prompt
Weaver automatically builds knowledge graphs from your saved content and optimizes prompts with intelligent, relevant context. Transform your browser into a comprehensive prompt engineering and knowledge management system.
- One-Click Page Saving: Click the Weaver icon and save entire webpage content automatically
- Knowledge Graph Generation: AI automatically extracts concepts and relationships from saved content
- Smart Context Retrieval: AI identifies and uses only relevant context for prompt optimization
- Visual Knowledge Exploration: Interactive graph showing top 7 most connected concepts
- Advanced Prompt Engineering: Uses Google's Gemini AI to apply expert prompt engineering techniques
- Optional Text Selection: Still supports right-click saving for specific text snippets
- Local Storage: All data stays on your device
- One-Click Saving: Click the Weaver extension icon, then "Save Current Page" to automatically extract and save webpage content
- Optional Selection: Or highlight specific text, right-click, and select "Save Selection to Weaver"
- AI Processing: Content is automatically processed to extract key concepts and relationships
- Knowledge Graph: Builds an interconnected graph of your saved knowledge
- Go to ChatGPT: Visit chat.openai.com or chatgpt.com
- Type Your Prompt: Start writing your message (e.g., "write an email reply to Alicia")
- Click Optimize: The "Optimize" button (with Weaver logo) appears next to Send
- Smart Context Selection: AI finds only relevant saved content (e.g., previous emails with Alicia)
- Enhanced Results: Your prompt is optimized with targeted context and advanced techniques
-
Download the extension:
- Clone this repository or download as ZIP
- Extract to a folder on your computer
-
Enable Developer Mode:
- Open Chrome and go to
chrome://extensions/ - Toggle "Developer mode" in the top-right corner
- Open Chrome and go to
-
Load the extension:
- Click "Load unpacked"
- Select the
weaverfolder containing the extension files - The extension should now appear in your extensions list
-
Setup API Key:
- Copy
config.template.jstoconfig.js - Get a free Gemini API key from Google AI Studio
- Replace
YOUR_GEMINI_API_KEY_HEREwith your actual API key
- Copy
Coming soon - extension will be published to the Chrome Web Store
manifest.json- Extension configurationbackground.js- Context menu and storage logiccontent.js- ChatGPT integration and optimizationpopup.html/css/js- Management interfaceconfig.js- API configuration (created from template)
- Context Menus: For right-click "Save Selection to Weaver" option
- Storage: To save webpage content and knowledge graphs locally
- Notifications: Success confirmations
- Active Tab: To interact with current webpage
- Scripting: To extract content from webpages
- Tabs: To access page information
- Host Permissions: Access to ChatGPT and Gemini API
Method 1 - One-Click Page Saving (Recommended):
- Click the Weaver extension icon in Chrome
- Click "Save Current Page" button
- Content is automatically extracted, processed, and added to your knowledge graph
Method 2 - Text Selection:
- Highlight specific text on any webpage
- Right-click and select "Save Selection to Weaver"
- Selected text is processed and added to knowledge graph
- View Saved Content: Click the Weaver extension icon to see all saved snippets
- Explore Knowledge Graph: Click "🧠 View Knowledge Graph" to visualize connections
- Interactive Graph: Shows top 7 most connected concepts by default
- Search & Filter: Use search to explore all concepts and relationships
- Content Management: Click snippets to view full text, use "×" to delete individual items
- Go to ChatGPT: Visit chat.openai.com or chatgpt.com and start typing
- Click Optimize: The "Optimize" button (with Weaver logo) appears next to Send
- AI-Powered Enhancement: Your prompt is enhanced with:
- Relevant Context Only: AI selects only pertinent saved content
- Advanced Prompt Engineering: Professional structuring and clarity
- Semantic Understanding: Finds related concepts across your knowledge base
- Example: "write email to Alicia" → finds all Alicia-related content automatically
- Manifest V3 Chrome extension
- Service Worker for background operations and AI processing
- Content Scripts for ChatGPT integration and page extraction
- Gemini 1.5 Flash for knowledge graph generation and optimization
- Interactive SVG for knowledge graph visualization
weaver/
├── manifest.json # Extension configuration
├── background.js # Content saving & knowledge graph generation
├── content.js # ChatGPT integration & smart optimization
├── popup.html/css/js # Management interface & page saving
├── graph.html/js # Knowledge graph visualization
├── config.template.js # API configuration template
├── config.js # API configuration (created from template)
├── logo.png # Logo icon
└── README.md # This file
- Knowledge Graph Generation: Extracts concepts, entities, and relationships from content
- Semantic Context Retrieval: Identifies relevant content based on prompt intent
- Cross-Snippet Connections: Links related concepts from different sources (e.g., "AI" ↔ "Machine Learning")
- Advanced Prompt Engineering: Professional structuring, role assignment, and constraint addition
- Content Intelligence: Smart page extraction avoiding navigation, ads, and irrelevant content
- Reload the extension in
chrome://extensions/ - Refresh the ChatGPT page
- Check that you're on chat.openai.com or chatgpt.com
- Check Chrome notification settings
- Verify system notifications are enabled
- Extension needs notification permission
- Verify internet connection
- Ensure you've created
config.jsfrom the template - Check your Gemini API key in
config.jsis valid - Review console for detailed error messages
- Local Storage Only: All saved text stays on your device
- No Data Collection: Extension doesn't track or store user data
- API Calls: Only optimization requests sent to Gemini
- Open Source: All code is visible and auditable
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is open source. Feel free to use, modify, and distribute.
Having issues?
- Check the troubleshooting section above
- Review browser console for error messages
- Open an issue on GitHub with details
Take your context with you in every prompt