[GH-ISSUE #1993] Support or error on duplicates #1240

Open
opened 2026-03-02 11:56:00 +03:00 by kerem · 2 comments
Owner

Originally created by @javydekoning on GitHub (Sep 30, 2025).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/1993

Describe the feature you'd like

Allow storing duplicate urls or throw error in logs.

Describe the benefits this would bring to existing Karakeep users

Users may use singlefile in "selection" mode for storing excerpts from a page. Today, I was storing partials from a Claude.ai chat and didn't understand why my bookmarks didn't get stored. I only received 200-OK in my logs, so not super helpful.

Preferable allow duplicate url entries (with different attachments) or throw at least throw a warning in the logs.

Can the goal of this request already be achieved via other means?

No

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundamental request

Additional context

No response

Originally created by @javydekoning on GitHub (Sep 30, 2025). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/1993 ### Describe the feature you'd like Allow storing duplicate urls or throw error in logs. ### Describe the benefits this would bring to existing Karakeep users Users may use singlefile in "selection" mode for storing excerpts from a page. Today, I was storing partials from a Claude.ai chat and didn't understand why my bookmarks didn't get stored. I only received 200-OK in my logs, so not super helpful. Preferable allow duplicate url entries (with different attachments) or throw at least throw a warning in the logs. ### Can the goal of this request already be achieved via other means? No ### Have you searched for an existing open/closed issue? - [x] I have searched for existing issues and none cover my fundamental request ### Additional context _No response_
Author
Owner

@MohamedBassem commented on GitHub (Oct 11, 2025):

The singlefile endpoint returns 201 when the bookmark is created, and 200 when it already exists. I feel like that's acceptable from the REST API endpoint perspective?

The docs also explains the flags to control what happens when the bookmark already exists: https://docs.karakeep.app/guides/singlefile#handling-existing-bookmarks

Is this not enough?

<!-- gh-comment-id:3393575327 --> @MohamedBassem commented on GitHub (Oct 11, 2025): The singlefile endpoint returns 201 when the bookmark is created, and 200 when it already exists. I feel like that's acceptable from the REST API endpoint perspective? The docs also explains the flags to control what happens when the bookmark already exists: https://docs.karakeep.app/guides/singlefile#handling-existing-bookmarks Is this not enough?
Author
Owner

@javydekoning commented on GitHub (Oct 11, 2025):

Doesn't help my use-case. To give you an idea, I was using a Claude chat to rewrite food recipes in a specific format.

For every recipe I select the output, use the selection feature of singlefile to inject the recipe into Karakeep.

I'd like every recipe to be its own entry into Karakeep. But because the url isn't unique that's not possible.

<!-- gh-comment-id:3393580323 --> @javydekoning commented on GitHub (Oct 11, 2025): Doesn't help my use-case. To give you an idea, I was using a Claude chat to rewrite food recipes in a specific format. For every recipe I select the output, use the selection feature of singlefile to inject the recipe into Karakeep. I'd like every recipe to be its own entry into Karakeep. But because the url isn't unique that's not possible.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#1240
No description provided.