An open API service indexing awesome lists of open source software.

https://github.com/deltartificial/bookmarks-classification-ts

Automatically organize and classify your browser bookmarks using AI.
https://github.com/deltartificial/bookmarks-classification-ts

ai bookmarks chrome classification deepseek firefox manager openai sort ts typescript

Last synced: 3 months ago
JSON representation

Automatically organize and classify your browser bookmarks using AI.

Awesome Lists containing this project

README

        

# Bookmark Organizer 📌

Automatically organize and classify your browser bookmarks using AI.

![image](assets/image.png)

## Features

- Supports Chrome and Firefox bookmarks
- Multiple AI models supported (OpenAI and DeepSeek)
- Automatically creates meaningful folder structures
- Optional folder grouping to limit the number of top-level folders
- Adds relevant tags to bookmarks

## Installation

```bash
# Clone the repository
git clone [repo-url]
cd bookmarks-classification-ts

# Install dependencies
bun install
```

## Usage

1. Export your bookmarks from Chrome or Firefox as HTML
2. Place the exported HTML file(s) in the `data` folder
3. Run the organizer using one of these methods:

```bash
# Using environment variable
export AI_API_KEY='your-api-key'
export AI_MODEL='openai' # or 'deepseek'
bun run organize

# Or directly with the command
bun run organize --api-key 'your-api-key' --model openai

# Specify browser (chrome is default)
bun run organize --browser firefox --model deepseek

# Limit the number of top-level folders (will group similar folders together)
bun run organize --max-folders 10

# Add custom instructions for bookmark classification
bun run organize --prompt "Focus on technical and professional categories"

# Add custom instructions for folder grouping
bun run organize --group-prompt "Prioritize development-related categories"

# Use all options
bun run organize --api-key 'your-api-key' --model openai --browser chrome --max-folders 15 --prompt "Focus on work-related categories" --group-prompt "Create industry-specific groups"
```

The organized bookmarks will be saved in `data/output` with a timestamp in the filename.

## Requirements

- Bun runtime
- API key (OpenAI or DeepSeek)
- Chrome or Firefox bookmarks exported as HTML

## Supported AI Models

- OpenAI (GPT-3.5-turbo)
- DeepSeek (deepseek-chat)