hyperfiddle

Roman Morozov 2026-05-14T09:17:25.822289Z

Could the Electric model theoretically be made to support an offline-mode + a stateless server? You write the code all the same, (even stuff like e/watch) but then issue requests manually (instead of persistent WebSocket streaming) and on each request this happens: 1. Server wakes up 2. The entire graph is re-hydrated based on cache for that user session 3. The diffs are calculated and stuff happens, necessary things are cached etc... 4. Server dies I know that's not what Electric is for at all, but I'm fascinated with it being a general-purpose distributed silver-bullet that you can use even for simple stuff

henrik 2026-05-14T11:01:19.852299Z

You’d have to trust the client to tell the truth about the state, which feels like a potential security issue, or you’d have to store the current state away somehow and recall it later. Or sleep the server, preserving in-memory content, rather than shutting it down. If you persist it, you’d have to get rid of it if the client goes away. Otherwise, a proxied WS feels like it should work. Ie., the proxy keeps the WS alive, and the connection proxy->server is what goes away. Electric’s liveness pings might not be compatible with this though, I’m not sure.

henrik 2026-05-14T11:03:01.967129Z

I’m going to predict that the Hyperfiddle team will say what they usually say regarding things like this: “It’s possible. It’s not a priority.”

👍 1
Dustin Getz (Hyperfiddle) 2026-05-14T11:36:20.028429Z

ha ha yes

Dustin Getz (Hyperfiddle) 2026-05-14T11:36:55.904389Z

you can more or less model http transport as a really lagged websocket, so yes it can work in principle

Dustin Getz (Hyperfiddle) 2026-05-14T11:37:12.161139Z

the ws proxy is a neat idea

Dustin Getz (Hyperfiddle) 2026-05-14T11:41:01.320249Z

but you're going to hit a core impedance mismatch, software systems work best when the abstraction primitives align to the workload, and Electric is formally a signals/frp abstraction, which aligns to realtime stateful workloads. For example, Electric to this day is not great at transactional crud apps because the discrete transactional nature of the database needs to be unified with the continuous reactive nature of the views

❤️ 1
Dustin Getz (Hyperfiddle) 2026-05-14T11:44:49.445609Z

We've got a clear hypothesis for transactions (informed by years of real world usage) with working POCs etc (see the e/Token primitive) but this didn't fall out of the computational structure for free like a lot of the query side primitives did

Dustin Getz (Hyperfiddle) 2026-05-14T11:46:07.695829Z

So, the closer you can unify with the signal workload shape, the happier you will be, and putting http RPC in the middle of a signal graph is the opposite of what you want

💡 2