Graphview Plug for Silverbullet

Hi All, Silverbullet had a graphview plug - that visualizes the notebook as a graph. It eventually stopped working when SB evolved. I am bringing it back to life here: silverbullet-graphview and Zef was kind enough to hand it over to me. So far, all the original functionality is restored and some improvements has been made; I sure do plan to add more features and have some things in mind. Let me know what you think :smiley:

11 Likes

Pretty great! - Thank you for the update. Weā€™ve added to our instance at work and the team liked it.

Some feedback Iā€™ve got:

  • option to hide attachments and images
  • highlight current open page in graph
  • option to limit view to current page references
  • being able to click on the ā€˜nodesā€™ in addition to the name of the node

That said, we like it as is and we already have some ideas on how to use it.

Cheers
CF

PS: in reference to the other topic. Thank you for adding the ā€˜hide with prefixā€™ feature - pretty awesome!

1 Like

option to limit view to current page references

A local graph view is something I have in plan which @Maarrk had also pointed out as a would-be-great addition in the other discussion. For now, the next update would introduce highlighting the node and itā€™s immediate neighbors with mouse hover.

being able to click on the ā€˜nodesā€™ in addition to the name of the node

This oneā€™s coming :slight_smile: Next update it is; Iā€™m already testing it out.

For the remaining ones, could you create an issue in Github, so that we donā€™t lose track of it?

2 Likes

Sounds great and done! Looking forward to it, thank you!

Cheers
CF

Tried the new version, and I donā€™t see the undefined node anymore!

Also the graph feels a bit faster to move around. I havenā€™t strictly tested it, but I donā€™t want to ruin my happiness in case itā€™s just placebo :zipper_mouth_face:

1 Like

Thank you. I have also moved to using github-releases to keep a stable version out always, while I work on further development. Iā€™d suggest using - ghr:deepkn/silverbullet-graphview in PLUGS to stay on the latest stable version. Use the - github:deepkn/silverbullet-graphview/graphview.plug.js only if you want the latest code (could have some bugs). Oh - and yes nodes are clickable on the latest stable release :wink:

2 Likes

I really like this idea of separate releases.

Testing the last stable version and it is great! - We can click on the nodes and hovering over nodes highlights only the attached nodes.

Well done!

3 Likes

What a great plugin. Really funny to see the notes space in such a way; even color, if set up correctly.

What is the actual logic of the arrangement of all the dots?

Honestly most of he heavy lifting there is handled by d3.js, specifically d3-force that lets you simulate physical forces on nodes. The force value in this case is derived from the number of links to a node - so a node with more links will appear bigger and will cluster itā€™s neighbors together giving it the appearance that you are seeing.

1 Like

Thanks for your reply. I will have a look at this then! (=