Spaces:
Paused
Paused
WidgeTDC Browser Extension
AI-powered browser assistant with semantic search and knowledge capture.
Features
π― Smart Text Selection
- Select any text on a webpage
- Get instant AI-powered actions:
- πΎ Save - Store to your knowledge base
- π Search Similar - Find related content
- β Ask AI - Get instant answers
π Page Capture
- Automatically capture page content
- Extract metadata (author, date, description)
- Store in semantic vector database
- Search across all captured content
π€ AI Assistant Sidebar
- Floating sidebar with AI capabilities
- Semantic search results
- AI-generated answers
- Beautiful, modern UI
π Backend Integration
- Connects to WidgeTDC platform
- Real-time semantic search
- Knowledge graph integration
- Multi-modal support
Installation
From Source
Clone the repository
git clone https://github.com/your-org/WidgeTDC.git cd WidgeTDC/browser-extensionLoad in Chrome
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" (top right)
- Click "Load unpacked"
- Select the
browser-extensionfolder
- Open Chrome and go to
Configure Backend URL
- Click the extension icon
- Go to Options
- Set your WidgeTDC backend URL (default:
http://localhost:3000)
Usage
Text Selection Actions
- Select text on any webpage
- Floating buttons appear with options:
- Save to knowledge base
- Search for similar content
- Ask AI about the selection
Page Capture
- Click extension icon
- Select "Capture Page"
- Content is automatically:
- Extracted and cleaned
- Sent to backend
- Indexed for search
Sidebar
- Click extension icon β "Open Sidebar"
- Search your knowledge base
- Ask questions to AI
- View results in beautiful interface
Configuration
Backend URL
Set in extension options:
Default: http://localhost:3000/api
Production: https://api.widgetdc.com/api
Permissions
The extension requires:
activeTab- Access current tab contentstorage- Store settingscontextMenus- Right-click menutabs- Manage tabs
Development
File Structure
browser-extension/
βββ manifest.json # Extension manifest (v3)
βββ content.js # Content script (injected)
βββ content.css # Styles
βββ background.js # Service worker
βββ popup.html # Extension popup
βββ options.html # Settings page
βββ icons/ # Extension icons
Building
No build step required - pure JavaScript!
Testing
- Make changes to files
- Go to
chrome://extensions/ - Click "Reload" on WidgeTDC extension
- Test on any webpage
Features in Detail
Smart Content Extraction
- Removes scripts, styles, ads
- Extracts main content only
- Preserves formatting
- Captures metadata
Semantic Search
- Vector-based similarity
- Hybrid keyword + semantic
- Re-ranked results
- Cross-modal search
AI Assistance
- Context-aware answers
- Multi-hop reasoning
- Knowledge graph integration
- Real-time responses
Privacy
- No data collection - All data stays on your server
- Local processing - Content processed locally
- Secure communication - HTTPS only in production
- User control - You own your data
Keyboard Shortcuts
Alt+S- Save current pageAlt+F- Open search sidebarAlt+Q- Quick AI questionEsc- Close sidebar
Troubleshooting
Extension not working?
- Check backend is running
- Verify URL in options
- Check browser console for errors
- Reload extension
No results in search?
- Ensure content is captured
- Wait for indexing (few seconds)
- Try different search terms
- Check backend logs
Sidebar not appearing?
- Check for conflicts with other extensions
- Verify permissions granted
- Try reloading the page
- Check z-index conflicts
Contributing
- Fork the repository
- Create feature branch
- Make changes
- Test thoroughly
- Submit pull request
License
MIT License - See LICENSE file
Support
- Issues: GitHub Issues
- Docs: https://docs.widgetdc.com
- Discord: https://discord.gg/widgetdc
Made with β€οΈ by the WidgeTDC Team