Expose space folder via WebDAV?

I sometimes would like to do some manipulation of files in my space (copy in a bunch of files, restructure), but it’s hosted on my server and I’d have to ssh in.

I was thinking of implementing WebDAV in SilverBullet, so you can just mount your server as a volume in your local finder, explorer or whatever your OS offers for file management. Basically every OS supports WebDAV natively. Shouldn’t be very hard to do actually.

Any interest?

3 Likes

Isn’t it easier to let the underlying os handle this?

It could help user that don’t have admin access to the server though.

I have been doing SSH for now, and I think introducing WebDAV can open some interesting opportunities. The most immediate one (marked for 1.0): attachment management could be implemented through WebDAV without any extra magic in the core.

Maybe the concurrency control part of DAV would help with multi-tenancy ideas? Federations with write access? Hosting as a Nextcloud app?

Also, there were ideas for getting calendar events to daily note (CalDAV), synchronising contacts (CardDAV). I remember some npm packages for DAV not playing nicely with Deno, so having a canonical example in the main codebase would help me with these, share config etc.

Basically an integrated WebDAV support sounds interesting.

However, there is a nice project, which I’m using frequently, doing exact this job quite well.
In fact, for me that was the tool I was using to manage my notes before I found silverbullet.
It could be easily integrated e.g. in the silverbullet docker container.

Maybe it’s worth a try, and save the effort of re-inventing the wheel :slight_smile:

Some features:

  • only one executable
  • mounting directories is possible
  • integrated web-frontend, where you are able to add/edit files directly, too
  • hide files/folders
  • access rights
1 Like

I don’t see how this is something you’d have to do? The glorious glorious thing about SB is that it’s all just files on disk, so you can access or sync or edit however you want, regardless of what SB does or doesn’t support.

Am I missing something?

Personally I use external storage option of Nextcloud and sync to my desktop and laptop PC.

Integrated WebDAV support can be interesting, but is another brick to maintained and after, you need to add S3, FTP, FTPS, SMB,… You can use external lib, but for me, my opinion is not a job for SilverBullet, maybe for plugin.

Right, this may not be worth doing. The thing is that I think SB already implements 80% of WebDAV as is (it implements GET, PUT, DELETE methods) so all I’d have to add is a few more (PROPFIND, PROPPATCH, LOCK and UNLOCK) which seems fairly easy to do, but we’ll see.

1 Like