How to create settings page

Good afternoon,

I am working on a plugin which will integrate with Spotify to display a list of recently listened tracks in response to a slash command.

This is all working, but I am really struggling with how to build a settings/preferences page for the user in Logseq. I can’t find much documentation for this and the examples I am looking at are all built in Node/TS whereas I am using JS.

Could someone have a look at my code please and guide me on how to build this?


What are some user preferences are you thinking of having?

At a minimum, I need a place for the user to insert the “user_id” token generated to identify them with Spotify.

Ideally I would also like to add flexibility as to how the output is displayed in the notes.

I’m not very good at writing plugins yet, but I might be able to help you out.

I have created 3 plugins in Javascript.

I forked your repository. I will open a pull request.

1 Like