You are reading content from Scuttlebutt
@mikey %51iHc9J9IeoYEvoQmbsPT3wsLqdFgT4lAQzFImRC6zI=.sha256
Re: %34gUflsZy

Could we just render such links as git-ssb:<id> and use the OS's protocol routing stuff to start the relavant app? we could also do dat and ipfs integration this way.

we had a similar idea here, copied below:


what if there was a JSON file in ~/.ssb (or part of the standard ~/.ssb/config) that mapped message types to shell commands to open those messages? kinda like file extension handlers / launchers in most operating systems.

so something like

{
  "post": "ssb-patchwork --open ${id}",
  "git-repo": "git ssb open ${id}"
}

this of course means implementing the necessary functionality in patchwork and git-ssb-web in order to open specific messages (and starting the electron app or web server if not already).


We should probably also think about "protocol handlers" e.g. ssb:// system wide.


so let's continue this train of thought. if we know how to open messages, then it shouldn't be that hard to write a module ssb-launcher which reads this config and runs the appropriate command. then we can all register ssb-lancher to handler ssb:// protocol links, if the links were in format ssb://${encodeURIComponent(messageId)}. would that work?

Join Scuttlebutt now