Skip to content

Add AI category suggestions for custom bookmark organization#46

Open
Microck wants to merge 1 commit intoviperrcrypto:mainfrom
Microck:feat/ai-category-assistant
Open

Add AI category suggestions for custom bookmark organization#46
Microck wants to merge 1 commit intoviperrcrypto:mainfrom
Microck:feat/ai-category-assistant

Conversation

@Microck
Copy link

@Microck Microck commented Mar 11, 2026

Summary
Add an AI assistant on the categories page that suggests custom categories based on the user's existing bookmarks.

What changed

  • add lib/category-suggester.ts to sample bookmarks and ask the configured AI provider for category proposals
  • add GET /api/categories/suggest to generate suggestions
  • add POST /api/categories/suggest to create approved suggestions as categories
  • add an AI Assistant flow in app/categories/page.tsx for reviewing and selectively creating suggestions

How it works

  • samples up to 100 bookmarks
  • asks the configured AI provider for 3-8 category suggestions
  • shows a name, description, confidence score, bookmark count, and example bookmarks for each suggestion
  • lets the user choose which suggestions to create

Why
Creating categories manually is high-friction when a library is large. This gives users a faster starting point while keeping the final decision in their hands.

Verification actually done

  • ran npx tsc --noEmit
  • confirmed the branch is isolated to the category assistant changes

- Create category-suggester.ts library for AI-powered category suggestions
- Add /api/categories/suggest endpoint for generating and creating categories
- Add AI Assistant modal to categories page with approval/rejection workflow
- Analyze bookmarks and suggest 3-8 natural topic clusters
- Display confidence scores and example bookmarks for each suggestion
- Allow batch creation of selected categories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant