Accessing notes from outside silverbullet

Hello,

I’ve come to silverbullet from nextcloud notes and was wondering if there is any way to access notes from other applications on clients. My nextcloud notes would be synced to the client machine and I commonly used a script with fzf that allowed me to quickly search and preview notes with a key press and optionally open them in gvim.

I assume the client storage of silverbullet notes is in a browser database so it would be necessary to first sync the raw notes with something like syncthing - has anyone set up anything like this and could it be problematic in any way?

If I understood your question correctly,

The notes basically live on the server side as raw markdown files in your space folder. The client’s (browsers) database/index is just a local copy of the files. Silverbullet stores all the files where the server runs. depending on where you serve silverbullet from (Docker, Proxmox LXC Container, RaspberryPi, a cloudservice etc.) that is where your physical raw files are located. And Silverbullet is raw-markdown files first. so the server is always building up the local storage from the physical files, and syncs the modifications back to the files.

You can access these physical/raw files and edit them outside silverbullet/browser if you setup a samba-share locally (that is how I access my files sometimes if i want to copy/backup them), of course this is only recommended if the server is running on premise.

If it’s inside a cloud service, probably samba isn’t the right solution.

Could you please describe on how/where is your silverbullet server running, and what kind of edits/modifications/syncs do you want do do with your files locally, so we can also tell if it’s feasible or even doable.

I have silverbullet running directly on a home server, the raw files are in a folder in /var/lib. When using nextcloud notes I was accustomed to being able to press a key and run a script with fzf to very quickly search through all notes - I would like to replicate this with silverbullet so as not to have to always go to a browser and open a tab for quick consults or edits.

I was just curious what other methods people had come up with to achieve accessing the notes from outside silverbullet - I had considered an nfs/samba mount but that wouldn’t be quite as robust as it would require a connection.

Since it’s just a folder of plaintext files, you should be able to use essentially anything. Syncthing, like you suggested, should Just Work :tm:.

I use docker and have done some nested volume bindings to get different folders accessible by different containers. I imagine you could do similarly, if you wanted to use syncthing or some other file syncing service with minimal interference with/towards silverbullet

1 Like