Pages that update themselves.
Name the tables to stream, call useLive in a page, and its reads refresh as rows change. Each change is re-read per viewer.


- The page's reads stay current
- useLive(table)
- Access applies to every update
- Re-read per user
- Chat, typing and who's here
- Channels
- Your own messages to every listener
- Topics
What you get
Live reads
useLive keeps a page current, with no websocket code.
Private by default
Each change is re-read as each subscriber.
Channels and presence
Chat rooms, typing and who's here, declared in app.config.ts.
Topics
Publish your own messages: all a notification bell needs.
How realtime works
// app.config.ts
realtime: {
live: ["booking", "message"],
channels: {
room: { access: ["member"], presence: true, table: "room" },
},
},
// routes/classes/[id].tsx
useLive("booking"); // refreshes this page's booking reads
const booked = useQuery("booking", { where: { session_id: id } });
// components/Room.tsx
const app = useAppHandle();
const { send } = useChannel(app, "room", roomId, { event: (m) => add(m) });
const here = usePresence(app, "room", roomId);

Questions
How do I make a list update in real time?
List the table under realtime.live in app.config.ts and call useLive("table") in the page. Its useQuery, useRow and useList reads of that table refresh whenever a row the user may read changes.
Do users receive rows they shouldn't see?
No. Every changed row is re-read as each subscriber under row-level security, so each user only receives rows they are allowed to read.
Can I build chat with typing indicators and presence?
Yes. Declare a channel with presence: true, then use useChannel and usePresence in a component. Keep the messages themselves as rows of a live table.
Ship it with your agent.
claude mcp add --transport http appbricx https://appbricx.com/api/mcp