hoarder-app / hoarder

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
https://hoarder.app
GNU Affero General Public License v3.0
6.42k stars 235 forks source link

[feature request] trigger webhooks #384

Open 4383 opened 2 months ago

4383 commented 2 months ago

Hey there,

I'm looking for a bookmark solution that allow me to trigger webhooks to a specified url once I bookmark a thing (a note, an article, a blog post et....).

AFAIK this is not feasible with hoarder. Do you think it would be possible to implement this kind of feature?

Thanks for all the work you have already done.

MohamedBassem commented 2 months ago

It's indeed currently not possible. Do you mind expanding a bit on how you'd use this?

4383 commented 2 months ago

Sure.

Here is my personal use case:

I daily read books, during my reading I take notes and store links into hoarder. I store my personal notes by using the obsidian markdown editor to create my own zettlekasten (an obsidian vault).

But today to automatize my note taking process, I created my own system:

My knowledge base is growing automatically in parallel of my reading and I have no friction due to note taking during learning.

If I'm able to simply store in hoarder the link of web page explaining the concept, by example a wikipedia page, and then trigger web hook to my local LLM endpoint, then I'd be able to remove lot of mechanisms I used to create this workflow.

The ideal workflow would be:

  1. I create a bookmark;
  2. the LLM prompt is triggered by the hoarder webhook on bookmarks additions (by passing the title of bookmark);
  3. my note is automatically created in my vault on the result of the LLM prompt request.

My LLM endpoint would be exposed by a script to manage the IO operations (the local file creation).

Let me know if you need more details.