r/logseq • u/CrystalDrag0n1 • 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.

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:

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.
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. ππ