I wanted to implement a twitter/X oauth sync (e.g. bookmarks) for logseq with a plugin. This requires a callback to my plugin code from twitter/X. The “only” and best solution would be to use the logseq (logseq://…) handler. Unfortunately the existing plugin API does not allow the use of custom handler endpoints in plugins.
Here is my thread in the help section (including links to my commits in my logseq fork): Using custom protocol handler for plugins
I tried to implement a solution for logseq as contribution, but after spending quite some time, I could not manage to implement it succesfully (callbacks didnt go through from CLJS to JS in my plugin). For someone that knows the architecture and codebase, this should be an easy task probably.
I would love to see this feature to be able to use more features in custom plugins in the future.