Skip to content

camille-vanhoffelen/smart-default-bookmark-folder

Repository files navigation

Smart Default Bookmark Folder Icon Smart Default Bookmark Folder

Sometimes saves you three clicks!

A Firefox browser extension that automatically puts new bookmarks in the best matching folder.

✨ Features

  • Smart: Uses embeddings to compare bookmark contents, titles, and paths
  • Fast: Processes new bookmarks near-instantly
  • Private: ML runs in your browser using Transformers.js

🛠️ How It Works

When you bookmark a page, the extension extracts clean text content using Mozilla Readability. It then calculates furiously fast potion static embeddings with Transformers.js The embeddings are stored locally in browser storage, keyed by bookmark/folder ID for fast retrieval. When you create a new bookmark, its content is compared against existing folder and bookmark embeddings using cosine similarity. Finally, the new bookmark is automatically moved to the best matching folder.

🚀 Getting Started

Prerequisites

This build was only tested on macos 15.6.1, with node v24.4.1, and npm v11.4.2

Installation

  1. Install dependencies:
npm install
  1. Build the extension:
npm run build

This bundles all the necessary source code and files under build/, and packages the extension as a .zip under dist/.

Development

Run the extension in development mode:

npm run dev

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Credits

Author: Camille Van Hoffelen

Built with:

Icons made from:

About

Firefox extension which guesses the best folder for new bookmarks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published