examples movies
build 2026-11-23 11:24:20 · rendered 11:29:09.247
0 tabs live
admin / admin log in Share Take the tour
Live queries One stream upstream Typed SDK, 5 languages

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.

Movie.watchList()

Live movie detail

Edit a title in the console, watch it patch in any open detail tab. Ratings append live.

Movie.watchDetail()

Live actors

Browse the cast, click through to filmography. Edits propagate live.

MovieActor.watchList()

Live dashboard

Four counters, one SQL template, one watch.

Dashboard.watchStats()

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/sdk client per BFF process; the same .xsql generates 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.

Destroy the dataset?

This deletes every version, table and row of the Movies model. The guide starts over at "Deploy the data model".

Cancel Destroy

Share this page

Anyone who opens it joins the same live instance — a different machine, a different network, no session shared with yours.

Copy link Show QR Close