Realtime & Presence

Supabase Realtime tables and presence channels.

Supabase Realtime keeps comments, votes, and tasks in sync across collaborators without polling.

Realtime tables

  • hub_comments — threaded asset feedback
  • hub_votes — approve / reject / react
  • hub_tasks — task list updates
  • hub_task_comments — task discussion

Presence

The components/presence/ module shows who is currently viewing a project or task list. Presence uses Supabase Realtime channels keyed by resource ID.

Client subscriptions

Browser components use createClient() from lib/supabase/client.ts and subscribe in useEffect hooks, cleaning up on unmount.