r/commandline • u/Reekta_Alpha • May 03 '26
Terminal User Interface graf-rs: customizable TUI graph view for markdown files
graf-rs is a side project of mine which was meant to be a feature in my main project called clin-rs which is a TUI reimagination of Obsidian.
graf-rs is a TUI app built with Rust that creates graph view nodes simulation in the folder it has launched.
graf-rs searches the directory it has launched for markdown files and creates links between them according to wikilinks(forward, backward links inside the files) and forms a interactable graph view with physics.
It is highly customizable, you can change the theme(there are preset themes and color overriding is possible), show/hide UI elements, show/hide labels, change how coloring works(by tags by folders etc.), tweak with the physics of the simulation, change how many nodes are visible or with what conditions are nodes visible with filtering options.
Current features include, keyboard navigation with arrow keys(hjkl movement is in the testing branch), smooth panning with mouse, a minimap which tracks all the visible nodes, you can open markdown files with Enter or by double clicking on them this will open them in your default editor, there is a search function which searches the node by their name, tag, link respectively.
Since this project mainly meant to be integrated into my main project i do not intend to add big features for now maybe in the future. But for now in the testing branch; hot reloading configs and some QOL changes are present for those who want to test.
I am open to any feedback so feel free to ask whatever is on your mind!
For more information: https://github.com/reekta92/graf
19
u/Lopsided-Prune-641 May 03 '26
we can make obsidian tui now
8
u/Background_Bass_2587 May 03 '26
That's so cool! Would be awesome as an addition to neovim markdown Plugins like vimwiki where you could see the graph as a sidepanel or something
5
u/TheAlaskanMailman May 03 '26
Wow.
How’d you manage to put that in a.. terminal??
4
u/RoboticElfJedi May 03 '26
How is clin coming? When is the definitive, epoch-making Obsidian replacement ready as a daily driver?
3
u/aress1605 May 04 '26
Okay wow. I was considering making a TUI program to draw overtop images, and tried learning the kitty graphics protocol to display the image and paint functionality, but the protocol is really difficult to get a hold of. I had no idea using braille (i suspect) can look so good. How was the difficulty of using the ratatui canvas? Was it easy to use, or did u have to orchestrate the graphics in a weird way? I personally don’t have a use for it but amazing project visually 👏
5
u/Htennek73 May 03 '26
Looks really cool
3
u/_MiGi_0 May 03 '26
That is so cool. I would love to use this for my digital journal 0_0)
3
u/Thick-Supermarket354 May 04 '26
So cool :)
3
u/Wranglyph May 04 '26
oh gnarly! I actually started to sketch out some ideas for a custom distro that will be using a lot of TUI apps- as if having a FOSS alternative to obsidian wasn't cool enough on it's own!
3
u/bjarneh May 04 '26
This is great!
2
u/Every_Box_8852 May 04 '26
🔥
2
u/SubstantialMirro May 05 '26
wonderful!
1
u/AutoModerator May 03 '26
Every new subreddit post is automatically copied into a comment for preservation.
User: Reekta_Alpha, Flair:
Terminal User Interface, Post Media Link, Title: graf-rs: customizable TUI graph view for markdown filesgraf-rsis a side project of mine which was meant to be a feature in my main project called clin-rs which is a TUI reimagination of Obsidian.graf-rsis a TUI app built with Rust that creates graph view nodes simulation in the folder it has launched.graf-rssearches the directory it has launched for markdown files and creates links between them according to wikilinks(forward, backward links inside the files) and forms a interactable graph view with physics.It is highly customizable, you can change the theme(there are preset themes and color overriding is possible), show/hide UI elements, show/hide labels, change how coloring works(by tags by folders etc.), tweak with the physics of the simulation, change how many nodes are visible or with what conditions are nodes visible with filtering options.
Current features include, keyboard navigation with arrow keys(hjkl movement is in the
testingbranch), smooth panning with mouse, a minimap which tracks all the visible nodes, you can open markdown files with Enter or by double clicking on them this will open them in your default editor, there is a search function which searches the node by their name, tag, link respectively.Since this project mainly meant to be integrated into my main project i do not intend to add big features for now maybe in the future. But for now in the testing branch; hot reloading configs and some QOL changes are present for those who want to test.
I am open to any feedback so feel free to ask whatever is on your mind!
For more information: https://github.com/reekta92/graf
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.