Every query is a live query.
This app is two .xsql files deployed against a Synthigy model.
Each query in them is watchable, and every page here is nothing but those
watches painted to the screen.
Live movies list
Rate a film in one window, its average and count repaint in the other.
Live movie detail
Edit a title in the console, watch it patch in any open detail tab. Ratings append live.
Live actors
Browse the cast, click through to filmography. Edits propagate live.
Live dashboard
Four counters, one SQL template, one watch.
What's going on under the hood
- Any query can carry
@watch— a list, a detail, a hand-written SQL template — and repaint whatever it feeds when a write touches it. - One SSE from BFF → Synthigy
/data/events, regardless of how many browser tabs are open. - One
@synthigy/sdkclient per BFF process; the same.xsqlgenerates typed clients in JS, Python, Go, Clojure and PHP. - Each page opens one SSE from browser → BFF; BFF translates SDK watch events into Datastar element patches.
- Login is OIDC authorization-code with PKCE. Tokens stay server-side.