Klue is a high-performance Chrome extension designed for researchers and power users. It goes beyond simple text clipping by providing a local-first, AI-powered knowledge base with semantic search and contextual recall.
Klue is an AI-powered Chrome extension designed to shift knowledge capture from passive storage to active synthesis. It provides a non-intrusive side panel for capturing text, images, and context from the web, acting as a "Private, Proactive Intelligence" layer that turns your bookmarks into a living knowledge base.
- 🧠 Local RAG Stack - High-speed semantic search using Transformers.js and Orama, running entirely in your browser.
- 💬 AI Assistant - Built-in chat interface with full history to synthesize and interact with your saved knowledge via OpenRouter.
- 🔍 Hybrid Search - Combines traditional keyword matching with vector-based semantic search.
- 📱 Contextual Recall - Automatically resurfaces relevant notes and semantic matches based on the page you are currently visiting.
- 🖼️ Rich Media Support - Capture multiple images per note and view auto-generated "Smart Chips" for YouTube and X (Twitter) links.
- 🏷️ Advanced Organization - Tagging system, "Read Later" queue, and "Starred" favorites.
- 🛡️ Privacy First - Local storage (IndexedDB) and local ML processing. Only LLM calls use cloud APIs (OpenRouter).
- The "Deep Diver" Researcher - Needs to connect distinct facts across domains and manage high volumes of information.
- The "Frontend Architect" Developer - Collecting solutions from StackOverflow, GitHub, and technical documentation.
- The "Curator" Product Designer - Documenting onboarding flows, competitive analysis, and UI inspiration.
Klue is built as a modern Manifest V3 extension with a focus on performance and reliability.
- Database: Dexie.js (IndexedDB) for robust, high-capacity local storage.
- Search Engine: Orama for hybrid vector and full-text search.
- ML Engine: Transformers.js (all-MiniLM-L6-v2) for generating local embeddings.
- UI: Vanilla ES6+ JavaScript with CSS Variables and a custom component architecture.
- Build System: esbuild for bundling ML modules and handling WASM binaries.
background.js: Orchestrates the capture flow, context menus, and initializes theVectorService.vector-service.js: Manages the embedding pipeline and Orama index with a sequentialTaskQueueto ensure stability.database.js: Defines the multi-version Dexie schema for notes, chats, and metadata.panel.js: The main UI orchestrator handling routing, rendering, and AI interactions.
Download the latest release .zip file and:
- Unzip to a folder
- Open Chrome →
chrome://extensions - Enable "Developer mode"
- Click "Load unpacked"
- Select the unzipped folder
See docs/DEVELOPER_GUIDE.md for development setup.
If you need to rebuild the ML library bundles:
cd dev/build/
npm install
npm run build./package.shThis creates klue-chrome-extension-vX.X.X.zip ready for distribution.
- Chrome browser
- Node.js (for rebuilding ML bundles - optional)
- Open Chrome and navigate to
chrome://extensions - Enable Developer mode
- Click Load unpacked and select the
chrome-clipperdirectory
Note: The dist/ folder with ML bundles is pre-built and included.
To watch for file changes during UI development:
python3 dev/dev-watch.pyOpen the test runner in Chrome:
open dev/tests/test-runner.htmlIf you need to force a full re-index of your library for semantic search, run this in the Side Panel console:
window.reindexAllNotes()- Background: Inspect the "Service Worker" from
chrome://extensions - UI: Right-click in the Side Panel and select "Inspect"
- Debug Scripts: See
dev/debug/for specialized debugging tools
- LLM Integration: Connect to local LLMs (via WebGPU) for fully offline synthesis.
- Enhanced Metadata: Automated scraping for more domains (GitHub, LinkedIn, ResearchGate).
- Export Options: One-click export to Markdown/Obsidian.
- Dark Mode: System-aware theming.
MIT
