Develop Seed Hypermedia

Develop Seed Hypermedia

Issues
Projects
Tech
Design
Notes
Meetings
Workflows
Issues
Projects
Tech
Design
Notes
Meetings
Workflows

Documents

  1. >Tech
  2. >How Reactive we can be?
How Reactive we can be?

horacio

17 May 2026, 12:12
horacio

horacio

·17 May 2026, 12:12
ContentPeople11CommentsCitations
ContentPeople11CommentsCitations

first tests creating a new reactive package

Error with the video file.

@shm/reactive — what it is, why it exists, and how it works

A small reactive layer between our Go daemon and the Electron renderer. Think TanStack Query, but events come to you instead of you polling for them. This post walks through the design of the new @shm/reactive package (frontend/packages/reactive/) and how it connects daemon-side state changes to React components without polling. It's aimed at teammates who already know our desktop stack (Connect-RPC + TanStack + electron-trpc) but haven't read the Riffle paper that inspired it. The problem Where the idea comes from Architecture in one picture The renderer side is ~250 lines of TS. The main-process side is ~90 lines. The three building blocks How an event travels end-to-end Why the polling step is temporary Bridging the old world: TanStack co-existence A second example — discovery progress (slice 1.5) The dev-only overlay What this isn't How to read the code (suggested order) What we plan to migrate next TL;DR The whole point: the daemon already knows when things change. We just gave it a way to tell the UI without making the UI ask repeatedly.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

/
@shm/reactive — what it is, why it exists, and how it works
Comment(18 May)
Powered by Seed HypermediaOpen App