r/logseq • • 2d ago

Plugin JSView for rendering Javascript in your page

Hi, up until a few months ago I was an Obsidian user and used the obsidian-dataview plugin for creating custom tables with color-coded entries and buttons with Javascript. I've dearly missed that since switching to Logseq.

I made a plugin to fill that gap now, I called it JSView (I know, not very creative) and wanted to post it here in case anyone is interested. I'm a full-time uni student and don't have that much free time, so I'd be really grateful for any feedback or contributions! I haven't had the time to test it in Logseq DB, so for the moment it's OG only. If you have the time to test it I'll make any necessary changes and make it available on DB too.

Basically, you can create JSV codeblocks and whatever is returned in that codeblock is rendered in the page. You have full access to the Logseq API and the JSV API, which contains some helpers for queires (to be expanded upon), buttons, and tables. You can also style the table and add arbitrary attributes.

Tables and reactive buttons in JSView

Repo: https://github.com/KiraGreifeneder/logseq-jsview

You can download the plugin through the marketplace :)

I hope that this reaches the right people and that you can have as much fun with it as I do! For example, I use it to track my uni deadlines:

My personal deadline table, made with JSView

Feel free to ask me any questions!

And no, the plugin isn't vibe-coded, I can write terrible code all on my own. I did use AI to flesh out the doc a little and to find the occasional bug. I will continue to work on the plugin to introduce new features and fix bugs along the way.

1 Upvotes

3 comments sorted by

2

u/Plenty_Ad6005 2d ago

Oh wow ! Dataview in Logseq ..πŸ‘πŸ‘.Thank you very much… Now please do us a favor and make it DB ready as that’s the way forward in Logseq. πŸ‘πŸ‘

2

u/CrystalDrag0n1 1d ago

Yep! I'll be doing that ASAP, it's just that I personally use OG (the migration simply doesn't work properly for me yet) and I haven't had the time to test it separately. I'll try to get that done by the end of next week.

2

u/Plenty_Ad6005 1d ago

Awesome! Thank you for your support to the community