@gordon.bsky.social Do you have links to the "island architecture w message bus" approach? :o
@gordon.bsky.social Oh cool I do a similar approach for Agregore actually. But instead of components listening on window I wire them up in a main "script.js" so I can keep the components separate from the data and general app shape. https://github.com/AgregoreWeb/agregore-browser/blob/master/app/ui/script.js
Got any code I could read?
@gordon.bsky.social Linux desktop uses the message bus approach FWIW :o https://en.wikipedia.org/wiki/D-Bus
@gordon.bsky.social this is very similar to what ive done with web components, although i have used a combination of an incoming message bus from the serverside and tagging components with ids of other components they might want to directly interact with. it works well :> death to complex frontends!
It's just something that I've been playing with... Simplest version: - Components emit custom events for requests like "toggle sidebar" - Sidebar component listens on window for bubbled "toggle sidebar" events. Components don't need to know about each other, they just pub/sub custom events.