Re:Lemmy, an open-source federated Reddit alternative, gets ...
by 0x6c6f6c on Sunday June 28, 2020 @10:03AM
(#23668746)
There's a fully JavaScript implementation of gRPC[0] that you may be able to use should you implement a web app using Service Workers[1]. This would be installable for browsers in a manner that should provide long-lived access to the network.
0. https://www.npmjs.com/package/@grpc/grpc-js 1. https://developer.mozilla.org/en-US/docs/Web/API/Service_Wor...
Re:Lemmy, an open-source federated Reddit alternative, gets ...
by LockAndLol on Sunday June 28, 2020 @03:22PM
(#23671333)
> Both are properly isolated and talk to each other only over declared GRPC APIs. I’ve tried very hard to keep it hackable that way.
That's a great architecture! I look forward to hacking on it when I have the time!
We use Electron exclusively for GUI. The real app is a Go binary with a GRPC API. It’s all fully isolated, so if you don’t want to touch any Electron, you don’t have to. Use the API to build a CLI app, for example.
To be more specific, we have two Go binaries that we ship, one is the aether-backend that talks to the network, the other is the aether-frontend that compiles the content coming from the network into a social graph. Both are properly isolated and talk to each other only over declared GRPC APIs. I’ve tried very hard to keep it hackable that way.