Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature idea: webhooks #492

Open
pettijohn opened this issue Jun 19, 2023 · 2 comments
Open

Feature idea: webhooks #492

pettijohn opened this issue Jun 19, 2023 · 2 comments
Labels
question Further information is requested

Comments

@pettijohn
Copy link
Contributor

pettijohn commented Jun 19, 2023

I was looking into self-hosted options that take web snapshots similar to Internet Archive Wayback Machine (see a few options here), and thinking how that could be integrated with Linkding. A generic solution could be to add the ability to add webhooks that Linkding triggers upon saving a new bookmark. Configuration would allow end user to pick HTTP method (GET/POST at least) and a URL with tokens of at least bookmarked url, comma separated list of tag; title & description maybe, and possibly a user identifier for who initiated (but really that should be handled by the remote service with an API key or similar). POST methods might need another textarea input to construct the body. An example user input might be: on new bookmark save «or other trigger action», trigger GET «or POST» to https://my.archive.service/api/save?urlToSave={url}&tags={tags_comma_separated}

Not sure if there is any demand for such a feature, but I thought I'd share the idea. Personally, I like the idea of being able to trigger services that export a web page to PDF or MHTML, or perhaps trigger youtube-dl for links with certain tags, storing those in my own personal archive.

@sissbruecker
Copy link
Owner

I'm not sure that a generic mechanism provides a good user experience here. Then everyone who would want to configure some service would have to start from scratch in figuring out which URL, headers etc. to configure. Looking at Miniflux for example they support a specific set of services, each with their own configuration UI, and building the request just happens under the hood.

Another aspect is surfacing links in the UI. If you configure a custom archiving service, you would probably expect that the bookmark list shows links to the archived snapshots that have been created through that. That would just be another hassle if you would have to configure those manually, even if it's just a name for the service.

@sissbruecker sissbruecker added the question Further information is requested label Jul 29, 2023
@pettijohn
Copy link
Contributor Author

I take your point, especially showing the link to archived snapshot inline. Does linkding have a plugin/extension architecture to allow third parties to add functionality without modifying the linkding source code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants