sissbruecker / linkding

Self-hosted bookmark manager that is designed be to be minimal, fast, and easy to set up using Docker.
MIT License
5.33k stars 261 forks source link

[Feature Request] Bookmark Assets API #718

Open tnt1232007 opened 2 months ago

tnt1232007 commented 2 months ago

Scenario

Hi, I am thinking of using a LLM to summerize the articles that I saved in Linkding.

Currently I am trying to do it with n8n:

  1. Fetch the bookmark article from Linkding
  2. Run its content through a LLM to summerize
  3. Save the response as an asset back to Linkding

But I find out there's no APIs available to read and upload assets afaik

Requests

Please review and consider the implemention. Thanks for the amazing works, especially the recently added features, I love the snapshot and reader mode.

sissbruecker commented 2 months ago

Exposing a list of assets through the bookmark details, and then having an endpoint for downloading an asset by ID would probably be a good start. Contributing that shouldn't be too difficult if you're interested.

Regarding reader mode, converting the HTML into a readable article actually only happens in the browser when you open the reader view, so that content is not available on the server. Depending on which language you want to use for processing your bookmarks there is probably some similar library for extracting the readable content from an HTML document.