Skip to content

About

Smart Bookmarks is a cross-browser extension that intercepts new bookmarks and uses Large Language Models (LLMs) to automatically categorize them into a recursive folder structure. It transforms a flat list of links into a well-organized knowledge base.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🧠 Smart Bookmarks

Stop drowning in "Unsorted Bookmarks". Let AI organize your web life.

License Manifest Platform

Smart Bookmarks is a cross-browser extension that intercepts new bookmarks and uses Large Language Models (LLMs) to automatically categorize them into a recursive folder structure. It transforms a flat list of links into a well-organized knowledge base.

✨ Key Features

  • 🤖 Multi-LLM Support: Choose your brain. Supports OpenAI (GPT-4o), Anthropic Claude, Google Gemini (Free Tier available), DeepSeek, and Ollama (Local Privacy).
  • 📂 Recursive Categorization: It doesn't just guess a category; it builds a path.
    • Input: A tutorial on React Hooks.
    • Output: Creates Development > Web > React folders automatically.
  • 🔒 Privacy-First Architecture: Your API keys are stored in chrome.storage.sync (encrypted by the browser) and are never sent to any intermediate server.
  • 🧪 Debug Playground: Includes a "Dry Run" mode in settings to test your prompts without cluttering your actual bookmarks.

🛠️ Architecture

This project uses Manifest V3 service workers to handle events asynchronously.

Architecture


🚀 Installation Guide

Prerequisites

You will need an API Key from one of the following providers:

Option A: Install from Release (Recommended)

  1. Download the latest release from the Releases Page.
    • smart-bookmarks-chrome.zip for Chrome/Edge/Brave.
    • smart-bookmarks-firefox.zip for Firefox.
  2. Unzip the file to a permanent location.
  3. Load the extension:
    • Chrome: Enable "Developer mode" in chrome://extensions, click "Load unpacked", and select the unzipped folder.
    • Firefox: Go to about:debugging, click "This Firefox", "Load Temporary Add-on...", and select the manifest.json.

Option B: Build from Source

  1. Clone this repository:
git clone https://github.com/Savitar608/smart-bookmarks.git
cd smart-bookmarks
  1. Build the extension:
# Make scripts executable
chmod +x build-chrome.sh build-firefox.sh

# Build for your browser
./build-chrome.sh    # Output: dist/chrome
./build-firefox.sh   # Output: dist/firefox
  1. Load the extension from the dist/ folder:
    • Chrome: Load dist/chrome.
    • Firefox: Load dist/firefox.

⚙️ Configuration

  1. Click the Smart Bookmarks icon in your toolbar and select Options.
  2. Select Provider: Choose between OpenAI, Claude, Gemini, DeepSeek, or Ollama.
  3. Enter API Key: Paste your key.
  • Note for Ollama Users: Ensure your local server is running (ollama serve). The default URL is http://localhost:11434.
  1. (Optional) Test It: Use the "Debug Playground" at the bottom of the page to categorize a test URL and see the result.
  2. Click Save.

Advanced Configuration (Developers)

To change the default models (e.g. gpt-4o vs gpt-3.5), API endpoints, or the System Prompt used for classification, edit src/config.js. This allows you to customize the extension's behavior without diving into the core logic.


🐛 Troubleshooting

Issue Possible Cause Solution
Nothing happens when I bookmark Extension sleeping The service worker might be idle. Reload the extension in settings.
"API Error" in Console Invalid Key Check if your API Key has quota/credit remaining.
Ollama connection failed CORS / Server Down Ensure Ollama is running and start it with OLLAMA_ORIGINS="*" environment variable.
Folders created in wrong place Root ID Mismatch The extension defaults to "Other Bookmarks". You can drag folders manually if needed.

🛣️ Roadmap

  • Context Menu: Right-click a page to "Bookmark with Custom Note".
  • History Organizer: Batch organize past bookmarks (Caution: destructive action).
  • Local LLM Embedding: Use Chrome's experimental built-in Nano model (Zero API keys).

🤝 Contributing

Contributions are welcome! Please open an issue to discuss major changes.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

Distributed under the MIT License. See LICENSE for more information.

About

Smart Bookmarks is a cross-browser extension that intercepts new bookmarks and uses Large Language Models (LLMs) to automatically categorize them into a recursive folder structure. It transforms a flat list of links into a well-organized knowledge base.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages